commit | d3b6ea09c1a8a96cf7cd6c3cb9bfb0992f3eebfd | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Mon May 07 13:00:09 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Mon May 07 13:00:09 2018 -0700 |
tree | 53099b9865f245b89e6a37a7be38373125bb2c71 | |
parent | 240aa377622024596b5f286ac98874a9d3c2eb49 [diff] | |
parent | 5c2a8265c6821263e018c59b36fd8d4772546bb2 [diff] |
Merge changes from topic "lazy-dumpstate" am: 5c2a8265c6 Change-Id: I81b8c547d174a4becfb99ed0cb4e9fe53be1ac15
diff --git a/dumpstate/1.0/default/DumpstateDevice.cpp b/dumpstate/1.0/default/DumpstateDevice.cpp index 818a531..88623af 100644 --- a/dumpstate/1.0/default/DumpstateDevice.cpp +++ b/dumpstate/1.0/default/DumpstateDevice.cpp
@@ -18,6 +18,7 @@ #include "DumpstateDevice.h" +#include <hidl/HidlBinderSupport.h> #include <log/log.h> #include "DumpstateUtil.h" @@ -37,6 +38,11 @@ // this interface - since HIDL_FETCH_IDumpstateDevice() is not defined, this function will never // be called by dumpstate. + // 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/1.0/default/android.hardware.dumpstate@1.0-service.rc b/dumpstate/1.0/default/android.hardware.dumpstate@1.0-service.rc index 0f27248..dfbfb33 100644 --- a/dumpstate/1.0/default/android.hardware.dumpstate@1.0-service.rc +++ b/dumpstate/1.0/default/android.hardware.dumpstate@1.0-service.rc
@@ -2,3 +2,6 @@ class hal user system group system + interface android.hardware.dumpstate@1.0::IDumpstateDevice default + oneshot + disabled