Allow sensor hal to access uhid devices.

Bug: 262056923
Bug: 274537630
Test: Screen is off when put a magnet close to hall sensor.
Change-Id: I2031c167f242b10b0a03076f0bc4184dd21e2cd5
Merged-In: I2031c167f242b10b0a03076f0bc4184dd21e2cd5
This commit is contained in:
matthuang 2023-01-31 17:30:19 +08:00 committed by Pin-Yu Huang
parent 7e59945dbb
commit 7e7ab2d604

View file

@ -4,3 +4,6 @@
# Allow sensor HAL to access pogo driver hall file node. # Allow sensor HAL to access pogo driver hall file node.
allow hal_sensors_default sysfs_pogo_usb:file rw_file_perms; 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;