Fix file paths for DumpstateUtil calls in 1.0
selinux prevents access to /vendor/bin/date and /system/etc/hosts. Bug: 152067221 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: I6202878427718bc825063941377c3e91b798677f
This commit is contained in:
parent
23e3c29369
commit
58c23a6832
1 changed files with 2 additions and 3 deletions
|
@ -51,9 +51,8 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
|
|||
ALOGI("Dumpstate HIDL not provided by device\n");
|
||||
dprintf(fd, "Dumpstate HIDL not provided by device; providing bogus data.\n");
|
||||
|
||||
// Shows some examples on how to use the libdumpstateutil API.
|
||||
RunCommandToFd(fd, "DATE", {"/vendor/bin/date"});
|
||||
DumpFileToFd(fd, "HOSTS", "/system/etc/hosts");
|
||||
// Shows an example on how to use the libdumpstateutil API.
|
||||
DumpFileToFd(fd, "cmdline", "/proc/self/cmdline");
|
||||
|
||||
return Void();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue