Loading services/backup/java/com/android/server/backup/BackupManagerService.java +37 −34 Original line number Diff line number Diff line Loading @@ -9368,8 +9368,10 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF throw new SecurityException("No permission to restore other packages"); } // So far so good; we're allowed to try to restore this package. Now // check whether there is data for it in the current dataset, falling back // So far so good; we're allowed to try to restore this package. long oldId = Binder.clearCallingIdentity(); try { // Check whether there is data for it in the current dataset, falling back // to the ancestral dataset if not. long token = getAvailableRestoreToken(packageName); if (DEBUG) Slog.v(TAG, "restorePackage pkg=" + packageName Loading @@ -9396,7 +9398,6 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF mBackupHandler.removeMessages(MSG_RESTORE_TIMEOUT); // Ready to go: enqueue the restore request and claim success long oldId = Binder.clearCallingIdentity(); mWakelock.acquire(); if (MORE_DEBUG) { Slog.d(TAG, "restorePackage() : " + packageName); Loading @@ -9405,7 +9406,9 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF msg.obj = new RestoreParams(mRestoreTransport, dirName, observer, token, app, 0); mBackupHandler.sendMessage(msg); } finally { Binder.restoreCallingIdentity(oldId); } return 0; } Loading Loading
services/backup/java/com/android/server/backup/BackupManagerService.java +37 −34 Original line number Diff line number Diff line Loading @@ -9368,8 +9368,10 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF throw new SecurityException("No permission to restore other packages"); } // So far so good; we're allowed to try to restore this package. Now // check whether there is data for it in the current dataset, falling back // So far so good; we're allowed to try to restore this package. long oldId = Binder.clearCallingIdentity(); try { // Check whether there is data for it in the current dataset, falling back // to the ancestral dataset if not. long token = getAvailableRestoreToken(packageName); if (DEBUG) Slog.v(TAG, "restorePackage pkg=" + packageName Loading @@ -9396,7 +9398,6 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF mBackupHandler.removeMessages(MSG_RESTORE_TIMEOUT); // Ready to go: enqueue the restore request and claim success long oldId = Binder.clearCallingIdentity(); mWakelock.acquire(); if (MORE_DEBUG) { Slog.d(TAG, "restorePackage() : " + packageName); Loading @@ -9405,7 +9406,9 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF msg.obj = new RestoreParams(mRestoreTransport, dirName, observer, token, app, 0); mBackupHandler.sendMessage(msg); } finally { Binder.restoreCallingIdentity(oldId); } return 0; } Loading