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

Commit 14c64e26 authored by T.J. Mercier's avatar T.J. Mercier
Browse files

Revert "Freeze all package processes before killing"

This reverts commit 6eff4d8f.

Reason for revert: b/236266655 zygote for a new process spawns in different process group before moving, which causes permanent freeze of all zygote processes.

Change-Id: Icd245a3a23bda26659b81a8b5b24682655649222
parent 6eff4d8f
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2792,15 +2792,6 @@ public final class ProcessList {
        }

        int N = procs.size();
        for (int i = 0; i < N; ++i) {
            final ProcessRecord proc = procs.get(i).first;
            try {
                Process.setProcessFrozen(proc.getPid(), proc.uid, true);
            } catch (Exception e) {
                Slog.w(TAG, "Unable to freeze " + proc.getPid() + " " + proc.processName);
            }
        }

        for (int i=0; i<N; i++) {
            final Pair<ProcessRecord, Boolean> proc = procs.get(i);
            removeProcessLocked(proc.first, callerWillRestart, allowRestart || proc.second,