OSDN Git Service

Proper fix of am args.
authorFelipe Leme <felipeal@google.com>
Fri, 29 Jan 2016 17:07:57 +0000 (09:07 -0800)
committerFelipe Leme <felipeal@google.com>
Fri, 29 Jan 2016 17:07:57 +0000 (09:07 -0800)
BUG: 26871362
Change-Id: If3411b69ea1feef827cd23ef81baa8c0ffeaa309

cmds/dumpstate/dumpstate.cpp

index b03a7e4..2f124ac 100644 (file)
@@ -1118,7 +1118,7 @@ int main(int argc, char *argv[]) {
         if (!path.empty()) {
             ALOGI("Final bugreport path: %s\n", path.c_str());
             std::vector<std::string> am_args = {
-                 "android.permission.DUMP", "--receiver-foreground",
+                 "--receiver-permission", "android.permission.DUMP", "--receiver-foreground",
                  "--ei", "android.intent.extra.PID", std::to_string(getpid()),
                  "--es", "android.intent.extra.BUGREPORT", path
             };