Skip to content

Permissions.Microphone returns Granted on Windows (partial trust) even when denied #31413

@lostmsu

Description

@lostmsu

Description

In a popup summoned by Permissions.RequestAsync<Permissions.Microphone>() I denied the permission.

Now every call to Permissions.RequestAsync<Permissions.Microphone> or Permissions.CheckStatusAsync<Permissions.Microphone> returns Granted and subsequent attempt to start audio recording fails with UnauthorizedAccessException

Steps to Reproduce

  1. var status = await Permissions.RequestAsync<Permissions.Microphone>();
  2. deny
  3. `status = await Permissions.RequestAsync<Permissions.Microphone>();

Link to public reproduction project repository

No response

Version with bug

9.0.100 SR10

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.26100.75

Did you find any workaround?

Catch the exception and instruct user to enable permission manually

Relevant log output

Metadata

Metadata

Labels

area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infoplatform/windowst/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions