From edb0b0c309dd1a48d127f691e6d9b29392d1af44 Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Wed, 27 Jan 2016 11:27:28 -0800 Subject: [PATCH] Pass --receiver-foreground to AM intents. BUG: 26805230 Change-Id: I29181367522353817c730b398550a738a4776594 --- cmds/dumpstate/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp index c043adc858..7562ac80da 100644 --- a/cmds/dumpstate/utils.cpp +++ b/cmds/dumpstate/utils.cpp @@ -578,8 +578,8 @@ void send_broadcast(const std::string& action, const std::vector& a 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(); -- 2.11.0