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

Commit cf601dd4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Freeze all package processes before killing" am: beccf603 am: aeed765f

parents 1c28b197 aeed765f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2792,6 +2792,15 @@ 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,