summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-09-28 15:53:19 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-28 15:54:44 -0700
commit3ff8e1a80058e5557d13693d3223e1aa011c0038 (patch)
tree62d3c43fa2261c2aec17b76f08b7c8cc784c81fc /cmds
parent1d3527354396d3aa48b494fb409d680cce32dc8b (diff)
parentd4ac8d7b3de27a9f0e4c6af2496ca71d794e42d1 (diff)
downloadframeworks_base-3ff8e1a80058e5557d13693d3223e1aa011c0038.zip
frameworks_base-3ff8e1a80058e5557d13693d3223e1aa011c0038.tar.gz
frameworks_base-3ff8e1a80058e5557d13693d3223e1aa011c0038.tar.bz2
Merge "Fix issue #7211769 and #7244492, thrash around on #7226656." into jb-mr1-dev
Diffstat (limited to 'cmds')
-rw-r--r--cmds/am/src/com/android/commands/am/Am.java10
1 files changed, 10 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 396b32f..3df88bb 100644
--- a/cmds/am/src/com/android/commands/am/Am.java
+++ b/cmds/am/src/com/android/commands/am/Am.java
@@ -127,6 +127,8 @@ public class Am {
runSetDebugApp();
} else if (op.equals("clear-debug-app")) {
runClearDebugApp();
+ } else if (op.equals("bug-report")) {
+ runBugReport();
} else if (op.equals("monitor")) {
runMonitor();
} else if (op.equals("screen-compat")) {
@@ -844,6 +846,11 @@ public class Am {
mAm.setDebugApp(null, false, true);
}
+ private void runBugReport() throws Exception {
+ mAm.requestBugReport();
+ System.out.println("Your lovely bug report is being created; please be patient.");
+ }
+
private void runSwitchUser() throws Exception {
String user = nextArgRequired();
mAm.switchUser(Integer.parseInt(user));
@@ -1508,6 +1515,9 @@ public class Am {
"\n" +
"am clear-debug-app: clear the previously set-debug-app.\n" +
"\n" +
+ "am bug-report: request bug report generation; will launch UI\n" +
+ " when done to select where it should be delivered." +
+ "\n" +
"am monitor: start monitoring for crashes or ANRs.\n" +
" --gdb: start gdbserv on the given port at crash/ANR\n" +
"\n" +