From 28ebc236258d0131ac5227b576452a0a35030ac5 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Wed, 14 Oct 2020 12:22:30 -0700 Subject: [PATCH] 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 --- healthd/android.hardware.health@2.0-service.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthd/android.hardware.health@2.0-service.rc b/healthd/android.hardware.health@2.0-service.rc index 6960c5d38..762771e5e 100644 --- a/healthd/android.hardware.health@2.0-service.rc +++ b/healthd/android.hardware.health@2.0-service.rc @@ -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