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

Commit 92ad768a authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan
Browse files

Add media permissions to STORAGE_PERMISSIONS

This list is used by revokeStoragePermissionsIfScopeExpandedInternal,
and since sometimes the STORAGE group permissions expands to the media
permissions as well, we should revoke all of them here.

Bug: 201318587
Test: atest StorageEscalationTest
Change-Id: Ieac30a3e8a8e90c5198f31769d1b0e626c03f79c
parent 593bdad0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -222,6 +222,9 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt
        STORAGE_PERMISSIONS.add(Manifest.permission.READ_EXTERNAL_STORAGE);
        STORAGE_PERMISSIONS.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
        STORAGE_PERMISSIONS.add(Manifest.permission.ACCESS_MEDIA_LOCATION);
        STORAGE_PERMISSIONS.add(Manifest.permission.READ_MEDIA_AUDIO);
        STORAGE_PERMISSIONS.add(Manifest.permission.READ_MEDIA_IMAGES);
        STORAGE_PERMISSIONS.add(Manifest.permission.READ_MEDIA_VIDEO);
        NEARBY_DEVICES_PERMISSIONS.add(Manifest.permission.BLUETOOTH_ADVERTISE);
        NEARBY_DEVICES_PERMISSIONS.add(Manifest.permission.BLUETOOTH_CONNECT);
        NEARBY_DEVICES_PERMISSIONS.add(Manifest.permission.BLUETOOTH_SCAN);