health: Add CAP_BLOCK_SUSPEND

Add CAP_BLOCK_SUSPEND to android.hardware.health@2.0 service so
that when epoll_wait() is waiting on uevents and timer_fd events
it can block suspend to take the necessary action. Without this
permission, eventpoll is going to ignore the flags EPOLLWAKEUP
used in health HAL or healthloop.

Bug: 169873088
Change-Id: I50d84dd853f718d46fb4f15113da032b60c34b0d
This commit is contained in:
Subbaraman Narayanamurthy 2020-10-14 12:22:30 -07:00
parent f536731e5a
commit 28ebc23625

View file

@ -2,5 +2,5 @@ service health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service
class hal
user system
group system
capabilities WAKE_ALARM
capabilities WAKE_ALARM BLOCK_SUSPEND
file /dev/kmsg w