Merge "No service timeout when debbuger is attached" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
095ab6c3c7
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1557,7 +1557,7 @@ class ProcessRecord implements WindowProcessListener {
|
||||
mService.mBatteryStatsService.noteProcessAnr(processName, uid);
|
||||
}
|
||||
|
||||
if (isSilentAnr()) {
|
||||
if (isSilentAnr() && !isDebugging()) {
|
||||
kill("bg anr", true);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user