Merge "No service timeout when debbuger is attached" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-04-22 23:58:26 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 2 deletions

View File

@@ -3830,8 +3830,11 @@ public final class ActiveServices {
void serviceTimeout(ProcessRecord proc) {
String anrMessage = null;
synchronized(mAm) {
if (proc.isDebugging()) {
// The app's being debugged, ignore timeout.
return;
}
if (proc.executingServices.size() == 0 || proc.thread == null) {
return;
}

View File

@@ -1557,7 +1557,7 @@ class ProcessRecord implements WindowProcessListener {
mService.mBatteryStatsService.noteProcessAnr(processName, uid);
}
if (isSilentAnr()) {
if (isSilentAnr() && !isDebugging()) {
kill("bg anr", true);
return;
}