Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5aa27a00 authored by Roman Kiryanov's avatar Roman Kiryanov
Browse files

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: default avatarRoman Kiryanov <rkir@google.com>
Merged-In: I6202878427718bc825063941377c3e91b798677f
Change-Id: I47fb746e17b9a2771a8857e6c6b80abce6324de4
parent 2ccf0825
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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();
}