davinci: sepolicy: Allow sensors HAL to set persist sensors properties

Change-Id: Ie1ed422961f922f1239f10eb2e752106cf3f7778
This commit is contained in:
Arian 2020-04-22 21:43:11 +02:00
parent 566fe95ed5
commit 264db02b15
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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