summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hongwei Wang <hwwang@google.com> 2023-02-01 20:00:21 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-02-01 20:00:21 +0000
commit2efc751d73e4ed9f91ad41ceaca5a436d1ca06c4 (patch)
tree37ec3fe33efc2a0a5302b15f716ddd20fd600d1e
parent5fa662db2e5ad5a78119caa65776c051d21ed710 (diff)
parent392291386dd80f88f55870aaa6fbec83eea45d06 (diff)
Merge "Include WMShell protolog in bug-report"
-rw-r--r--cmds/dumpstate/dumpstate.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 83ae2d2b0a..ecafcfc170 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -3323,6 +3323,15 @@ void Dumpstate::MaybeSnapshotUiTraces() {
return;
}
+ // 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());
+
// Currently WindowManagerService and InputMethodManagerSerivice support WinScope protocol.
for (const auto& service : {"input_method", "window"}) {
RunCommand(