Dump GSC info

Bug: 185939493
Test: adb bugreport. Look for GSC-related info.

Change-Id: I17fd4d7ef4c16661312d594c99818233cd0ee76a
This commit is contained in:
Qinchen Gu 2021-05-10 17:04:27 -07:00 committed by TreeHugger Robot
parent 79e81ad478
commit 7aafb36f77
2 changed files with 8 additions and 0 deletions

View file

@ -245,6 +245,7 @@ DumpstateDevice::DumpstateDevice()
{ "sensors-usf", [this](int fd) { dumpSensorsUSFSection(fd); } },
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
} {
}
@ -831,6 +832,12 @@ void DumpstateDevice::dumpMiscSection(int fd) {
RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"});
}
// Dump items related to GSC
void DumpstateDevice::dumpGscSection(int fd) {
RunCommandToFd(fd, "Citadel VERSION", {"vendor/bin/hw/citadel_updater", "-lv"});
RunCommandToFd(fd, "Citadel STATS", {"vendor/bin/hw/citadel_updater", "--stats"});
}
void DumpstateDevice::dumpModem(int fd, int fdModem)
{
std::string modemLogDir = MODEM_LOG_DIRECTORY;

View file

@ -80,6 +80,7 @@ struct DumpstateDevice : public IDumpstateDevice {
void dumpSensorsUSFSection(int fd);
void dumpRamdumpSection(int fd);
void dumpMiscSection(int fd);
void dumpGscSection(int fd);
// Hybrid and binary sections that require an additional file descriptor
void dumpModem(int fd, int fdModem);