From 264db02b1500840658903677439de63538f08b2e Mon Sep 17 00:00:00 2001 From: Arian Date: Wed, 22 Apr 2020 21:43:11 +0200 Subject: [PATCH] davinci: sepolicy: Allow sensors HAL to set persist sensors properties Change-Id: Ie1ed422961f922f1239f10eb2e752106cf3f7778 --- sepolicy/vendor/hal_sensors_default.te | 1 + sepolicy/vendor/property_contexts | 3 +++ 2 files changed, 4 insertions(+) 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