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

Commit 4ea0a5a2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove Persistent proccess without WTFing" into pi-dev

parents 6b7b171d f0375e29
Loading
Loading
Loading
Loading
+9 −5
Original line number Original line Diff line number Diff line
@@ -3706,6 +3706,9 @@ public class ActivityManagerService extends IActivityManager.Stub
        int lrui = mLruProcesses.lastIndexOf(app);
        int lrui = mLruProcesses.lastIndexOf(app);
        if (lrui >= 0) {
        if (lrui >= 0) {
            if (!app.killed) {
            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);
                    Slog.wtfStack(TAG, "Removing process that hasn't been killed: " + app);
                    if (app.pid > 0) {
                    if (app.pid > 0) {
                        killProcessQuiet(app.pid);
                        killProcessQuiet(app.pid);
@@ -3714,6 +3717,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                        app.pendingStart = false;
                        app.pendingStart = false;
                    }
                    }
                }
                }
            }
            if (lrui <= mLruProcessActivityStart) {
            if (lrui <= mLruProcessActivityStart) {
                mLruProcessActivityStart--;
                mLruProcessActivityStart--;
            }
            }