diff --git a/sepolicy/vendor/hal_sensors_default.te b/sepolicy/vendor/hal_sensors_default.te index 8f32f45..6ab52d5 100644 --- a/sepolicy/vendor/hal_sensors_default.te +++ b/sepolicy/vendor/hal_sensors_default.te @@ -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 audio_socket:sock_file rw_file_perms; +get_prop(hal_sensors_default, persist_sensors_prop) get_prop(hal_sensors_default, vendor_adsprpc_prop) diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 9c77033..e545b1f 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -15,5 +15,8 @@ ro.hardware.fp 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 +# Sensors +persist.sensor. u:object_r:persist_sensors_prop:s0 + # Xiaomi thermal daemon sys.thermal. u:object_r:thermal_normal_prop:s0