[ALPS04083174] EM telephony RF reset - selinux
Add the selinux support
Change-Id: I7d965a3cd40e8526317596c188fb07acdb37b0f8
CR-Id: ALPS04083174
Feature: Engineering Mode
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 @@
#=============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 @@
#=============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 @@
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);