* commit '6159f6eb231028bc6420edf4157fb335e78aca00': Check caller status precisely when registering receiver.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user