1# ============================================== 2# MTK Policy Rule 3# ============================================== 4 5type devmap_device, dev_type; 6type ttyMT_device, dev_type; 7type ttyS_device, dev_type; 8type ttySDIO_device, dev_type; 9type vmodem_device, dev_type; 10type stpwmt_device, dev_type; 11type conninfra_device, dev_type; 12type wmtdetect_device, dev_type; 13type wmtWifi_device, dev_type; 14type stpbt_device, dev_type; 15type fw_log_bt_device, dev_type; 16type stpant_device, dev_type; 17type fm_device, dev_type; 18type stpgps_device, dev_type; 19type gpsdl_device, dev_type; 20type fw_log_gps_device, dev_type; 21type fw_log_wmt_device, dev_type; 22type fw_log_wifi_device, dev_type; 23type pmem_multimedia_device, dev_type; 24type mt6516_isp_device, dev_type; 25type mt6516_IDP_device, dev_type; 26type mt9p012_device, dev_type; 27type mt6516_jpeg_device, dev_type; 28type FM50AF_device, dev_type; 29type DW9714AF_device, dev_type; 30type DW9814AF_device, dev_type; 31type AK7345AF_device, dev_type; 32type DW9714A_device, dev_type; 33type LC898122AF_device, dev_type; 34type LC898212AF_device, dev_type; 35type BU6429AF_device, dev_type; 36type AD5820AF_device, dev_type; 37type DW9718AF_device, dev_type; 38type BU64745GWZAF_device, dev_type; 39type MAINAF_device, dev_type; 40type MAIN2AF_device, dev_type; 41type MAIN3AF_device, dev_type; 42type MAIN4AF_device, dev_type; 43type SUBAF_device, dev_type; 44type SUB2AF_device, dev_type; 45type M4U_device_device, dev_type; 46type Vcodec_device, dev_type; 47type MJC_device, dev_type; 48type smartpa_device, dev_type; 49type smartpa1_device, dev_type; 50type uio0_device, dev_type; 51type xt_qtaguid_device, dev_type; 52type rfkill_device, dev_type; 53type sw_sync_device, dev_type, mlstrustedobject; 54type sec_device, dev_type; 55type hid_keyboard_device, dev_type; 56type btn_device, dev_type; 57type uinput_device, dev_type; 58type TV_out_device, dev_type; 59type gz_device, dev_type; 60type camera_sysram_device, dev_type; 61type camera_isp_device, dev_type; 62type camera_dip_device, dev_type; 63type camera_dpe_device, dev_type; 64type camera_tsf_device, dev_type; 65type camera_fdvt_device, dev_type; 66type camera_rsc_device, dev_type; 67type camera_gepf_device, dev_type; 68type camera_wpe_device, dev_type; 69type camera_owe_device, dev_type; 70type camera_mfb_device, dev_type; 71type camera_pipemgr_device, dev_type; 72type ccu_device, dev_type; 73type vpu_device, dev_type, mlstrustedobject; 74type mdla_device, dev_type, mlstrustedobject; 75type apusys_device, dev_type; 76type mtk_jpeg_device, dev_type; 77type kd_camera_hw_device, dev_type; 78type seninf_device, dev_type; 79type kd_camera_flashlight_device, dev_type; 80type flashlight_device, dev_type; 81type kd_camera_hw_bus2_device, dev_type; 82type MATV_device, dev_type; 83type mt_otg_test_device, dev_type; 84type mt_mdp_device, dev_type; 85type mtkg2d_device, dev_type; 86type misc_sd_device, dev_type; 87type mtk_sched_device, dev_type; 88type ampc0_device, dev_type; 89type mmp_device, dev_type; 90type ttyGS_device, dev_type; 91type CAM_CAL_DRV_device, dev_type; 92type CAM_CAL_DRV1_device, dev_type; 93type CAM_CAL_DRV2_device, dev_type; 94type camera_eeprom_device, dev_type; 95type MTK_SMI_device, dev_type; 96type mtk_cmdq_device, dev_type; 97type mtk_mdp_device, dev_type; 98type mtk_mdp_sync, dev_type; 99type mtk_rrc_device, dev_type; 100type ebc_device, dev_type; 101type vow_device, dev_type; 102type MT6516_H264_DEC_device, dev_type; 103type MT6516_Int_SRAM_device, dev_type; 104type MT6516_MM_QUEUE_device, dev_type; 105type MT6516_MP4_DEC_device, dev_type; 106type MT6516_MP4_ENC_device, dev_type; 107type sensor_device, dev_type; 108type aed_device, dev_type; 109type ccci_device, dev_type; 110type ccci_monitor_device, dev_type; 111type gsm0710muxd_device, dev_type; 112type eemcs_device, dev_type; 113type emd_device, dev_type; 114type st21nfc_device, dev_type; 115type st54spi_device, dev_type; 116type exm0_device, dev_type; 117type mmcblk_device, dev_type; 118type BOOT_device, dev_type; 119type MT_pmic_device, dev_type; 120type aal_als_device, dev_type; 121type accdet_device, dev_type; 122type android_device, dev_type; 123type bmtpool_device, dev_type; 124type bootimg_device, dev_type; 125type btif_device, dev_type; 126type cache_device, dev_type; 127type cpu_dma_latency_device, dev_type; 128type dummy_cam_cal_device, dev_type; 129type ebr_device, dev_type; 130type expdb_device, dev_type; 131type fat_device, dev_type; 132type logo_device, dev_type; 133type loop-control_device, dev_type; 134type mbr_device, dev_type; 135type met_device, dev_type; 136type misc_device, dev_type; 137type misc2_device, dev_type; 138type mtfreqhopping_device, dev_type; 139type mtgpio_device, dev_type; 140type mtk_kpd_device, dev_type; 141type network_device, dev_type; 142type nvram_device, dev_type; 143type pmt_device, dev_type; 144type preloader_device, dev_type; 145type pro_info_device, dev_type; 146type protect_f_device, dev_type; 147type protect_s_device, dev_type; 148type psaux_device, dev_type; 149type ptyp_device, dev_type; 150type recovery_device, dev_type; 151type sec_ro_device, dev_type; 152type seccfg_device, dev_type; 153type tee_part_device, dev_type; 154type snapshot_device, dev_type; 155type tgt_device, dev_type; 156type touch_device, dev_type; 157type tpd_em_log_device, dev_type; 158type ttyp_device, dev_type; 159type uboot_device, dev_type; 160type uibc_device, dev_type; 161type usrdata_device, dev_type; 162type zram0_device, dev_type; 163type hwzram0_device, dev_type; 164type RT_Monitor_device, dev_type; 165type kick_powerkey_device, dev_type; 166type agps_device, dev_type; 167type mnld_device, dev_type; 168type geo_device, dev_type; 169type mdlog_device, dev_type; 170type md32_device, dev_type; 171type scp_device, dev_type; 172type adsp_device, dev_type; 173type audio_scp_device, dev_type; 174type sspm_device, dev_type; 175type etb_device, dev_type; 176type MT_pmic_adc_cali_device, dev_type; 177type mtk-adc-cali_device, dev_type; 178type MT_pmic_cali_device,dev_type; 179type otp_device, dev_type; 180type otp_part_block_device, dev_type; 181type qemu_pipe_device, dev_type; 182type icusb_device, dev_type; 183type nlop_device, dev_type; 184type irtx_device, dev_type; 185type pmic_ftm_device, dev_type; 186type charger_ftm_device, dev_type; 187type shf_device, dev_type; 188type keyblock_device, dev_type; 189type offloadservice_device, dev_type; 190type ttyACM_device, dev_type; 191type hrm_device, dev_type; 192type lens_device, dev_type; 193type nvdata_device, dev_type; 194type nvcfg_device, dev_type; 195type expdb_block_device, dev_type; 196type misc2_block_device, dev_type; 197type logo_block_device, dev_type; 198type para_block_device, dev_type; 199type tee_block_device, dev_type; 200type seccfg_block_device, dev_type; 201type secro_block_device, dev_type; 202type preloader_block_device, dev_type; 203type lk_block_device, dev_type; 204type protect1_block_device, dev_type; 205type protect2_block_device, dev_type; 206type keystore_block_device, dev_type; 207type oemkeystore_block_device, dev_type; 208type sec1_block_device, dev_type; 209type md1img_block_device, dev_type; 210type md1dsp_block_device, dev_type; 211type md1arm7_block_device, dev_type; 212type md3img_block_device, dev_type; 213type mmcblk1_block_device, dev_type; 214type mmcblk1p1_block_device, dev_type; 215type bootdevice_block_device, dev_type; 216type odm_block_device, dev_type; 217type oem_block_device, dev_type; 218type vendor_block_device, dev_type; 219type dtbo_block_device, dev_type; 220type loader_ext_block_device, dev_type; 221type spm_device, dev_type; 222type persist_block_device, dev_type; 223type md_block_device, dev_type; 224type spmfw_block_device, dev_type; 225type mcupmfw_block_device, dev_type; 226type scp_block_device, dev_type; 227type sspm_block_device, dev_type; 228type dsp_block_device, dev_type; 229type ppl_block_device, dev_type; 230type nvcfg_block_device, dev_type; 231type ancservice_device, dev_type; 232type mbim_device, dev_type; 233type audio_ipi_device, dev_type; 234type cam_vpu_block_device,dev_type; 235type boot_para_block_device,dev_type; 236type mtk_dfrc_device, dev_type; 237type vbmeta_block_device, dev_type; 238type alarm_device, dev_type; 239type mdp_device, dev_type; 240type mrdump_device, dev_type; 241type kb_block_device,dev_type; 242type dkb_block_device,dev_type; 243type mtk_radio_device, dev_type; 244type dpm_block_device, dev_type; 245 246########################## 247# Sensor common Devices Start 248# 249type hwmsensor_device, dev_type; 250type msensor_device, dev_type; 251type gsensor_device, dev_type; 252type als_ps_device, dev_type; 253type gyroscope_device, dev_type; 254type barometer_device,dev_type; 255type humidity_device,dev_type; 256type biometric_device,dev_type; 257type sensorlist_device,dev_type; 258type hf_manager_device,dev_type; 259########################## 260# Sensor Devices Start 261# 262type m_batch_misc_device, dev_type; 263########################## 264# Sensor bio Devices Start 265# 266type m_als_misc_device, dev_type; 267type m_ps_misc_device, dev_type; 268type m_baro_misc_device, dev_type; 269type m_hmdy_misc_device, dev_type; 270type m_acc_misc_device, dev_type; 271type m_mag_misc_device, dev_type; 272type m_gyro_misc_device, dev_type; 273type m_act_misc_device, dev_type; 274type m_pedo_misc_device, dev_type; 275type m_situ_misc_device, dev_type; 276type m_step_c_misc_device, dev_type; 277type m_fusion_misc_device, dev_type; 278type m_bio_misc_device, dev_type; 279 280# Date : 2016/07/11 281# Operation : Migration 282# Purpose : Add permission for gpu access 283type dri_device, dev_type, mlstrustedobject; 284 285# Date : 2020/07/16 286# Operation : R Migration 287# Purpose : Add permission for adsp access 288type adsp_misc_device, dev_type; 289