Merge "Do not kill ANR-ed debugged application" into main

This commit is contained in:
Jing Ji 2023-12-15 17:56:55 +00:00 committed by Gerrit Code Review
commit 123ba0f593

View File

@ -299,6 +299,11 @@ class ProcessErrorStateRecord {
SparseBooleanArray lastPids = new SparseBooleanArray(20);
ActivityManagerService.VolatileDropboxEntryStates volatileDropboxEntriyStates = null;
if (mApp.isDebugging()) {
Slog.i(TAG, "Skipping debugged app ANR: " + this + " " + annotation);
return;
}
mApp.getWindowProcessController().appEarlyNotResponding(annotation, () -> {
latencyTracker.waitingOnAMSLockStarted();
synchronized (mService) {