davinci: sepolicy: Allow sensors HAL to set persist sensors properties
Change-Id: Ie1ed422961f922f1239f10eb2e752106cf3f7778
This commit is contained in:
parent
566fe95ed5
commit
264db02b15
1
sepolicy/vendor/hal_sensors_default.te
vendored
1
sepolicy/vendor/hal_sensors_default.te
vendored
@ -3,4 +3,5 @@ type persist_sensors_prop, property_type;
|
|||||||
allow hal_sensors_default hal_audio_default:unix_stream_socket connectto;
|
allow hal_sensors_default hal_audio_default:unix_stream_socket connectto;
|
||||||
allow hal_sensors_default audio_socket:sock_file rw_file_perms;
|
allow hal_sensors_default audio_socket:sock_file rw_file_perms;
|
||||||
|
|
||||||
|
get_prop(hal_sensors_default, persist_sensors_prop)
|
||||||
get_prop(hal_sensors_default, vendor_adsprpc_prop)
|
get_prop(hal_sensors_default, vendor_adsprpc_prop)
|
||||||
|
3
sepolicy/vendor/property_contexts
vendored
3
sepolicy/vendor/property_contexts
vendored
@ -15,5 +15,8 @@ ro.hardware.fp u:object_r:vendor_fp_prop:s0
|
|||||||
sys.panel.display u:object_r:vendor_fp_prop:s0
|
sys.panel.display u:object_r:vendor_fp_prop:s0
|
||||||
vendor.fps_hal. u:object_r:vendor_fp_prop:s0
|
vendor.fps_hal. u:object_r:vendor_fp_prop:s0
|
||||||
|
|
||||||
|
# Sensors
|
||||||
|
persist.sensor. u:object_r:persist_sensors_prop:s0
|
||||||
|
|
||||||
# Xiaomi thermal daemon
|
# Xiaomi thermal daemon
|
||||||
sys.thermal. u:object_r:thermal_normal_prop:s0
|
sys.thermal. u:object_r:thermal_normal_prop:s0
|
||||||
|
Loading…
Reference in New Issue
Block a user