Accelerate fetching trusty log

Bug: 238980177
Test: vts-tradefed run vts -m VtsHalDumpstateTargetTest
Change-Id: Ib26f3c217ef4826495ee0d98a659503de2fb5ab2
This commit is contained in:
Adam Shih 2022-07-25 14:59:05 +08:00
parent c73de44aea
commit b074658691

View file

@ -1063,7 +1063,7 @@ void Dumpstate::dumpGscSection(int fd) {
}
void Dumpstate::dumpTrustySection(int fd) {
DumpFileToFd(fd, "Trusty TEE0 Logs", "/dev/trusty-log0");
RunCommandToFd(fd, "Trusty TEE0 Logs", {"/vendor/bin/sh", "-c", "cat /dev/trusty-log0"}, CommandOptions::WithTimeout(1).Build());
}
void Dumpstate::dumpModemSection(int fd) {