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

Unverified Commit 41a8882d authored by yuanhuihui's avatar yuanhuihui Committed by Michael Bestas
Browse files

[ActivityManager] Reset killed flag at attachApplicationLocked



A restarted process will reuse original process record.
If only reset KilledByAm flag, not reset Killed flag.
When app process have been killed by AMS can skip  unnessary ANR,
but not catch lowmemorykiller in AppErrors.appNotResponding()

Change-Id: Ie4653edf4252797eaeefbf9a4a35ac00cfa857d8
Signed-off-by: default avataryuanhuihui <yuanhuihui@xiaomi.com>
parent 1e673ad0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6679,6 +6679,8 @@ public final class ActivityManagerService extends ActivityManagerNative
        app.debugging = false;
        app.cached = false;
        app.killedByAm = false;
        app.killed = false;
        // We carefully use the same state that PackageManager uses for
        // filtering, since we use this flag to decide if we need to install