summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-03-08 09:23:14 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-03-08 09:23:14 +0000
commit0e06c39c49d16a4393db8bd8b3fc9719648ffdff (patch)
treefd45393e5c1e39d630eb7fa75a25e8b0d0b2b092
parent335c73a433ab3e7e158204d09a6f1f5f6a2ff1dc (diff)
parent51156967b9636e32e5d798529e44bd2be6a4f3d3 (diff)
Merge "Use vibrator_service cmd for dumpstate" into sc-dev
-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 3a2c769c66..31930ff08c 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -2414,7 +2414,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()