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

Commit bc5ddd69 authored by Christopher Tate's avatar Christopher Tate Committed by Christopher Tate
Browse files

Change permission guard on bindBackupAgent()

Bug 15829193

Change-Id: Ief86fdfb0ef73e2a5a5d34af950726c4d5c0a167
parent 198dcfed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13494,7 +13494,7 @@ public final class ActivityManagerService extends ActivityManagerNative
    // activity manager to announce its creation.
    public boolean bindBackupAgent(ApplicationInfo app, int backupMode) {
        if (DEBUG_BACKUP) Slog.v(TAG, "bindBackupAgent: app=" + app + " mode=" + backupMode);
        enforceCallingPermission("android.permission.BACKUP", "bindBackupAgent");
        enforceCallingPermission("android.permission.CONFIRM_FULL_BACKUP", "bindBackupAgent");
        synchronized(this) {
            // !!! TODO: currently no check here that we're already bound