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

Commit 1f14af49 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

Change-Id: I32f99c62f304d4411c665459030fd19d08745aa2
parents 60bb3fe6 15499143
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);
        }