Merge "Change permission guard on bindBackupAgent()" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
59c1202e10
@@ -11408,7 +11408,7 @@ public final class ActivityManagerService extends ActivityManagerNative
|
|||||||
// activity manager to announce its creation.
|
// activity manager to announce its creation.
|
||||||
public boolean bindBackupAgent(ApplicationInfo app, int backupMode) {
|
public boolean bindBackupAgent(ApplicationInfo app, int backupMode) {
|
||||||
if (DEBUG_BACKUP) Slog.v(TAG, "bindBackupAgent: app=" + app + " mode=" + 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) {
|
synchronized(this) {
|
||||||
// !!! TODO: currently no check here that we're already bound
|
// !!! TODO: currently no check here that we're already bound
|
||||||
|
|||||||
Reference in New Issue
Block a user