diff --git a/device.mk b/device.mk index 2c6bf660..bbf7439c 100644 --- a/device.mk +++ b/device.mk @@ -822,6 +822,9 @@ endif $(call inherit-product, system/core/trusty/trusty-storage.mk) $(call inherit-product, system/core/trusty/trusty-base.mk) +# Trusty dump +include device/google/gs-common/trusty/trusty.mk + # Trusty unit test tool PRODUCT_PACKAGES_DEBUG += trusty-ut-ctrl diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 0c13943d..34b1433f 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -262,7 +262,6 @@ DumpstateDevice::DumpstateDevice() { "aoc", [this](int fd) { dumpAoCSection(fd); } }, { "misc", [this](int fd) { dumpMiscSection(fd); } }, { "camera", [this](int fd) { dumpCameraSection(fd); } }, - { "trusty", [this](int fd) { dumpTrustySection(fd); } }, } { } @@ -974,10 +973,6 @@ void DumpstateDevice::dumpCameraSection(int fd) { CommandOptions::WithTimeout(4).Build()); } -void DumpstateDevice::dumpTrustySection(int fd) { - DumpFileToFd(fd, "Trusty TEE0 Logs", "/dev/trusty-log0"); -} - static void *dumpModemThread(void *data) { std::string modemLogDir = MODEM_LOG_DIRECTORY; std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY; diff --git a/dumpstate/DumpstateDevice.h b/dumpstate/DumpstateDevice.h index db0779f4..2247b3dc 100644 --- a/dumpstate/DumpstateDevice.h +++ b/dumpstate/DumpstateDevice.h @@ -74,7 +74,6 @@ struct DumpstateDevice : public IDumpstateDevice { void dumpAoCSection(int fd); void dumpMiscSection(int fd); void dumpCameraSection(int fd); - void dumpTrustySection(int fd); }; } // namespace implementation