diff options
author | Kieran Cyphus <kierancyphus@google.com> | 2022-11-01 15:31:53 +0800 |
---|---|---|
committer | Kieran Cyphus <kierancyphus@google.com> | 2022-11-23 07:27:30 +0000 |
commit | fef314ea8a9ea9179920b58c4a38537714998aed (patch) | |
tree | 72e071b104482d25b76428cf35dbfd48ac94cf8d | |
parent | 945f9e6cd5775b49c284ebcc6204a46e46407295 (diff) | |
download | gs201-fef314ea8a9ea9179920b58c4a38537714998aed.tar.gz |
Dumpstate: include `LoggingMaskHistory.csv` on bugreport
Bug: 241739027
Test: trigger bugreport with `adb bugreport` and inspect the
logs to to make sure it is copying over LoggingMaskHistory and
including it in the tar file at the end.
Change-Id: I93ad2655193c57a0782c1535dc1cde3d0db1aeec
-rw-r--r-- | dumpstate/Dumpstate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index d9ae8b9..b111ebf 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -30,6 +30,7 @@ #include "DumpstateUtil.h" #define MODEM_LOG_DIRECTORY "/data/vendor/radio/logs/always-on" +#define MODEM_LOG_MASK_HISTORY_DIRECTORY "/data/vendor/radio/logs/mask_history" #define MODEM_EXTENDED_LOG_DIRECTORY "/data/vendor/radio/extended_logs" #define RIL_LOG_DIRECTORY "/data/vendor/radio" #define RIL_LOG_DIRECTORY_PROPERTY "persist.vendor.ril.log.base_dir" @@ -1158,8 +1159,10 @@ void Dumpstate::dumpModemSection(int fd) { void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) { std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY; + std::string modemLogMaskHistoryDir = MODEM_LOG_MASK_HISTORY_DIRECTORY; dumpLogs(fd, extendedLogDir, destDir, 20, EXTENDED_LOG_PREFIX); + dumpLogs(fd, modemLogMaskHistoryDir, destDir, 1, "LoggingMask"); dumpModemEFS(destDir); } |