diff options
author | 2024-05-15 07:48:19 +0000 | |
---|---|---|
committer | 2024-05-22 17:36:49 +0000 | |
commit | b250cae93f702caad11ac0b5bb87e68f1d8bde1d (patch) | |
tree | 9d4c414b2b7fedea4ad73e0d08354569615bcf63 /cmds/dumpstate/dumpstate.cpp | |
parent | 0893c1c3c5b7b926022ad7d4d02bfac00a904b52 (diff) |
Dump UWB snoop logs into bugreport
Bug: 341014812
Test: manual, bugreport attached in the associated bug
Change-Id: Idd8ed44d108ec2bf92d2f98bb22fabf3c7d97a56
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
-rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index c501921399..9b453826c4 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -190,6 +190,7 @@ void add_mountinfo(); #define SDK_EXT_INFO "/apex/com.android.sdkext/bin/derive_sdk" #define DROPBOX_DIR "/data/system/dropbox" #define PRINT_FLAGS "/system/bin/printflags" +#define UWB_LOG_DIR "/data/misc/apexdata/com.android.uwb/log" // TODO(narayan): Since this information has to be kept in sync // with tombstoned, we should just put it in a common header. @@ -1963,6 +1964,9 @@ Dumpstate::RunStatus Dumpstate::DumpstateDefaultAfterCritical() { RunCommand("SDK EXTENSIONS", {SDK_EXT_INFO, "--dump"}, CommandOptions::WithTimeout(10).Always().DropRoot().Build()); + // Dump UWB UCI logs here because apexdata requires root access + ds.AddDir(UWB_LOG_DIR, true); + if (dump_pool_) { RETURN_IF_USER_DENIED_CONSENT(); WaitForTask(std::move(dump_traces)); |