Grant adb the BACKUP permission

This also means we should no longer do explicit calling-identity fiddling in
dump(), relying instead on the usual permission enforcement mechanism to handle
things.
This commit is contained in:
Christopher Tate
2009-07-14 15:38:07 -07:00
parent 334a67740c
commit de83ab9fce
2 changed files with 1 additions and 4 deletions

View File

@@ -1548,8 +1548,6 @@ class BackupManagerService extends IBackupManager.Stub {
@Override
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
synchronized (mQueueLock) {
long oldId = Binder.clearCallingIdentity();
pw.println("Backup Manager is " + (mEnabled ? "enabled" : "disabled")
+ " / " + (!mProvisioned ? "not " : "") + "provisioned");
pw.println("Available transports:");
@@ -1572,8 +1570,6 @@ class BackupManagerService extends IBackupManager.Stub {
for (BackupRequest req : mPendingBackups.values()) {
pw.println(" " + req);
}
Binder.restoreCallingIdentity(oldId);
}
}
}