Dump GSC info am: 8472b7ad62

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14492030

Change-Id: I691012f712eb7b949101dd7fe065a14703825f9b
This commit is contained in:
Qinchen Gu 2021-05-12 10:25:05 +00:00 committed by Automerger Merge Worker
commit 2dc2b7c899
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);