Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97ebfa3f authored by Yuting Fang's avatar Yuting Fang
Browse files

Create a separate feature flag to control permissions what permissions are device aware

This allows us to ramp up android.permission.flags.device_aware_permission_apis_enabled flag while not affecting streaming
experience for audio and media.

Bug: 324549706
Test: atest VirtualDevicePermissionTest
Change-Id: I486090cd3464a28ee4c2379b4e9bc4e61696d6b2
parent 54190a2b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -94,3 +94,11 @@ flag {
  description: "Enable signature permission allowlist"
  bug: "308573169"
}

flag {
    name: "device_aware_permissions_enabled"
    is_fixed_read_only: true
    namespace: "permissions"
    description: "When the flag is off no permissions can be device aware"
    bug: "274852670"
}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2958,7 +2958,7 @@ class PermissionService(private val service: AccessCheckingService) :
        /** These permissions are supported for virtual devices. */
        // TODO: b/298661870 - Use new API to get the list of device aware permissions.
        val DEVICE_AWARE_PERMISSIONS =
            if (Flags.deviceAwarePermissionApisEnabled()) {
            if (Flags.deviceAwarePermissionsEnabled()) {
                setOf(Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO)
            } else {
                emptySet<String>()