Loading core/java/android/app/ActivityManager.java +9 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,8 @@ public class ActivityManager { BUGREPORT_OPTION_FULL, BUGREPORT_OPTION_INTERACTIVE, BUGREPORT_OPTION_REMOTE, BUGREPORT_OPTION_WEAR BUGREPORT_OPTION_WEAR, BUGREPORT_OPTION_TELEPHONY }) public @interface BugreportMode {} /** Loading @@ -189,6 +190,13 @@ public class ActivityManager { */ public static final int BUGREPORT_OPTION_WEAR = 3; /** * Takes a lightweight version of bugreport that only includes a few, urgent sections * used to report telephony bugs. * @hide */ public static final int BUGREPORT_OPTION_TELEPHONY = 4; /** * <a href="{@docRoot}guide/topics/manifest/meta-data-element.html">{@code * <meta-data>}</a> name for a 'home' Activity that declares a package that is to be Loading services/core/java/com/android/server/am/ActivityManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -12129,6 +12129,9 @@ public class ActivityManagerService extends IActivityManager.Stub case ActivityManager.BUGREPORT_OPTION_WEAR: extraOptions = "bugreportwear"; break; case ActivityManager.BUGREPORT_OPTION_TELEPHONY: extraOptions = "bugreporttelephony"; break; default: throw new IllegalArgumentException("Provided bugreport type is not correct, value: " + bugreportType); services/core/java/com/android/server/am/ActivityManagerShellCommand.java +4 −1 Original line number Diff line number Diff line Loading @@ -818,6 +818,8 @@ final class ActivityManagerShellCommand extends ShellCommand { while ((opt=getNextOption()) != null) { if (opt.equals("--progress")) { bugreportType = ActivityManager.BUGREPORT_OPTION_INTERACTIVE; } else if (opt.equals("--telephony")) { bugreportType = ActivityManager.BUGREPORT_OPTION_TELEPHONY; } else { getErrPrintWriter().println("Error: Unknown option: " + opt); return -1; Loading Loading @@ -2453,10 +2455,11 @@ final class ActivityManagerShellCommand extends ShellCommand { pw.println(" above <HEAP-LIMIT> then a heap dump is collected for the user to report."); pw.println(" clear-watch-heap"); pw.println(" Clear the previously set-watch-heap."); pw.println(" bug-report [--progress]"); pw.println(" bug-report [--progress | --telephony]"); pw.println(" Request bug report generation; will launch a notification"); pw.println(" when done to select where it should be delivered. Options are:"); pw.println(" --progress: will launch a notification right away to show its progress."); pw.println(" --telephony: will dump only telephony sections."); pw.println(" force-stop [--user <USER_ID> | all | current] <PACKAGE>"); pw.println(" Completely stop the given application package."); pw.println(" kill [--user <USER_ID> | all | current] <PACKAGE>"); Loading Loading
core/java/android/app/ActivityManager.java +9 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,8 @@ public class ActivityManager { BUGREPORT_OPTION_FULL, BUGREPORT_OPTION_INTERACTIVE, BUGREPORT_OPTION_REMOTE, BUGREPORT_OPTION_WEAR BUGREPORT_OPTION_WEAR, BUGREPORT_OPTION_TELEPHONY }) public @interface BugreportMode {} /** Loading @@ -189,6 +190,13 @@ public class ActivityManager { */ public static final int BUGREPORT_OPTION_WEAR = 3; /** * Takes a lightweight version of bugreport that only includes a few, urgent sections * used to report telephony bugs. * @hide */ public static final int BUGREPORT_OPTION_TELEPHONY = 4; /** * <a href="{@docRoot}guide/topics/manifest/meta-data-element.html">{@code * <meta-data>}</a> name for a 'home' Activity that declares a package that is to be Loading
services/core/java/com/android/server/am/ActivityManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -12129,6 +12129,9 @@ public class ActivityManagerService extends IActivityManager.Stub case ActivityManager.BUGREPORT_OPTION_WEAR: extraOptions = "bugreportwear"; break; case ActivityManager.BUGREPORT_OPTION_TELEPHONY: extraOptions = "bugreporttelephony"; break; default: throw new IllegalArgumentException("Provided bugreport type is not correct, value: " + bugreportType);
services/core/java/com/android/server/am/ActivityManagerShellCommand.java +4 −1 Original line number Diff line number Diff line Loading @@ -818,6 +818,8 @@ final class ActivityManagerShellCommand extends ShellCommand { while ((opt=getNextOption()) != null) { if (opt.equals("--progress")) { bugreportType = ActivityManager.BUGREPORT_OPTION_INTERACTIVE; } else if (opt.equals("--telephony")) { bugreportType = ActivityManager.BUGREPORT_OPTION_TELEPHONY; } else { getErrPrintWriter().println("Error: Unknown option: " + opt); return -1; Loading Loading @@ -2453,10 +2455,11 @@ final class ActivityManagerShellCommand extends ShellCommand { pw.println(" above <HEAP-LIMIT> then a heap dump is collected for the user to report."); pw.println(" clear-watch-heap"); pw.println(" Clear the previously set-watch-heap."); pw.println(" bug-report [--progress]"); pw.println(" bug-report [--progress | --telephony]"); pw.println(" Request bug report generation; will launch a notification"); pw.println(" when done to select where it should be delivered. Options are:"); pw.println(" --progress: will launch a notification right away to show its progress."); pw.println(" --telephony: will dump only telephony sections."); pw.println(" force-stop [--user <USER_ID> | all | current] <PACKAGE>"); pw.println(" Completely stop the given application package."); pw.println(" kill [--user <USER_ID> | all | current] <PACKAGE>"); Loading