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

Commit f0375e29 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Remove Persistent proccess without WTFing

Change-Id: Ia59abd019c1c70befa39b36325ba510ec3c6586b
Fixes: 70403120
Test: manual
parent b630550e
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -3620,6 +3620,9 @@ public class ActivityManagerService extends IActivityManager.Stub
        int lrui = mLruProcesses.lastIndexOf(app);
        if (lrui >= 0) {
            if (!app.killed) {
                if (app.persistent) {
                    Slog.w(TAG, "Removing persistent process that hasn't been killed: " + app);
                } else {
                    Slog.wtfStack(TAG, "Removing process that hasn't been killed: " + app);
                    if (app.pid > 0) {
                        killProcessQuiet(app.pid);
@@ -3628,6 +3631,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                        app.pendingStart = false;
                    }
                }
            }
            if (lrui <= mLruProcessActivityStart) {
                mLruProcessActivityStart--;
            }