diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 235c5fb1..b3e07187 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -255,6 +255,7 @@ DumpstateDevice::DumpstateDevice() { "misc", [this](int fd) { dumpMiscSection(fd); } }, { "gsc", [this](int fd) { dumpGscSection(fd); } }, { "camera", [this](int fd) { dumpCameraSection(fd); } }, + { "trusty", [this](int fd) { dumpTrustySection(fd); } }, } { } @@ -921,6 +922,10 @@ void DumpstateDevice::dumpCameraSection(int fd) { CommandOptions::WithTimeout(4).Build()); } +void DumpstateDevice::dumpTrustySection(int fd) { + DumpFileToFd(fd, "Trusty TEE0 Logs", "/dev/trusty-log0"); +} + void DumpstateDevice::dumpModem(int fd, int fdModem) { std::string modemLogDir = MODEM_LOG_DIRECTORY; diff --git a/dumpstate/DumpstateDevice.h b/dumpstate/DumpstateDevice.h index 5c2b5ad0..8e9a445e 100644 --- a/dumpstate/DumpstateDevice.h +++ b/dumpstate/DumpstateDevice.h @@ -83,6 +83,7 @@ struct DumpstateDevice : public IDumpstateDevice { void dumpMiscSection(int fd); void dumpGscSection(int fd); void dumpCameraSection(int fd); + void dumpTrustySection(int fd); // Hybrid and binary sections that require an additional file descriptor void dumpModem(int fd, int fdModem);