diff options
Diffstat (limited to 'services/java/com/android/server/am/ActivityManagerService.java')
-rw-r--r-- | services/java/com/android/server/am/ActivityManagerService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index 5202b6f..736c0da 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -10377,6 +10377,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen return; } + long oldIdent = Binder.clearCallingIdentity(); try { IBackupManager bm = IBackupManager.Stub.asInterface( ServiceManager.getService(Context.BACKUP_SERVICE)); @@ -10386,6 +10387,8 @@ public final class ActivityManagerService extends ActivityManagerNative implemen } catch (Exception e) { Log.w(TAG, "Exception trying to deliver BackupAgent binding: "); e.printStackTrace(); + } finally { + Binder.restoreCallingIdentity(oldIdent); } } } |