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) {
|
void serviceTimeout(ProcessRecord proc) {
|
||||||
String anrMessage = null;
|
String anrMessage = null;
|
||||||
|
|
||||||
synchronized(mAm) {
|
synchronized(mAm) {
|
||||||
|
if (proc.isDebugging()) {
|
||||||
|
// The app's being debugged, ignore timeout.
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (proc.executingServices.size() == 0 || proc.thread == null) {
|
if (proc.executingServices.size() == 0 || proc.thread == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1557,7 +1557,7 @@ class ProcessRecord implements WindowProcessListener {
|
|||||||
mService.mBatteryStatsService.noteProcessAnr(processName, uid);
|
mService.mBatteryStatsService.noteProcessAnr(processName, uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isSilentAnr()) {
|
if (isSilentAnr() && !isDebugging()) {
|
||||||
kill("bg anr", true);
|
kill("bg anr", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user