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

Commit d17fa39d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Let dumpstate also call "cmd input_method tracing save-for-bugreport""

parents 2a78ffe7 02b1d2c7
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -3024,12 +3024,15 @@ void Dumpstate::MaybeSnapshotSystemTrace() {
}

void Dumpstate::MaybeSnapshotWinTrace() {
    // Currently WindowManagerService and InputMethodManagerSerivice support WinScope protocol.
    for (const auto& service : {"window", "input_method"}) {
        RunCommand(
            // Empty name because it's not intended to be classified as a bugreport section.
            // Actual tracing files can be found in "/data/misc/wmtrace/" in the bugreport.
        "", {"cmd", "window", "tracing", "save-for-bugreport"},
            "", {"cmd", service, "tracing", "save-for-bugreport"},
            CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
    }
}

void Dumpstate::onUiIntensiveBugreportDumpsFinished(int32_t calling_uid) {
    if (calling_uid == AID_SHELL || !CalledByApi()) {