commit | 1fe2196f11861d4c01f44438f0970a49c82e046e | [log] [tgz] |
---|---|---|
author | Felix <none@none.none> | Fri Jan 04 02:42:03 2019 +0100 |
committer | Felix Elsner <google@ix5.org> | Sun Jan 06 16:07:50 2019 +0000 |
tree | ef7c506cd53c49f701729872e9414b79101a3944 | |
parent | b2dedd4938302c1d2197169a80bb26c3152ea62a [diff] |
health: Add CAP_WAKE_ALARM to service health/2.0/default/healthd_common.cpp wants to use timerfd_create() to register a wakealarm. To use the timerfd_create() syscall with CLOCK_BOOTTIME_ALARM, CAP_WAKE_ALARM is needed. Update the README to reflect the needed cap in the init file, see also https://r.android.com/861532 Since the v1.0 HAL is in passthrough mode, the cap is needed for the 1.0 service as well. Change-Id: I0e71da125eeef1360b5fd8bc7a69285e0b786511 Signed-off-by: Felix <google@ix5.org>
diff --git a/health/1.0/default/android.hardware.health@1.0-service.rc b/health/1.0/default/android.hardware.health@1.0-service.rc index d74a07e..405784f 100644 --- a/health/1.0/default/android.hardware.health@1.0-service.rc +++ b/health/1.0/default/android.hardware.health@1.0-service.rc
@@ -2,3 +2,4 @@ class hal user system group system + capabilities WAKE_ALARM
diff --git a/health/2.0/README.md b/health/2.0/README.md index bdfb5a3..58ea9e3 100644 --- a/health/2.0/README.md +++ b/health/2.0/README.md
@@ -67,6 +67,7 @@ class hal user system group system + capabilities WAKE_ALARM file /dev/kmsg w ```