Merge "Resolve the deadlock caused by unfreezeProcess()." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eff330b095
@@ -1167,7 +1167,18 @@ public final class CachedAppOptimizer {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Slog.d(TAG_AM, "quick sync unfreeze " + pid);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user