am 4406568e: Merge "Check caller status precisely when registering receiver."

* commit '4406568ebac6f6bbf627aeb6909b409d948cecf4':
  Check caller status precisely when registering receiver.
This commit is contained in:
Olawale Ogunwale
2015-04-10 20:37:00 +00:00
committed by Android Git Automerger

View File

@@ -15709,8 +15709,9 @@ public final class ActivityManagerService extends ActivityManagerNative
}
synchronized (this) {
if (callerApp != null && callerApp.pid == 0) {
// Caller already died
if (callerApp != null && (callerApp.thread == null
|| callerApp.thread.asBinder() != caller.asBinder())) {
// Original caller already died
return null;
}
ReceiverList rl