* 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) {
|
synchronized (this) {
|
||||||
if (callerApp != null && callerApp.pid == 0) {
|
if (callerApp != null && (callerApp.thread == null
|
||||||
// Caller already died
|
|| callerApp.thread.asBinder() != caller.asBinder())) {
|
||||||
|
// Original caller already died
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
ReceiverList rl
|
ReceiverList rl
|
||||||
|
|||||||
Reference in New Issue
Block a user