Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4406568e authored by Olawale Ogunwale's avatar Olawale Ogunwale Committed by Gerrit Code Review
Browse files

Merge "Check caller status precisely when registering receiver."

parents a270264c b15506f9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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