summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2010-10-21 14:54:19 -0400
committerJoe Onorato <joeo@google.com>2010-10-22 12:36:07 -0400
commiteb95b0877aa386938ed20e9429a211eac8b8b805 (patch)
tree73ceba181879f8468b27bcaecc68358947e0f23d /cmds
parent8d0083423ff338abdd6a4d74dd008409abaaa4fd (diff)
downloadframeworks_base-eb95b0877aa386938ed20e9429a211eac8b8b805.zip
frameworks_base-eb95b0877aa386938ed20e9429a211eac8b8b805.tar.gz
frameworks_base-eb95b0877aa386938ed20e9429a211eac8b8b805.tar.bz2
Show app services in adb bugreport (dumpstate).
There is a 60s timeout for this command. I'd rather do it as an individual timeout for each of the services, but this is easier and will probably cover for busted apps well enough. Also, this is running last in dumpstate, so if it's lost... oh well. Also, clean up the formatting of the service dump so it's more readable in bugreport. Change-Id: Ibd727f4b3366f7af9e7ef1e231868f5cedc48132
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/dumpstate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 35f0249..3c0dee4 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -174,6 +174,14 @@ static void dumpstate() {
to increase its timeout. we really need to do the timeouts in
dumpsys itself... */
run_command("DUMPSYS", 60, "dumpsys", NULL);
+
+ printf("========================================================\n");
+ printf("== Application Services\n");
+ printf("========================================================\n");
+
+ /* Instead of a 60s timeout, we should give each service a 5 second timeout */
+ run_command("APP SERVICES", 60, "dumpsys", "activity", "service", NULL);
+
}
static void usage() {