summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Cyphus <kierancyphus@google.com>2022-11-01 15:28:59 +0800
committerKieran Cyphus <kierancyphus@google.com>2022-11-23 07:27:30 +0000
commit72014f715cd4e028205ba4d0bb4549164b50dd04 (patch)
treef71749fdf3c7ad70bab54df084fd32b5fd6c4786
parent19c70e1342ff8b31ab2a14bb3d45be5359a55f3c (diff)
DumpstateDevice: include mask history file
Includes the file `LoggingMaskHistory.csv` when a bug report is triggered. Bug: 241739027 Test: Trigger a bugreport with `adb bugreport` and check to make sure the report contains the `LoggingMaskHistory` file. E.g. after unzipping `cat <bugreport>.txt | grep -a 'LoggingMaskHistory'`. Change-Id: Idfbe759c331a206773bc9dd0647c9016825b17d7
-rw-r--r--dumpstate/DumpstateDevice.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index b5b1d424..631513b6 100644
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -33,6 +33,7 @@
#define MODEM_LOG_DIRECTORY "/data/vendor/radio/logs/always-on"
#define MODEM_EXTENDED_LOG_DIRECTORY "/data/vendor/radio/extended_logs"
+#define MODEM_LOG_MASK_HISTORY_DIRECTORY "/data/vendor/radio/logs/mask_history"
#define RIL_LOG_DIRECTORY "/data/vendor/radio"
#define RIL_LOG_DIRECTORY_PROPERTY "persist.vendor.ril.log.base_dir"
#define RIL_LOG_NUMBER_PROPERTY "persist.vendor.ril.log.num_file"
@@ -1082,6 +1083,7 @@ void DumpstateDevice::dumpModemSection(int fd) {
static void *dumpModemThread(void *data) {
std::string modemLogDir = MODEM_LOG_DIRECTORY;
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;
+ std::string modemLogMaskHistoryDir = MODEM_LOG_MASK_HISTORY_DIRECTORY;
std::string tcpdumpLogDir = TCPDUMP_LOG_DIRECTORY;
static const std::string sectionName = "modem";
@@ -1144,6 +1146,7 @@ static void *dumpModemThread(void *data) {
}
dumpLogs(STDOUT_FILENO, extendedLogDir, modemLogAllDir, 50, EXTENDED_LOG_PREFIX);
+ dumpLogs(STDOUT_FILENO, modemLogMaskHistoryDir, modemLogAllDir, 1, "LoggingMask");
dumpRilLogs(STDOUT_FILENO, modemLogAllDir);
dumpNetmgrLogs(modemLogAllDir);
dumpModemEFS(modemLogAllDir);