am 045398e6: Merge "Fix a deadlock I ran into." into gingerbread
Merge commit '045398e6243fa4e83fb6435df4e8ffc6a7487a70' into gingerbread-plus-aosp * commit '045398e6243fa4e83fb6435df4e8ffc6a7487a70': Fix a deadlock I ran into.
This commit is contained in:
@@ -9645,20 +9645,20 @@ public final class ActivityManagerService extends ActivityManagerNative
|
|||||||
Slog.e(TAG, "Backup agent created for " + agentPackageName + " but not requested!");
|
Slog.e(TAG, "Backup agent created for " + agentPackageName + " but not requested!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
long oldIdent = Binder.clearCallingIdentity();
|
long oldIdent = Binder.clearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
IBackupManager bm = IBackupManager.Stub.asInterface(
|
IBackupManager bm = IBackupManager.Stub.asInterface(
|
||||||
ServiceManager.getService(Context.BACKUP_SERVICE));
|
ServiceManager.getService(Context.BACKUP_SERVICE));
|
||||||
bm.agentConnected(agentPackageName, agent);
|
bm.agentConnected(agentPackageName, agent);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
// can't happen; the backup manager service is local
|
// can't happen; the backup manager service is local
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Slog.w(TAG, "Exception trying to deliver BackupAgent binding: ");
|
Slog.w(TAG, "Exception trying to deliver BackupAgent binding: ");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} finally {
|
} finally {
|
||||||
Binder.restoreCallingIdentity(oldIdent);
|
Binder.restoreCallingIdentity(oldIdent);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user