Merge "Resolve the deadlock caused by unfreezeProcess()."

This commit is contained in:
Hui Yu
2022-09-01 15:57:56 +00:00
committed by Android (Google) Code Review

View File

@@ -1351,7 +1351,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);
}
}
}