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

Commit cd9fbafd authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

Merge "Grant SharedStorageBackup storage access." into pi-dev am: 15499143

am: 1f14af49

Change-Id: I4d3894cad5ae12ed0dec1df9910fbcf89ca72532
parents 46ab2531 1f14af49
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -841,6 +841,14 @@ public final class DefaultPermissionGrantPolicy {
            }
        }

        // There is no real "marker" interface to identify the shared storage backup, it is
        // hardcoded in BackupManagerService.SHARED_BACKUP_AGENT_PACKAGE.
        PackageParser.Package sharedStorageBackupPackage = getSystemPackage(
                "com.android.sharedstoragebackup");
        if (sharedStorageBackupPackage != null) {
            grantRuntimePermissions(sharedStorageBackupPackage, STORAGE_PERMISSIONS, true, userId);
        }

        if (mPermissionGrantedCallback != null) {
            mPermissionGrantedCallback.onDefaultRuntimePermissionsGranted(userId);
        }