1# ============================================== 2# MTK Policy Rule 3# ============================================== 4 5# MTK properties, allow all system/vendor processes to read. 6type mtk_default_prop, property_type, mtk_core_property_type; 7 8# Date: W14.32 9# Operation: Migration 10# Purpose: don't allow to use default_prop 11### TBD 12#neverallow { domain -init } default_prop:property_service set; 13#neverallow { domain -init -system_server -recovery -system_app} ctl_default_prop:property_service set; 14 15#=============allow ccci_mdinit to start gsm0710muxd============== 16type ctl_gsm0710muxd_prop, property_type; 17type ctl_gsm0710muxd-s_prop, property_type; 18type ctl_gsm0710muxd-d_prop, property_type; 19 20#=============allow viarild to start property============== 21type ctl_viarild_prop, property_type; 22#=============allow mtkrild to set persist.ril property============== 23type vendor_ril_ipo_prop, property_type, mtk_core_property_type; 24 25#=============allow gsm0710muxd to set mux property============== 26type gsm0710muxd_prop, property_type, mtk_core_property_type; 27 28#=============allow netlog running============== 29type debug_mtklog_prop, property_type, extended_core_property_type; 30type persist_mtklog_prop, property_type, extended_core_property_type; 31type debug_netlog_prop, property_type, extended_core_property_type; 32 33#=============allow netd to set mtk_wifi.*========================= 34type mtk_wifi_prop, property_type, mtk_core_property_type; 35 36#=============allow mdlogger============== 37type debug_mdlogger_prop, property_type, extended_core_property_type; 38type vendor_mdl_prop, property_type, extended_core_property_type; 39type vendor_mdl_start_prop, property_type, extended_core_property_type; 40type vendor_usb_prop, property_type; 41type persist_mdlog_prop, property_type, extended_core_property_type; 42type vendor_mdl_pulllog_prop, property_type, extended_core_property_type; 43 44#=============allow AEE============== 45type persist_mtk_aee_prop, property_type, extended_core_property_type; 46type persist_aee_prop, property_type, extended_core_property_type; 47type debug_mtk_aee_prop, property_type, extended_core_property_type; 48 49type persist_mtk_aeev_prop, property_type, mtk_core_property_type; 50type persist_aeev_prop, property_type, mtk_core_property_type; 51type debug_mtk_aeev_prop, property_type, mtk_core_property_type; 52type ro_mtk_aee_prop, property_type, mtk_core_property_type; 53 54#=============allow aee_dumpstate============== 55type debug_bq_dump_prop, property_type, extended_core_property_type; 56 57#=============allow ccci_mdinit to stop rild============== 58type ctl_ril-daemon-mtk_prop, property_type; 59type ctl_fusion_ril_mtk_prop, property_type; 60type ctl_ril-daemon-s_prop, property_type; 61type ctl_ril-daemon-d_prop, property_type; 62type ctl_ril-proxy_prop, property_type; 63 64#=============allow ccci_mdinit to start ccci_fsd============== 65type ctl_ccci_fsd_prop, property_type; 66type ctl_ccci2_fsd_prop, property_type; 67type ctl_ccci3_fsd_prop, property_type; 68 69#=============allow ccci_mdinit to set ril_active_md_prop============== 70type ril_active_md_prop, property_type, mtk_core_property_type; 71 72#=============allow ccci_mdinit to stop rild============== 73type ril_mux_report_case_prop, property_type, mtk_core_property_type; 74type ril_cdma_report_prop, property_type, mtk_core_property_type; 75 76#=============allow ccci_mdinit to mtk_md_prop============== 77type mtk_md_prop, property_type, mtk_core_property_type; 78 79#=============allow mtkrild to start muxreport============== 80type ctl_muxreport-daemon_prop, property_type; 81 82#=============allow telephony modules to set tel_switch_prop============== 83type tel_switch_prop, property_type, mtk_core_property_type; 84 85#=============allow bootanim============== 86type bootani_prop, property_type, extended_core_property_type; 87 88#=============allow mnld_prop============== 89type mnld_prop, property_type, mtk_core_property_type; 90 91#=============allow audiohal============== 92type audiohal_prop, property_type, mtk_core_property_type; 93 94#=============allow wmt============== 95type wmt_prop, property_type, mtk_core_property_type; 96type coredump_prop, property_type, mtk_core_property_type; 97 98#=============allow sensor============== 99type ctl_emcsmdlogger_prop, property_type; 100type ctl_eemcs_fsd_prop, property_type; 101 102#=============allow statusd============== 103type net_cdma_mdmstat, property_type, mtk_core_property_type; 104 105#=============allow bt============== 106type persist_bt_prop, property_type, mtk_core_property_type; 107 108#============= allow factory idle current prop ============== 109type vendor_factory_idle_state_prop, property_type, mtk_core_property_type; 110 111#============= allow mobile log property =============== 112type mobile_log_prop, property_type, extended_core_property_type; 113 114#============= allow service.nvram_init property =============== 115type service_nvram_init_prop, property_type, mtk_core_property_type; 116 117#============= allow ro.wlan.mtk.wifi.5g property =============== 118type wifi_5g_prop, property_type, mtk_core_property_type; 119 120#=============allow em to set client.appmode ============== 121type mtk_em_prop, property_type, mtk_core_property_type; 122 123#=============allow mediatek_prop ============== 124type mediatek_prop, property_type, mtk_core_property_type; 125 126#=============Property set by EM, for test/debug purpose========= 127type mtk_em_sys_prop, property_type, extended_core_property_type; 128type mtk_em_hidl_prop, property_type, mtk_core_property_type; 129 130#============= allow em set protocol =============== 131type mtk_em_net_auto_tethering_prop, property_type, extended_core_property_type; 132 133#=============allow em set property============= 134type mtk_operator_id_prop, property_type, mtk_core_property_type; 135 136#=============allow em set testsim.cardtype property=========== 137type mtk_simswitch_emmode_prop, property_type, mtk_core_property_type; 138 139#=============allow em set property============= 140type mtk_dsbp_support_prop, property_type, mtk_core_property_type; 141 142#=============allow em set property============= 143type mtk_imstestmode_prop, property_type, mtk_core_property_type; 144 145#=============allow em set property============= 146type mtk_smsformat_prop, property_type, mtk_core_property_type; 147 148#=============allow em set property============= 149type mtk_gprs_prefer_prop, property_type, mtk_core_property_type; 150 151#=============allow em set property============= 152type mtk_testsim_cardtype_prop, property_type, mtk_core_property_type; 153 154#=============allow em set property============= 155type mtk_ct_ir_engmode_prop, property_type, mtk_core_property_type; 156 157#=============allow em set property============= 158type mtk_disable_c2k_cap_prop, property_type, mtk_core_property_type; 159 160#=============allow em to set modem reset delay property================ 161type mtk_debug_md_reset_prop, property_type, mtk_core_property_type; 162 163#=============allow em to set video log omx.* property================ 164type mtk_omx_log_prop, property_type, mtk_core_property_type; 165 166#=============allow em to set vdec log property================ 167type mtk_vdec_log_prop, property_type, mtk_core_property_type; 168 169#=============allow em to set vdectlc log property================ 170type mtk_vdectlc_log_prop, property_type, mtk_core_property_type; 171 172#=============allow em to set venc h264 showlog property================ 173type mtk_venc_h264_showlog_prop, property_type, mtk_core_property_type; 174 175#=============allow em to set modem warning_prop property================ 176type mtk_modem_warning_prop, property_type, mtk_core_property_type; 177 178#=============allow em to set bgdata disabled property================ 179type mtk_bgdata_disabled, property_type, extended_core_property_type; 180 181#=============allow em to set telecom vibrate property================ 182type mtk_telecom_vibrate, property_type, extended_core_property_type; 183 184#=============allow em to set gprs attach type property================ 185type mtk_gprs_attach_type, property_type, extended_core_property_type; 186 187#=============allow em to set poweroffmd property================ 188type mtk_power_off_md_type, property_type, extended_core_property_type; 189 190#=============allow meta_tst to stop specific service =============== 191type ctl_mobile_log_d_prop, property_type; 192type ctl_mnld_prop, property_type; 193type ctl_mobicore_prop, property_type; 194 195#=============allow system server to set meta_connecttype property ============== 196type meta_connecttype_prop, property_type; 197 198#=============Telephony Sensitive property============== 199type mtk_telephony_sensitive_prop, property_type; 200 201#=============allow processes to change thermal config================ 202type mtk_thermal_config_prop, property_type; 203 204#=============allow composer set property ============================ 205type graphics_hwc_pid_prop, property_type; 206type graphics_hwc_latch_unsignaled_prop, property_type; 207type graphics_hwc_hdr_prop, property_type; 208 209#============= mtkcam property ============================ 210type mtkcam_prop, property_type; 211 212#============= atm modem mode property ============== 213type atm_mdmode_prop, property_type; 214 215#============= atm ip address property ============== 216type atm_ipaddr_prop, property_type; 217 218#=============allow consyslogger============== 219type vendor_connsysfw_prop, property_type, extended_core_property_type; 220 221#=============radio group property============= 222type vendor_radio_prop, property_type, mtk_core_property_type; 223 224#=============allow bluetooth============== 225type vendor_bluetooth_prop, property_type, extended_core_property_type; 226 227#=============allow ct volte============== 228type mtk_ct_volte_prop, property_type, mtk_core_property_type; 229 230#=============mtk ril mode property============= 231type mtk_ril_mode_prop, property_type, mtk_core_property_type; 232type mtk_ss_vendor_prop, property_type, mtk_core_property_type; 233 234#=============GPS support properties============== 235type mtk_gps_support_prop, property_type, mtk_core_property_type; 236 237#=============mtk rat config property============= 238type mtk_rat_config_prop, property_type, mtk_core_property_type; 239 240#=============mtk aal property============= 241type mtk_aal_ro_prop, property_type, mtk_core_property_type; 242 243#=============mtk pq property============= 244type mtk_pq_ro_prop, property_type, mtk_core_property_type; 245type mtk_pq_prop, property_type, mtk_core_property_type; 246 247#=============mtk emmc property============= 248type mtk_emmc_support_prop, property_type, mtk_core_property_type; 249 250#=============sim system property============= 251type vendor_sim_system_prop, property_type, extended_core_property_type; 252 253#=============em usb property============== 254type vendor_em_usb_prop, property_type, mtk_core_property_type; 255 256#=============allow em to set usb otg enable property ============== 257type vendor_usb_otg_switch, property_type, mtk_core_property_type; 258 259#=============mtk anr property============= 260type mtk_anr_support_prop, property_type, mtk_core_property_type; 261 262#=============mtk app resolution tuner property============= 263type mtk_appresolutiontuner_prop, property_type, mtk_core_property_type; 264 265#=============mtk fullscreen switch============= 266type mtk_fullscreenswitch_prop, property_type, mtk_core_property_type; 267 268# MTK Antutu feature 269type mtk_antutu_prop, property_type, mtk_core_property_type; 270 271#=============mtk malloc debug switch unwind backtrace property============= 272type mtk_malloc_debug_backtrace_prop, property_type, mtk_core_property_type; 273 274#=============MTK Voice Recognize property=========== 275type mtk_voicerecgnize_prop, property_type, mtk_core_property_type; 276 277#=============allow radio to set/get xcap rawurl config================ 278type persist_xcap_rawurl_prop, property_type, extended_core_property_type; 279 280#=============allow atcid============== 281type persist_service_atci_prop, property_type, mtk_core_property_type; 282type mtk_atci_prop, property_type, mtk_core_property_type; 283 284#=============allow Netd property============== 285type mtk_net_ipv6_prop, property_type, mtk_core_property_type; 286 287#============= allow carrier express (cxp) ============== 288type usp_prop, property_type, mtk_core_property_type; 289type usp_srv_prop, property_type, extended_core_property_type; 290type mtk_cxp_vendor_prop, property_type, mtk_core_property_type; 291 292#=============allow MD to set mtk_md_version_prop============== 293type mtk_md_version_prop, property_type, mtk_core_property_type; 294 295#=============allow radio to set mtk_volte_enable property============== 296type mtk_volte_prop, property_type, mtk_core_property_type; 297 298#=============allow AMS dynamic enable log property=========== 299type mtk_amslog_prop, property_type, extended_core_property_type; 300 301#=============allow android log much property============== 302type logmuch_prop, property_type, extended_core_property_type; 303 304#=============mtk bt enable SAP profile property============= 305type mtk_bt_sap_enable_prop, property_type, mtk_core_property_type; 306 307#=============MTK powerhal property================ 308type mtk_powerhal_prop, property_type; 309 310#=============MTK Wifi wlan_assistant property============= 311type mtk_nvram_ready_prop, property_type, mtk_core_property_type; 312 313#=============allow wifi hotspot to read property=========== 314type mtk_wifi_hotspot_prop, property_type, mtk_core_property_type; 315 316#=============mtk hdmi property============= 317type mtk_hdmi_prop, property_type, mtk_core_property_type; 318 319#=============mtk nn option property============= 320type mtk_nn_option_prop, property_type; 321