diff options
author | Adam Shih <adamshih@google.com> | 2022-07-25 14:59:05 +0800 |
---|---|---|
committer | Adam Shih <adamshih@google.com> | 2022-07-26 00:12:44 +0000 |
commit | b0746586915d1b7543476ec346d39e25825802cc (patch) | |
tree | ab60b67e0bec9e6a3feea2b1e263f3e347a8e6a0 | |
parent | c73de44aea5d85d16f5788338d4143a0a4c80b44 (diff) | |
download | gs201-b0746586915d1b7543476ec346d39e25825802cc.tar.gz |
Accelerate fetching trusty log
Bug: 238980177
Test: vts-tradefed run vts -m VtsHalDumpstateTargetTest
Change-Id: Ib26f3c217ef4826495ee0d98a659503de2fb5ab2
-rw-r--r-- | dumpstate/Dumpstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index 040ed44..636dfa7 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -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) { |