mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
Dumpstate: use new history dir and inc more files
Modify the logging mask file path to instead point to the new history directory, as well as include more files (right now only logging mask history and logging enabled history). Bug: 259174982 Test: Manually build and inspect bugreport to make sure files are included Change-Id: Id87f381a4895399a035ea4fe55d132e31d5d796c
This commit is contained in:
committed by
Kieran Cyphus
parent
87c26c1cd5
commit
bffe8fccb9
@@ -32,7 +32,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_LOG_HISTORY_DIRECTORY "data/vendor/radio/logs/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"
|
||||
@@ -622,10 +622,10 @@ void Dumpstate::dumpLEDSection(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;
|
||||
std::string modemLogHistoryDir = MODEM_LOG_HISTORY_DIRECTORY;
|
||||
|
||||
dumpLogs(fd, extendedLogDir, destDir, 20, EXTENDED_LOG_PREFIX);
|
||||
dumpLogs(fd, modemLogMaskHistoryDir, destDir, 1, "LoggingMask");
|
||||
dumpLogs(fd, modemLogHistoryDir, destDir, 2, "Logging");
|
||||
dumpModemEFS(destDir);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user