Include /dev/trusty-log0 as one of the Cloudripper's dumpstate_board section
- DumpState add trusty section to dump /dev/trusty-log0 - ueventd.gs101.rc: add /dev/trusty-log0 (system ownership) and r/w permissions to user/group Test: adb root; adb shell lshal debug android.hardware.dumpstate@1.1::IDumpstateDevice/default trusty Bug: 192036703 Change-Id: I752ee9c9a88855485d71ed9deb1555df5bb005cd Signed-off-by: Armelle Laine <armellel@google.com>
This commit is contained in:
parent
80b4b76457
commit
ab4c5929db
3 changed files with 7 additions and 0 deletions
|
@ -160,6 +160,7 @@
|
||||||
|
|
||||||
# Trusty
|
# Trusty
|
||||||
/dev/trusty-ipc-dev0 0660 system drmrpc
|
/dev/trusty-ipc-dev0 0660 system drmrpc
|
||||||
|
/dev/trusty-log0 0660 system system
|
||||||
|
|
||||||
# Citadel
|
# Citadel
|
||||||
/dev/gsc0 0660 hsm hsm
|
/dev/gsc0 0660 hsm hsm
|
||||||
|
|
|
@ -247,6 +247,7 @@ DumpstateDevice::DumpstateDevice()
|
||||||
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
|
{ "ramdump", [this](int fd) { dumpRamdumpSection(fd); } },
|
||||||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||||
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
|
{ "gsc", [this](int fd) { dumpGscSection(fd); } },
|
||||||
|
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
|
||||||
} {
|
} {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -846,6 +847,10 @@ void DumpstateDevice::dumpGscSection(int fd) {
|
||||||
RunCommandToFd(fd, "Citadel STATS", {"vendor/bin/hw/citadel_updater", "--stats"});
|
RunCommandToFd(fd, "Citadel STATS", {"vendor/bin/hw/citadel_updater", "--stats"});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DumpstateDevice::dumpTrustySection(int fd) {
|
||||||
|
DumpFileToFd(fd, "Trusty TEE0 Logs", "/dev/trusty-log0");
|
||||||
|
}
|
||||||
|
|
||||||
void DumpstateDevice::dumpModem(int fd, int fdModem)
|
void DumpstateDevice::dumpModem(int fd, int fdModem)
|
||||||
{
|
{
|
||||||
std::string modemLogDir = MODEM_LOG_DIRECTORY;
|
std::string modemLogDir = MODEM_LOG_DIRECTORY;
|
||||||
|
|
|
@ -82,6 +82,7 @@ struct DumpstateDevice : public IDumpstateDevice {
|
||||||
void dumpRamdumpSection(int fd);
|
void dumpRamdumpSection(int fd);
|
||||||
void dumpMiscSection(int fd);
|
void dumpMiscSection(int fd);
|
||||||
void dumpGscSection(int fd);
|
void dumpGscSection(int fd);
|
||||||
|
void dumpTrustySection(int fd);
|
||||||
|
|
||||||
// Hybrid and binary sections that require an additional file descriptor
|
// Hybrid and binary sections that require an additional file descriptor
|
||||||
void dumpModem(int fd, int fdModem);
|
void dumpModem(int fd, int fdModem);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue