From 6d2810da32ab14ecd380f05e1d5acd419675785b Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Wed, 13 Oct 2021 15:13:10 +0200 Subject: [PATCH] sm6150-common: sepolicy: Bringup property_contexts for Android 13 Change-Id: I60070ba7658ce262be66ee3bdd0cb6cdcf9b8c49 --- BoardConfigCommon.mk | 1 + sepolicy/private/property_contexts | 17 +++++++++++++++++ sepolicy/vendor/property_contexts | 14 -------------- 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 sepolicy/private/property_contexts diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index dc3bba4..26b8b2c 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -139,6 +139,7 @@ TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH) TARGET_SEPOLICY_DIR := msmsteppe include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk +SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/private BOARD_VENDOR_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor # Trust diff --git a/sepolicy/private/property_contexts b/sepolicy/private/property_contexts new file mode 100644 index 0000000..344d150 --- /dev/null +++ b/sepolicy/private/property_contexts @@ -0,0 +1,17 @@ +# Camera +ro.camera.req.fmq.size u:object_r:exported_default_prop:s0 +ro.camera.res.fmq.size u:object_r:exported_default_prop:s0 + +# Sensors +persist.sensor. u:object_r:persist_sensors_prop:s0 + +# Fingerprint +gf.debug. u:object_r:exported_default_prop:s0 + +# Xiaomi specific build properties +ro.boot.hwc u:object_r:exported_default_prop:s0 +ro.boot.hwversion u:object_r:exported_default_prop:s0 +ro.build.flavor u:object_r:exported_default_prop:s0 +ro.cust.test u:object_r:exported_system_prop:s0 +ro.miui. u:object_r:exported_system_prop:s0 +ro.product.mod_device u:object_r:build_prop:s0 diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index b4e40bd..e23fb96 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -6,11 +6,8 @@ camera.sensor.frontMain.fuseID u:object_r:vendor_camera_prop:s0 camera.sensor.rearUltra.fuseID u:object_r:vendor_camera_prop:s0 camera.sensor.rearTele.fuseID u:object_r:vendor_camera_prop:s0 persist.camera. u:object_r:vendor_camera_prop:s0 -ro.camera.req.fmq.size u:object_r:vendor_camera_prop:s0 -ro.camera.res.fmq.size u:object_r:vendor_camera_prop:s0 # Fingerprint -gf.debug. u:object_r:vendor_fp_prop:s0 persist.vendor.sys.fp. u:object_r:vendor_fp_prop:s0 ro.boot.fpsensor u:object_r:vendor_fp_prop:s0 ro.hardware.fp u:object_r:vendor_fp_prop:s0 @@ -20,9 +17,6 @@ vendor.fps_hal. u:object_r:vendor_fp_prop:s0 # Power HAL vendor.powerhal. u:object_r:vendor_power_prop:s0 -# Sensors -persist.sensor. u:object_r:persist_sensors_prop:s0 - # Telephony ro.vendor.oem.imei u:object_r:vendor_deviceid_prop:s0 ro.vendor.oem.meid u:object_r:vendor_deviceid_prop:s0 @@ -31,13 +25,5 @@ ro.vendor.oem.sno u:object_r:vendor_sno_prop:s0 persist.vendor.radio.imei u:object_r:vendor_deviceid_prop:s0 persist.vendor.radio.meid u:object_r:vendor_deviceid_prop:s0 -# Xiaomi specific build properties -ro.boot.hwc u:object_r:build_prop:s0 -ro.boot.hwversion u:object_r:build_prop:s0 -ro.build.flavor u:object_r:build_prop:s0 -ro.cust.test u:object_r:build_prop:s0 -ro.miui. u:object_r:build_prop:s0 -ro.product.mod_device u:object_r:build_prop:s0 - # Xiaomi thermal daemon vendor.sys.thermal. u:object_r:vendor_thermal_normal_prop:s0