summaryrefslogtreecommitdiffstats
path: root/cmds/am/src/com
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-05-03 16:25:11 -0700
committerDianne Hackborn <hackbod@google.com>2013-05-06 11:16:18 -0700
commit5b88a2fd7b77880f6e09ae4a1de509bebe28bc3a (patch)
tree19cb92ba626d8b207cfba3ae2b57d623c209a093 /cmds/am/src/com
parent996f6b048ba03ca727c40e1bc33100bf45c93518 (diff)
downloadframeworks_base-5b88a2fd7b77880f6e09ae4a1de509bebe28bc3a.zip
frameworks_base-5b88a2fd7b77880f6e09ae4a1de509bebe28bc3a.tar.gz
frameworks_base-5b88a2fd7b77880f6e09ae4a1de509bebe28bc3a.tar.bz2
Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESS
IActivityController has a new callback which the Watchdog calls when it detects that the system process is hung. This may be use full monkey. All hail the monkey! Also add a new private feature to Binder to be able to turn off all incoming dump() calls to a process. The watchdog uses this when it reports it is hung, so that if someone, say, wants to collect a bug report at this point they won't get stuck waiting for things that are all busted. Change-Id: Ib514d97451cf3b93f29e194c1954e29f948c13b1
Diffstat (limited to 'cmds/am/src/com')
-rw-r--r--cmds/am/src/com/android/commands/am/Am.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java
index ccb9e1f..93658e1 100644
--- a/cmds/am/src/com/android/commands/am/Am.java
+++ b/cmds/am/src/com/android/commands/am/Am.java
@@ -1093,6 +1093,18 @@ public class Am extends BaseCommand {
}
}
+ @Override
+ public int systemNotResponding(String message)
+ throws RemoteException {
+ synchronized (this) {
+ System.out.println("** ERROR: PROCESS NOT RESPONDING");
+ System.out.println("message: " + message);
+ System.out.println("#");
+ System.out.println("Allowing system to die.");
+ return -1;
+ }
+ }
+
void killGdbLocked() {
mGotGdbPrint = false;
if (mGdbProcess != null) {