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

Commit d1410c01 authored by Justin Klaassen's avatar Justin Klaassen
Browse files

Grant sound recorder microphone permissions

Bug: 128599472
Test: DefaultPermissionGrantPolicyTest#testDefaultGrant
Change-Id: I3016a13ca36fec0cc8c2ecbb2f11a4dcf17c63c1
parent 0a94974b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -443,6 +443,12 @@ public final class DefaultPermissionGrantPolicy {
                getDefaultSystemHandlerActivityPackage(MediaStore.ACTION_IMAGE_CAPTURE, userId),
                userId, CAMERA_PERMISSIONS, MICROPHONE_PERMISSIONS, STORAGE_PERMISSIONS);

        // Sound recorder
        grantPermissionsToSystemPackage(
                getDefaultSystemHandlerActivityPackage(
                        MediaStore.Audio.Media.RECORD_SOUND_ACTION, userId),
                userId, MICROPHONE_PERMISSIONS);

        // Media provider
        grantSystemFixedPermissionsToSystemPackage(
                getDefaultProviderAuthorityPackage(MediaStore.AUTHORITY, userId), userId,