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

Commit dc94b297 authored by yuanhuihui's avatar yuanhuihui
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 f7c508ae
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6427,6 +6427,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