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

Commit 90950d7e authored by Bernardo Rufino's avatar Bernardo Rufino Committed by Android (Google) Code Review
Browse files

Merge "Protect unbindBackupAgent() with CONFIRM_FULL_BACKUP permission"

parents ad15fe33 775fd430
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17977,6 +17977,7 @@ public class ActivityManagerService extends IActivityManager.Stub
    // done with this agent
    public void unbindBackupAgent(ApplicationInfo appInfo) {
        if (DEBUG_BACKUP) Slog.v(TAG_BACKUP, "unbindBackupAgent: " + appInfo);
        enforceCallingPermission("android.permission.CONFIRM_FULL_BACKUP", "unbindBackupAgent");
        if (appInfo == null) {
            Slog.w(TAG, "unbind backup agent for null app");
            return;