Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 848ed58b authored by Hui Yu's avatar Hui Yu Committed by android-build-merger
Browse files

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

am: 095ab6c3

Change-Id: Ic54c3c80063f670238c00a028d5aac55f142a4ec
parents 0aa2c5ad 095ab6c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
            }
+1 −1
Original line number Diff line number Diff line
@@ -1557,7 +1557,7 @@ class ProcessRecord implements WindowProcessListener {
                mService.mBatteryStatsService.noteProcessAnr(processName, uid);
            }

            if (isSilentAnr()) {
            if (isSilentAnr() && !isDebugging()) {
                kill("bg anr", true);
                return;
            }