From e405561d06367bab1aeb0ba7c8735b65549a0730 Mon Sep 17 00:00:00 2001 From: Juan Rong Date: Sat, 18 Jan 2020 09:55:49 +0800 Subject: [PATCH] [ALPS03886705] EmCamera:sytemproperty name change [Detail] P migration: System property name change, related SELinux need change too. MTK-Commit-Id: f71582111ca7952637d39f49d8dccebdc933e299 Change-Id: Id0afb83774b37a23dfdcb8c85ccbd79310ad20e3 CR-Id: ALPS03886705 Feature: Engineering Mode --- non_plat/property.te | 3 +++ non_plat/property_contexts | 5 ++++- non_plat/radio.te | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/non_plat/property.te b/non_plat/property.te index 5dd4cdd..4d99647 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -179,5 +179,8 @@ type mtk_debug_wifi_level_prop, property_type, mtk_core_property_type; #=============allow EM to set BT ssp debug mode property================ type mtk_bt_sspdebug_prop, property_type, mtk_core_property_type; +#=============em camera property============== +type vendor_debug_prop, property_type, mtk_core_property_type; + #=============allow ccci_mdinit get ccci_fsd property=========== type mtk_ccci_fsd_prop, property_type, mtk_core_property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index 96e9352..96789ac 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -127,7 +127,7 @@ vendor.service.nvram_init u:object_r:service_nvram_init_prop:s0 ro.wlan.mtk.wifi.5g u:object_r:wifi_5g_prop:s0 #=============Allow EM To Set Camera APP Mode ============== -mtk.client. u:object_r:mtk_em_prop:s0 +vendor.client. u:object_r:mtk_em_prop:s0 #=============allow mediatek_prop ============== mediatek. u:object_r:mediatek_prop:s0 @@ -196,5 +196,8 @@ persist.vendor.debug.wifi_fw_level u:object_r:mtk_debug_wifi_level_prop:s0 #=============allow EM to set BT ssp debug mode property================ persist.vendor.bt.sspdebug.enable u:object_r:mtk_bt_sspdebug_prop:s0 +#=============em camera property============== +vendor.debug. u:object_r:vendor_debug_prop:s0 + #=============allow ccci_mdinit get ccci_fsd property=========== init.svc.ccci_fsd u:object_r:mtk_ccci_fsd_prop:s0 diff --git a/non_plat/radio.te b/non_plat/radio.te index 2854dc8..0fc5ee8 100644 --- a/non_plat/radio.te +++ b/non_plat/radio.te @@ -103,7 +103,7 @@ allow radio mtk_em_net_auto_tethering_prop:property_service set; # Date : WK17.06 2017/02/06 # Operation : IT # Purpose : for engineermode camera -allow radio debug_prop:property_service set; +allow radio vendor_debug_prop:property_service set; # Date : WK17.03 # Operation : O Migration