diff --git a/non_plat/ccci_mdinit.te b/non_plat/ccci_mdinit.te index 1421f67..e5f7849 100644 --- a/non_plat/ccci_mdinit.te +++ b/non_plat/ccci_mdinit.te @@ -37,6 +37,8 @@ set_prop(ccci_mdinit, ril_active_md_prop) set_prop(ccci_mdinit, mtk_md_prop) set_prop(ccci_mdinit, radio_prop) set_prop(ccci_mdinit, net_cdma_mdmstat) +#=============allow ccci_mdinit to get tel_switch_prop============== +get_prop(ccci_mdinit, tel_switch_prop) #=============allow ccci_mdinit to start/stop fsd============== set_prop(ccci_mdinit, ctl_ccci_fsd_prop) diff --git a/non_plat/meta_tst.te b/non_plat/meta_tst.te index 4dce727..739c58f 100644 --- a/non_plat/meta_tst.te +++ b/non_plat/meta_tst.te @@ -367,3 +367,8 @@ set_prop(meta_tst, atm_mdmode_prop); #Date: W17.51 #Purpose : Allow meta_tst to access pesist.atm.ipaddress in ATM. set_prop(meta_tst, atm_ipaddr_prop); + +# Date : WK18.16 +# Operation: P migration +# Purpose: Allow meta_tst to get tel_switch_prop +get_prop(meta_tst, tel_switch_prop) diff --git a/non_plat/mtkfusionrild.te b/non_plat/mtkfusionrild.te index 229cc53..ec52435 100644 --- a/non_plat/mtkfusionrild.te +++ b/non_plat/mtkfusionrild.te @@ -135,3 +135,8 @@ allow rild usp_prop:property_service set; #Purpose: allow set the RS times for /proc/sys/net/ipv6/conf/ccmniX/router_solicitations allow rild vendor_shell_exec:file {execute_no_trans}; allow rild vendor_toolbox_exec:file {execute_no_trans}; + +# Date : WK18.16 +# Operation: P migration +# Purpose: Allow rild to get tel_switch_prop +get_prop(rild, tel_switch_prop) diff --git a/non_plat/mtkrild.te b/non_plat/mtkrild.te index f11d857..c3b259c 100644 --- a/non_plat/mtkrild.te +++ b/non_plat/mtkrild.te @@ -131,4 +131,9 @@ allow mtkrild sysfs:file read; #Date : W18.15 #Purpose: allow rild access to vendor.ril.ipo system property -set_prop(mtkrild, vendor_ril_ipo_prop) \ No newline at end of file +set_prop(mtkrild, vendor_ril_ipo_prop) + +# Date : WK18.16 +# Operation: P migration +# Purpose: Allow mtkrild to get tel_switch_prop +get_prop(mtkrild, tel_switch_prop) diff --git a/non_plat/muxreport.te b/non_plat/muxreport.te index 5097b94..a186878 100644 --- a/non_plat/muxreport.te +++ b/non_plat/muxreport.te @@ -29,3 +29,7 @@ allow muxreport sysfs_ccci:dir search; allow muxreport sysfs_ccci:file r_file_perms; set_prop(muxreport, radio_prop) +# Date : WK18.16 +# Operation: P migration +# Purpose: Allow muxreport to get tel_switch_prop +get_prop(muxreport, tel_switch_prop) diff --git a/non_plat/property.te b/non_plat/property.te index 7bf5fb3..3d7f831 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -74,6 +74,9 @@ type mtk_md_prop, property_type, mtk_core_property_type; #=============allow mtkrild to start muxreport============== type ctl_muxreport-daemon_prop, property_type; +#=============allow telephony modules to set tel_switch_prop============== +type tel_switch_prop, property_type, mtk_core_property_type; + #=============allow ppp to set pppoe.ppp0============== type pppoe_ppp0_prop, property_type, mtk_core_property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index a823999..25fafef 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -64,6 +64,19 @@ vendor.ril.active.md u:object_r:ril_active_md_prop:s0 vendor.ril.mux.report.case u:object_r:ril_mux_report_case_prop:s0 ril.cdma.report u:object_r:ril_cdma_report_prop:s0 +#=============allow dynamic telephony switch============== +ro.boot.opt_c2k_lte_mode u:object_r:tel_switch_prop:s0 +ro.boot.opt_c2k_support u:object_r:tel_switch_prop:s0 +ro.boot.opt_eccci_c2k u:object_r:tel_switch_prop:s0 +ro.boot.opt_lte_support u:object_r:tel_switch_prop:s0 +ro.boot.opt_md1_support u:object_r:tel_switch_prop:s0 +ro.boot.opt_md2_support u:object_r:tel_switch_prop:s0 +ro.boot.opt_md3_support u:object_r:tel_switch_prop:s0 +ro.boot.opt_md5_support u:object_r:tel_switch_prop:s0 +ro.boot.opt_ps1_rat u:object_r:tel_switch_prop:s0 +ro.boot.opt_sim_count u:object_r:tel_switch_prop:s0 +ro.boot.opt_using_default u:object_r:tel_switch_prop:s0 + #=============allow bootanim============== persist.bootanim. u:object_r:bootani_prop:s0 diff --git a/non_plat/radio.te b/non_plat/radio.te index 034b530..8238384 100644 --- a/non_plat/radio.te +++ b/non_plat/radio.te @@ -195,3 +195,8 @@ set_prop(radio, wmt_prop) # Purpose: Allow EM enable/disable Presence allow radio persist_uce_prop:property_service set; get_prop(radio, persist_uce_prop) + +# Date : WK18.16 +# Operation: P migration +# Purpose: Allow radio to get tel_switch_prop +get_prop(radio, tel_switch_prop)