From 306f6c5e8c3780fd0cee8287e7eadf842cda29c2 Mon Sep 17 00:00:00 2001 From: matthuang Date: Tue, 31 Jan 2023 17:30:19 +0800 Subject: [PATCH] Allow sensor hal to access uhid devices. Bug: 262056923 Test: Screen is off when put a magnet close to hall sensor. Change-Id: I2031c167f242b10b0a03076f0bc4184dd21e2cd5 --- vendor/hal_sensors_default.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/hal_sensors_default.te b/vendor/hal_sensors_default.te index 978d9b4..da6b54e 100644 --- a/vendor/hal_sensors_default.te +++ b/vendor/hal_sensors_default.te @@ -4,3 +4,6 @@ # Allow sensor HAL to access pogo driver hall file node. allow hal_sensors_default sysfs_pogo_usb:file rw_file_perms; + +# Allow access to the uhid devices. +allow hal_sensors_default uhid_device:chr_file rw_file_perms;