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

Commit c93c987a authored by Kazuki Nakayama's avatar Kazuki Nakayama Committed by Steve Kondik
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 0db43481
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6176,6 +6176,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);