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

Commit 9b5ce25a authored by Chris Fries's avatar Chris Fries
Browse files

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
parent 49b166e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1886,7 +1886,7 @@ 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", 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()