Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eae9ba69 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use 'cmd activity' instead 'am' to send a broadcast."

parents 0e555aeb c1e7b635
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -711,7 +711,8 @@ void Dumpstate::RunDumpsys(const std::string& title, const std::vector<std::stri
}

void send_broadcast(const std::string& action, const std::vector<std::string>& args) {
    std::vector<std::string> am = {"/system/bin/am", "broadcast", "--user", "0", "-a", action};
    std::vector<std::string> am = {
        "/system/bin/cmd", "activity", "broadcast", "--user", "0", "-a", action};

    am.insert(am.end(), args.begin(), args.end());