Commit Graph

10 Commits

Author SHA1 Message Date
Roman Kiryanov
58c23a6832 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
2020-03-24 11:52:24 -07:00
Steven Moreland
1f4d49f896 dumpstate example: use new lazy hal mechanism
hwservicemanager will now shutdown the service when it is not in use.
This puts less restrictions on clients.

Bug: N/A
Test: build only (this is an example implementation not used on any
    device)

Change-Id: I4641e727f6e4c3ca5d97d53a66b3cc0fee6f12f3
2019-10-02 17:01:40 -07:00
Steven Moreland
21d87dde45 Remove misleading comment in sample dumpstate impl
HIDL_FETCH_IDumpstateDevice isn't defined simply
because this is a binderized service and this function
would be called (to no great use) if it was installed
to a device.

Bug: N/A
Test: N/A
Change-Id: I9b660af3fe329977cdcd0c3f485af651c34416cb
2018-07-20 21:06:53 +00:00
Steven Moreland
521d15c537 Make dumpstate HAL lazy.
Bug: 78509314
Test: HAL isn't running
Test: adb bugreport HAL runs
Test: HAL isn't running after bugreport finishes
Test: manually inspect state using `lshal` and logs
    using `adb logcat | grep android.hardware.dump`

(cherry picked from commit 711b806727c85d91cf805db4f78b4a9609e2bf43)

Change-Id: Ic97516a4297e7933430fb4fa3fd0109f8c1b1d0a
2018-05-07 09:35:11 -07:00
Steven Moreland
34ace43a2d Check handle for nullptr
Test: pass
Bug: 37662706
Change-Id: Ia3ec4d8e512d18b679a9d6291a8dfdc0eb0cceec
2017-05-23 16:12:34 -07:00
Sandeep Patil
fd472b82f5 dumpstate hal: use vendor toybox
Bug: 36463595
Test: Dumpstate works

Change-Id: I9f79924fe6c2c7624f97ce24dcf95f61ee165146
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-04-14 19:14:42 -07:00
Steven Moreland
92a95b2870 Dumpstate: default service implementation.
- dumpstate will not have passthrough mode. All new implementations are
  required anyway. It makes more sense to just have them binderized by
  default.

Test: compiles/put on device in right location/running
Bug: 31982882
Change-Id: Ib0c12a2e0da931060f0e9e990fb63b6c7bc9e872
2017-01-11 16:09:35 -08:00
Felipe Leme
6a276ba842 Passing title to libdumpstateutil functions.
BUG: 31982882

Test: built and ran it

Change-Id: Icf09ca272b072c78794855157f13be8cafdb6a47
2016-11-28 13:44:30 -08:00
Colin Cross
94a069e8dc Use newly introduced hidl_handle in DumpstateDefault
The dumpstate hal passes a hild_handle, but DumpstateDefault was
expecting a native_handle_t*.  This was exposed when
Id7dbc646b50f132e240bfbba719a2d36585ccc35 caused the Android.mk
file to be picked up.

Bug: 31982882
Bug: 32089785
Test: builds
Change-Id: I48c84b6d19a93ceb0641be517f378fd6aba45962
2016-11-22 21:33:24 -08:00
Felipe Leme
e83f9fbc02 Initial definition of the Dumpstate HIDL interfaces.
BUG: 31982882
Test: manually built it

Change-Id: I3dd1d681061d16059ec9cf67869f20759fb75cd0
2016-11-18 17:05:34 -08:00