Pass --receiver-foreground to AM intents.

BUG: 26805230
Change-Id: I29181367522353817c730b398550a738a4776594
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index c043adc..7562ac8 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -578,8 +578,8 @@
         fprintf(stderr, "send_broadcast: too many arguments (%d)\n", (int) args.size());
         return;
     }
-    const char *am_args[1024] = { "/system/bin/am", "broadcast", "--user", "0",
-                                  "-a", action.c_str() };
+    const char *am_args[1024] = { "/system/bin/am", "broadcast", "--receiver-foreground",
+                                  "--user", "0", "-a", action.c_str() };
     size_t am_index = 5; // Starts at the index of last initial value above.
     for (const std::string& arg : args) {
         am_args[++am_index] = arg.c_str();