dumpstate: Always vibrate, even in DND
Since there's cases where you want to collect logs (screen stuck
off) and would like some assurance that a bugreport started, let's
always vibrate even in DND mode when dumpstate starts.
Tested: bugreport
-- dumpstate: Vibrate: 'cmd vibrator vibrate -f 150 dumpstate'
Bug: 134058764
Change-Id: I9a06469c0ce7eb1d6b4ecdd89307b968bcf33e2b
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 32f7e6d..e2f2f0b 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1886,7 +1886,7 @@
static void Vibrate(int duration_ms) {
// clang-format off
- RunCommand("", {"cmd", "vibrator", "vibrate", std::to_string(duration_ms), "dumpstate"},
+ RunCommand("", {"cmd", "vibrator", "vibrate", "-f", std::to_string(duration_ms), "dumpstate"},
CommandOptions::WithTimeout(10)
.Log("Vibrate: '%s'\n")
.Always()