Change permission guard on bindBackupAgent()

Bug 15829193

Change-Id: Ief86fdfb0ef73e2a5a5d34af950726c4d5c0a167
This commit is contained in:
Christopher Tate
2014-06-26 19:33:56 -07:00
committed by Christopher Tate
parent 198dcfed84
commit bc5ddd69dd

View File

@@ -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