summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2021-02-22 19:21:35 +0000
committer Lais Andrade <lsandrade@google.com> 2021-02-22 20:23:44 +0000
commit51156967b9636e32e5d798529e44bd2be6a4f3d3 (patch)
treead4d33b6ab24d4d3be44b82cde864a8579ea010a
parent01833ba2d5d5db9ec32abefd1317439af2a4aec5 (diff)
Use vibrator_service cmd for dumpstate
The local service "vibrator" was replaced by the new "vibrator_manager". Fix: 180924179 Test: manual Change-Id: I9d3921af2b3b0c31767090c86f0a3350a6d45b1a
-rw-r--r--cmds/dumpstate/dumpstate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 990aa53071..23986dd376 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -2417,7 +2417,9 @@ static void SendBroadcast(const std::string& action, const std::vector<std::stri
static void Vibrate(int duration_ms) {
// clang-format off
- RunCommand("", {"cmd", "vibrator", "vibrate", "-f", std::to_string(duration_ms), "dumpstate"},
+ std::vector<std::string> args = {"cmd", "vibrator_manager", "synced", "-f", "-d", "dumpstate",
+ "oneshot", std::to_string(duration_ms)};
+ RunCommand("", args,
CommandOptions::WithTimeout(10)
.Log("Vibrate: '%s'\n")
.Always()