Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fe2196f authored by Felix's avatar Felix Committed by Felix Elsner
Browse files

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: default avatarFelix <google@ix5.org>
parent b2dedd49
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@
        class hal
        user system
        group system
        capabilities WAKE_ALARM
        file /dev/kmsg w
    ```