commit | 9ac41106d8cd552b9f86781f772eae3c106294f7 | [log] [tgz] |
---|---|---|
author | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | Wed Oct 14 12:32:55 2020 -0700 |
committer | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | Wed Oct 14 12:35:23 2020 -0700 |
tree | e23c8e06539fcc71f2cacf32b97b5d5c550d11cc | |
parent | 1fa07549e19dd35dddc3e83f5b47f7b01c687f72 [diff] |
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
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 405784f..569dc88 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,4 +2,4 @@ class hal user system group system - capabilities WAKE_ALARM + capabilities WAKE_ALARM BLOCK_SUSPEND
diff --git a/health/2.1/default/android.hardware.health@2.1-service.rc b/health/2.1/default/android.hardware.health@2.1-service.rc index b6d9e3b..8728257 100644 --- a/health/2.1/default/android.hardware.health@2.1-service.rc +++ b/health/2.1/default/android.hardware.health@2.1-service.rc
@@ -2,5 +2,5 @@ class hal charger user system group system - capabilities WAKE_ALARM + capabilities WAKE_ALARM BLOCK_SUSPEND file /dev/kmsg w