Merge "Check caller status precisely when registering receiver."

This commit is contained in:
Olawale Ogunwale
2015-04-10 20:14:52 +00:00
committed by Gerrit Code Review

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