summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorFelix <none@none.none>2019-01-04 02:42:03 +0100
committerFelix Elsner <google@ix5.org>2019-01-06 16:07:50 +0000
commit1fe2196f11861d4c01f44438f0970a49c82e046e (patch)
treeef7c506cd53c49f701729872e9414b79101a3944 /health
parentb2dedd4938302c1d2197169a80bb26c3152ea62a (diff)
downloadandroid_hardware_interfaces-1fe2196f11861d4c01f44438f0970a49c82e046e.tar.gz
android_hardware_interfaces-1fe2196f11861d4c01f44438f0970a49c82e046e.tar.bz2
android_hardware_interfaces-1fe2196f11861d4c01f44438f0970a49c82e046e.zip
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>
Diffstat (limited to 'health')
-rw-r--r--health/1.0/default/android.hardware.health@1.0-service.rc1
-rw-r--r--health/2.0/README.md1
2 files changed, 2 insertions, 0 deletions
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 d74a07e2f..405784f9f 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 @@ service vendor.health-hal-1-0 /vendor/bin/hw/android.hardware.health@1.0-service
class hal
user system
group system
+ capabilities WAKE_ALARM
diff --git a/health/2.0/README.md b/health/2.0/README.md
index bdfb5a3df..58ea9e367 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
```