mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
health: Add CAP_BLOCK_SUSPEND
Add CAP_BLOCK_SUSPEND to android.hardware.health@1.0 and android.hardware.health@2.1 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: If9b0e1f60e47d7bf54942f589acbfbb883b9bac8
This commit is contained in:
@@ -2,4 +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
|
||||
capabilities WAKE_ALARM BLOCK_SUSPEND
|
||||
|
||||
@@ -2,5 +2,5 @@ service health-hal-2-1 /vendor/bin/hw/android.hardware.health@2.1-service
|
||||
class hal charger
|
||||
user system
|
||||
group system
|
||||
capabilities WAKE_ALARM
|
||||
capabilities WAKE_ALARM BLOCK_SUSPEND
|
||||
file /dev/kmsg w
|
||||
|
||||
Reference in New Issue
Block a user