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

Commit 64ce6b78 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Don't kill home process with the rest of its package." into klp-dev

parents 5a0c54a5 f31ea07d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6774,6 +6774,10 @@ public final class ActivityManagerService extends ActivityManagerNative
            // Kill the running processes.
            for (int i=0; i<procs.size(); i++) {
                ProcessRecord pr = procs.get(i);
                if (pr == mHomeProcess) {
                    // Don't kill the home process along with tasks from the same package.
                    continue;
                }
                if (pr.setSchedGroup == Process.THREAD_GROUP_BG_NONINTERACTIVE) {
                    killUnneededProcessLocked(pr, "remove task");
                } else {