OSDN Git Service

Bugreport broadcasts are only useful to owners.
authorJeff Sharkey <jsharkey@android.com>
Tue, 26 Mar 2013 00:10:45 +0000 (17:10 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 26 Mar 2013 00:15:57 +0000 (17:15 -0700)
Bug: 8415156
Change-Id: Ia73969262abe9f715f038dad934651d7e5d65c87

cmds/dumpstate/dumpstate.c

index a18c00d..9a332a9 100644 (file)
@@ -478,7 +478,7 @@ int main(int argc, char *argv[]) {
     }
 
     if (do_broadcast && use_outfile && do_fb) {
-        run_command(NULL, 5, "/system/bin/am", "broadcast",
+        run_command(NULL, 5, "/system/bin/am", "broadcast", "--user", "0",
                 "-a", "android.intent.action.BUGREPORT_FINISHED",
                 "--es", "android.intent.extra.BUGREPORT", path,
                 "--es", "android.intent.extra.SCREENSHOT", screenshot_path,