From dbd6c0abd4c2bc5d4dfa36d7292928a410e0c4c6 Mon Sep 17 00:00:00 2001 From: "dengwei.xu" Date: Sat, 18 Jan 2020 10:06:50 +0800 Subject: [PATCH] [ALPS04083174] EM telephony RF reset - selinux Add the selinux support MTK-Commit-Id: 31d37971bece408a6fa08d20009db9bb9bb94346 Change-Id: I7d965a3cd40e8526317596c188fb07acdb37b0f8 CR-Id: ALPS04083174 Feature: Engineering Mode --- non_plat/property.te | 3 +++ non_plat/property_contexts | 5 +++++ non_plat/radio.te | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/non_plat/property.te b/non_plat/property.te index a75be54..9e310d8 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -182,6 +182,9 @@ type mtk_telecom_vibrate, property_type, extended_core_property_type; #=============allow em to set gprs attach type property================ type mtk_gprs_attach_type, property_type, extended_core_property_type; +#=============allow em to set poweroffmd property================ +type mtk_power_off_md_type, property_type, extended_core_property_type; + #=============allow meta_tst to stop specific service =============== type ctl_mobile_log_d_prop, property_type; type ctl_mnld_prop, property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index 69b8091..4ffcb68 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -179,6 +179,11 @@ persist.vendor.radio.telecom.vibrate u:object_r:mtk_telecom_vibrate:s0 #=============allow em to set gprs attach type property================ persist.vendor.radio.gprs.attach.type u:object_r:mtk_gprs_attach_type:s0 +#=============allow em to set poweroffmd property================ +vendor.ril.test.poweroffmd u:object_r:mtk_power_off_md_type:s0 +vendor.ril.testmode u:object_r:mtk_power_off_md_type:s0 + + #=============allow system server to set meta_connecttype property ============== persist.vendor.meta.connecttype u:object_r:meta_connecttype_prop:s0 diff --git a/non_plat/radio.te b/non_plat/radio.te index 93a1bf3..66c45ce 100644 --- a/non_plat/radio.te +++ b/non_plat/radio.te @@ -208,4 +208,8 @@ set_prop(radio, mtk_gprs_attach_type) binder_call(radio, lbs_hidl_service) allow radio mtk_hal_lbs_hwservice:hwservice_manager find; +# Date : 2018/08/12 +# Purpose : Allow EM to set poweroffmd property +set_prop(radio, mtk_power_off_md_type) + get_prop(radio, persist_mtk_aeev_prop);