From 03d2ca6ee039e779e935afaa44b57ef09ee2e7bb Mon Sep 17 00:00:00 2001 From: Christian Lindeberg Date: Tue, 28 Sep 2010 14:52:20 +0200 Subject: Include debugger connection status in error entry Include the debugger connection status when adding error entry to DropBox if debugger is connected, "Debugger: Connected". This can be useful to sort out crashes comming from developers vs from regular usage. Change-Id: Ic309066c63778af1577f2b91a95ffca0bd40338c --- services/java/com/android/server/am/ActivityManagerService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index 804af9c5d02a..f5a8119c9295 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -9252,6 +9252,9 @@ public final class ActivityManagerService extends ActivityManagerNative implemen sb.append("Subject: ").append(subject).append("\n"); } sb.append("Build: ").append(Build.FINGERPRINT).append("\n"); + if (Debug.isDebuggerConnected()) { + sb.append("Debugger: Connected\n"); + } sb.append("\n"); // Do the rest in a worker thread to avoid blocking the caller on I/O -- cgit v1.2.3-59-g8ed1b