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

Commit 27067df9 authored by Jerry Zhang's avatar Jerry Zhang
Browse files

Add READ_PHONE_STATE to MediaProvider.

Needed to use Build.getSerial()

Test: no securityexception
Bug: 67945990
Change-Id: Id3b1704785d332243f94beb44d0fe43ae6bd3363
parent 959516a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -383,6 +383,7 @@ public final class DefaultPermissionGrantPolicy {
                MediaStore.AUTHORITY, userId);
        if (mediaStorePackage != null) {
            grantRuntimePermissions(mediaStorePackage, STORAGE_PERMISSIONS, true, userId);
            grantRuntimePermissions(mediaStorePackage, PHONE_PERMISSIONS, true, userId);
        }

        // Downloads provider