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>
This commit is contained in:
Felix
2019-01-04 02:42:03 +01:00
committed by Felix Elsner
parent b2dedd4938
commit 1fe2196f11
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -67,6 +67,7 @@
class hal
user system
group system
capabilities WAKE_ALARM
file /dev/kmsg w
```