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

Commit f1115a2b authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Include WMShell protolog in bug-report

When generating the bug-report, dumpstate will now issue a
"save-for-bugreport" command to the WMShell and WMShell flashes the
proto logging file to /data/misc/wmtrace if it's enabled.

/data/misc/wmtrace is included in the final bug-report.

Bug: 251513116
Test: adb bugreport
Ignore-AOSP-First: cherry-pick of aosp/2413712
Merged-In: I2f48511868a871a290ca38126c4a4c3016169db4
Change-Id: I2f48511868a871a290ca38126c4a4c3016169db4
parent 47b10431
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3172,6 +3172,15 @@ void Dumpstate::MaybeSnapshotWinTrace() {
            "", {"cmd", service, "tracing", "save-for-bugreport"},
            CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
    }
    // Additionally, include the proto logging from WMShell.
    RunCommand(
        // Empty name because it's not intended to be classified as a bugreport section.
        // Actual logging files can be found as "/data/misc/wmtrace/shell_log.winscope"
        // in the bugreport.
        "", {"dumpsys", "activity", "service", "SystemUIService",
             "WMShell", "protolog", "save-for-bugreport"},
        CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());

}

void Dumpstate::onUiIntensiveBugreportDumpsFinished(int32_t calling_uid) {