From 1482d6d9aff55a4955627c120e0810e4465c6624 Mon Sep 17 00:00:00 2001 From: Sheldon Wang Date: Sat, 18 Jan 2020 10:21:38 +0800 Subject: [PATCH] [ALPS04817575] Add system property only for MTK system image [Solution] When run VTS test, theres no WOS module due to its AOSP system image. So we need to skip the edpg related function. MTK-Commit-Id: 8f8e5faded18d6bcee1eb96dba37a2d708f3995f Change-Id: I9cee39eea1dd75bccf6cc442f16ed3fe4e72ae95 CR-Id: ALPS04817575 Feature: WiFi Calling Service --- non_plat/mtkrild.te | 5 +++++ non_plat/property.te | 4 ++++ non_plat/property_contexts | 3 +++ non_plat/rild.te | 7 ++++++- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/non_plat/mtkrild.te b/non_plat/mtkrild.te index a134520..dda5f2f 100644 --- a/non_plat/mtkrild.te +++ b/non_plat/mtkrild.te @@ -130,3 +130,8 @@ allow mtkrild nvdata_file:file create_file_perms; # Operation: P migration # Purpose: Allow supplementary service HIDL to set vendor property set_prop(mtkrild, mtk_ss_vendor_prop) + +# Date : WK19.43 +# Purpose: Allow wfc module from rild read system property from wfc module +get_prop(mtkrild, mtk_wfc_serv_prop) + diff --git a/non_plat/property.te b/non_plat/property.te index 3ac67c0..3e4388e 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -323,3 +323,7 @@ type mtk_hdmi_prop, property_type, mtk_core_property_type; #=============mtk nn option property============= type mtk_nn_option_prop, property_type; + +#============system wfc service property=========== +type mtk_wfc_serv_prop, property_type; + diff --git a/non_plat/property_contexts b/non_plat/property_contexts index 4f394e8..42c63f8 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -364,3 +364,6 @@ persist.vendor.sys.hdmi_hidl. u:object_r:mtk_hdmi_prop:s0 #=============mtk nn option==============# ro.vendor.mtk_nn.option u:object_r:mtk_nn_option_prop:s0 +#============system wfc service property=========== +persist.vendor.wfc. u:object_r:mtk_wfc_serv_prop:s0 + diff --git a/non_plat/rild.te b/non_plat/rild.te index 67cf3eb..e904c2b 100644 --- a/non_plat/rild.te +++ b/non_plat/rild.te @@ -157,4 +157,9 @@ allow rild self:netlink_netfilter_socket { create_socket_perms_no_ioctl }; # Date : 2019/08/29 # Purpose: Allow rild to access proc/aed/reboot-reason -allow rild proc_aed_reboot_reason:file rw_file_perms; \ No newline at end of file +allow rild proc_aed_reboot_reason:file rw_file_perms; + +# Date : WK19.43 +# Purpose: Allow wfc module from rild read system property from wfc module +get_prop(rild, mtk_wfc_serv_prop) +