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

Commit 4f2ebfa4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Resolve the deadlock caused by unfreezeProcess()." into tm-qpr-dev am: eff330b0

parents 5bc38d20 eff330b0
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -1167,7 +1167,18 @@ public final class CachedAppOptimizer {
                return;
            }
            Slog.d(TAG_AM, "quick sync unfreeze " + pid);
            unfreezeAppLSP(app, reason);
            try {
                freezeBinder(pid, false);
            } catch (RuntimeException e) {
                Slog.e(TAG_AM, "Unable to quick unfreeze binder for " + pid);
                return;
            }

            try {
                Process.setProcessFrozen(pid, app.uid, false);
            } catch (Exception e) {
                Slog.e(TAG_AM, "Unable to quick unfreeze " + pid);
            }
        }
    }