From 7eced2b86aa4ad91307b6531cae73ce1a4064b18 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 2f429ef..8781081 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