Add hidraw device and Dynamic Sensor SE Linux policy
Test: Incoming HID data from Pixel Buds Change-Id: I77489100e13d892fb7d3a7cee9734de044795dec
This commit is contained in:
parent
ab9ec22267
commit
e5cc5f7937
5 changed files with 21 additions and 0 deletions
|
@ -23,3 +23,6 @@ type battery_history_device, dev_type;
|
|||
type st54spi_device, dev_type;
|
||||
type st33spi_device, dev_type;
|
||||
|
||||
# Raw HID device
|
||||
type hidraw_device, dev_type;
|
||||
|
||||
|
|
|
@ -222,3 +222,7 @@
|
|||
|
||||
# USB
|
||||
/vendor/bin/hw/set_usb_irq\.sh u:object_r:set-usb-irq-sh_exec:s0
|
||||
|
||||
# Raw HID device
|
||||
/dev/hidraw[0-9]* u:object_r:hidraw_device:s0
|
||||
|
||||
|
|
|
@ -12,6 +12,12 @@ allow hal_sensors_default chre_socket:sock_file write;
|
|||
# Allow create thread to watch AOC's device.
|
||||
allow hal_sensors_default device:dir r_dir_perms;
|
||||
|
||||
# Allow access for dynamic sensor properties.
|
||||
get_prop(hal_sensors_default, vendor_dynamic_sensor_prop)
|
||||
|
||||
# Allow access to raw HID devices for dynamic sensors.
|
||||
allow hal_sensors_default hidraw_device:chr_file rw_file_perms;
|
||||
|
||||
# Allow SensorSuez to connect AIDL stats.
|
||||
allow hal_sensors_default fwk_stats_service:service_manager find;
|
||||
|
||||
|
|
|
@ -29,3 +29,7 @@ vendor_internal_prop(vendor_fingerprint_prop)
|
|||
|
||||
# UWB calibration
|
||||
system_vendor_config_prop(vendor_uwb_calibration_prop)
|
||||
|
||||
# Dynamic sensor
|
||||
vendor_internal_prop(vendor_dynamic_sensor_prop)
|
||||
|
||||
|
|
|
@ -96,3 +96,7 @@ vendor.gf. u:object_r:vendor_fingerprint_prop:s0
|
|||
|
||||
#uwb
|
||||
ro.vendor.uwb.calibration. u:object_r:vendor_uwb_calibration_prop:s0 exact string
|
||||
|
||||
# Dynamic sensor
|
||||
vendor.dynamic_sensor. u:object_r:vendor_dynamic_sensor_prop:s0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue