From 9abc8e213f97a4ad81f1c34220306a13f0a64660 Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Tue, 5 Jul 2022 23:10:27 -0700 Subject: [PATCH] interfaces: sensors: Add group 'input' to 2.[0-1] multihals * Required by some OEM sensor implementations, e.g. ASUS ZenFone 8, ASUS ROG Phone 3, OnePlus 9. This is done so /dev/input/event* nodes can be read by the QCOM sensor HAL. Test: Verified light and proximity sensor work on ASUS ZenFone 8 & ROG Phone 3 (android-12.1.0_r7). Change-Id: I1a2d7384da0b159a4b59fcf38c37117d43b3b127 --- .../multihal/android.hardware.sensors@2.0-service-multihal.rc | 2 +- .../multihal/android.hardware.sensors@2.1-service-multihal.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sensors/2.0/multihal/android.hardware.sensors@2.0-service-multihal.rc b/sensors/2.0/multihal/android.hardware.sensors@2.0-service-multihal.rc index 8867a1ae8e..c87460437e 100644 --- a/sensors/2.0/multihal/android.hardware.sensors@2.0-service-multihal.rc +++ b/sensors/2.0/multihal/android.hardware.sensors@2.0-service-multihal.rc @@ -1,7 +1,7 @@ service vendor.sensors-hal-2-0-multihal /vendor/bin/hw/android.hardware.sensors@2.0-service.multihal class hal user system - group system wakelock context_hub + group system wakelock context_hub input task_profiles ServiceCapacityLow capabilities BLOCK_SUSPEND rlimit rtprio 10 10 diff --git a/sensors/2.1/multihal/android.hardware.sensors@2.1-service-multihal.rc b/sensors/2.1/multihal/android.hardware.sensors@2.1-service-multihal.rc index f47e060f88..deea16e4d3 100644 --- a/sensors/2.1/multihal/android.hardware.sensors@2.1-service-multihal.rc +++ b/sensors/2.1/multihal/android.hardware.sensors@2.1-service-multihal.rc @@ -1,7 +1,7 @@ service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@2.1-service.multihal class hal user system - group system wakelock context_hub + group system wakelock context_hub input task_profiles ServiceCapacityLow capabilities BLOCK_SUSPEND rlimit rtprio 10 10