[ALPS03875603] Relabel telephony switch property

Relabel global telephony configuration properties.

MTK-Commit-Id: 2666cdeb888a5c7c0e87358766d60857cd3dc896

Change-Id: I317dd786e6ea32087a6866adeb415e35bc5017e1
CR-Id: ALPS03875603
Feature: Telephony feature switch dynamically
This commit is contained in:
ming-pei.hsu 2020-01-18 09:34:04 +08:00 committed by Ming-Pei Hsu
parent a428ebd38c
commit 9fcff12f5c
8 changed files with 43 additions and 1 deletions

View File

@ -37,6 +37,8 @@ set_prop(ccci_mdinit, ril_active_md_prop)
set_prop(ccci_mdinit, mtk_md_prop) set_prop(ccci_mdinit, mtk_md_prop)
set_prop(ccci_mdinit, radio_prop) set_prop(ccci_mdinit, radio_prop)
set_prop(ccci_mdinit, net_cdma_mdmstat) 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============== #=============allow ccci_mdinit to start/stop fsd==============
set_prop(ccci_mdinit, ctl_ccci_fsd_prop) set_prop(ccci_mdinit, ctl_ccci_fsd_prop)

View File

@ -367,3 +367,8 @@ set_prop(meta_tst, atm_mdmode_prop);
#Date: W17.51 #Date: W17.51
#Purpose : Allow meta_tst to access pesist.atm.ipaddress in ATM. #Purpose : Allow meta_tst to access pesist.atm.ipaddress in ATM.
set_prop(meta_tst, atm_ipaddr_prop); 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)

View File

@ -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 #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_shell_exec:file {execute_no_trans};
allow rild vendor_toolbox_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)

View File

@ -131,4 +131,9 @@ allow mtkrild sysfs:file read;
#Date : W18.15 #Date : W18.15
#Purpose: allow rild access to vendor.ril.ipo system property #Purpose: allow rild access to vendor.ril.ipo system property
set_prop(mtkrild, vendor_ril_ipo_prop) 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)

View File

@ -29,3 +29,7 @@ allow muxreport sysfs_ccci:dir search;
allow muxreport sysfs_ccci:file r_file_perms; allow muxreport sysfs_ccci:file r_file_perms;
set_prop(muxreport, radio_prop) 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)

View File

@ -74,6 +74,9 @@ type mtk_md_prop, property_type, mtk_core_property_type;
#=============allow mtkrild to start muxreport============== #=============allow mtkrild to start muxreport==============
type ctl_muxreport-daemon_prop, property_type; 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============== #=============allow ppp to set pppoe.ppp0==============
type pppoe_ppp0_prop, property_type, mtk_core_property_type; type pppoe_ppp0_prop, property_type, mtk_core_property_type;

View File

@ -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 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 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============== #=============allow bootanim==============
persist.bootanim. u:object_r:bootani_prop:s0 persist.bootanim. u:object_r:bootani_prop:s0

View File

@ -195,3 +195,8 @@ set_prop(radio, wmt_prop)
# Purpose: Allow EM enable/disable Presence # Purpose: Allow EM enable/disable Presence
allow radio persist_uce_prop:property_service set; allow radio persist_uce_prop:property_service set;
get_prop(radio, persist_uce_prop) 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)