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

Commit 609cb91c authored by Kazuki Nakayama's avatar Kazuki Nakayama Committed by Wale Ogunwale
Browse files

Reset killedByAm flag at attachApplicationLocked

ActivityManager reuses a process record object that killed
by him under some situation. That reused process record inherits
a killedByAm flag unexpectedly.
The killedByAm flag must be reset otherwise ActivityManager can't
judge the process can be killed or not.

Change-Id: If95137d91939cc44882ad2813131bcde0edd0c1b
parent b802cd67
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6098,6 +6098,7 @@ public final class ActivityManagerService extends ActivityManagerNative
        app.hasShownUi = false;
        app.debugging = false;
        app.cached = false;
        app.killedByAm = false;
        mHandler.removeMessages(PROC_START_TIMEOUT_MSG, app);