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

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

Revert "Freeze all package processes before killing"

This reverts commit a666f83b.

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: I5eae2519e6bcb52e8ee4a7e0bf5dc8495258b732
parent a666f83b
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2897,15 +2897,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,