diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index f676ad89..16a39ff9 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -21,6 +21,8 @@ #include #include #include +#include + #include #include @@ -210,6 +212,11 @@ static void DumpTouch(int fd) { // Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow. Return DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { + // Exit when dump is completed since this is a lazy HAL. + addPostCommandTask([]() { + exit(0); + }); + if (handle == nullptr || handle->numFds < 1) { ALOGE("no FDs\n"); return Void(); diff --git a/dumpstate/android.hardware.dumpstate@1.0-service.wahoo.rc b/dumpstate/android.hardware.dumpstate@1.0-service.wahoo.rc index 4c024a0b..950da390 100644 --- a/dumpstate/android.hardware.dumpstate@1.0-service.wahoo.rc +++ b/dumpstate/android.hardware.dumpstate@1.0-service.wahoo.rc @@ -3,6 +3,8 @@ service vendor.dumpstate-1-0 /vendor/bin/hw/android.hardware.dumpstate@1.0-servi user system group system interface android.hardware.dumpstate@1.0::IDumpstateDevice default + oneshot + disabled on boot chmod 0444 /sys/kernel/debug/tzdbg/qsee_log