From c130ea7c29b0149939c8fd6b8da2c981944636f9 Mon Sep 17 00:00:00 2001 From: Dan Egnor Date: Wed, 20 Jan 2010 13:50:36 -0800 Subject: make "adb bugreport" run "bugreport" (which invokes "dumpstate" indirectly via system service) rather than "dumpstate", that way even when adb is not running as root, dumpstate does run as root, and can do things like collect VM traces. --- adb/commandline.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'adb/commandline.c') diff --git a/adb/commandline.c b/adb/commandline.c index b96674f..5756752 100644 --- a/adb/commandline.c +++ b/adb/commandline.c @@ -951,10 +951,8 @@ top: } if(!strcmp(argv[0], "bugreport")) { - if (argc != 1) { - return 1; - } - do_cmd(ttype, serial, "shell", "dumpstate", "-", 0); + if (argc != 1) return usage(); + do_cmd(ttype, serial, "shell", "bugreport", 0); return 0; } -- cgit v1.1