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

Commit 5b291397 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 64ce6b78: Merge "Don\'t kill home process with the rest of its package." into klp-dev

* commit '64ce6b78':
  Don't kill home process with the rest of its package.
parents 75a3b301 64ce6b78
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 {