summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/dumpstate.cpp
diff options
context:
space:
mode:
author Hongwei Wang <hwwang@google.com> 2023-02-07 19:23:21 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-02-07 19:23:21 +0000
commitdddd8c9ca734a91c19f0f60a41298a643b149e4b (patch)
tree8622432955cb3a60e9129b2b8afb17747f4623ef /cmds/dumpstate/dumpstate.cpp
parent4023b99f3e35c0ad6b3fc72ab4842b1d85235cf1 (diff)
parent90765fd0eeea67dd34fbc02f82c0c70b0e27c84b (diff)
Merge "Include WMShell protolog in bug-report" am: 90765fd0ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2413712 Change-Id: I6c41bea6c667003f0992c94808751130bf70a628 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
-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 12de33f2db..00704b63be 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -3244,6 +3244,15 @@ void Dumpstate::MaybeSnapshotSystemTrace() {
}
void Dumpstate::MaybeSnapshotWinTrace() {
+ // 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 : {"window", "input_method"}) {
RunCommand(