• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ==============================================
2# MTK Policy Rule
3# ==============================================
4
5type custom_file, file_type, data_file_type;
6type lost_found_data_file, file_type, data_file_type;
7type dontpanic_data_file, file_type, data_file_type;
8type resource_cache_data_file, file_type, data_file_type;
9type http_proxy_cfg_data_file, file_type, data_file_type;
10type acdapi_data_file, file_type, data_file_type;
11type ppp_data_file, file_type, data_file_type;
12type wpa_supplicant_data_file, file_type, data_file_type;
13type radvd_data_file, file_type, data_file_type;
14type volte_vt_socket, file_type;
15type dfo_socket, file_type;
16type gsmrild_socket, file_type;
17type rild2_socket, file_type;
18type rild3_socket, file_type;
19type rild4_socket, file_type;
20type rild_mal_socket, file_type;
21type rild_mal_at_socket, file_type;
22type rild_mal_md2_socket, file_type;
23type rild_mal_at_md2_socket, file_type;
24type rild_ims_socket, file_type;
25type rild_imsm_socket, file_type;
26type rild_oem_socket, file_type;
27type rild_mtk_ut_socket, file_type;
28type rild_mtk_ut_2_socket, file_type;
29type rild_mtk_modem_socket, file_type;
30type rild_md2_socket, file_type;
31type rild2_md2_socket, file_type;
32type rild_debug_md2_socket, file_type;
33type rild_oem_md2_socket, file_type;
34type rild_mtk_ut_md2_socket, file_type;
35type rild_mtk_ut_2_md2_socket, file_type;
36type rild_mtk_modem_md2_socket, file_type;
37type rild_vsim_socket, file_type;
38type rild_vsim_md2_socket, file_type;
39type mal_mfi_socket, file_type;
40type mal_data_file, file_type, data_file_type;
41type netdiag_socket, file_type;
42type wpa_wlan0_socket, file_type;
43type soc_vt_imcb_socket, file_type;
44type soc_vt_tcv_socket, file_type;
45type soc_vt_stk_socket, file_type;
46type soc_vt_svc_socket, file_type;
47type dbus_bluetooth_socket, file_type;
48type bt_int_adp_socket, file_type;
49type bt_a2dp_stream_socket, file_type;
50type bt_data_file, file_type, data_file_type;
51type proc_thermal, fs_type, proc_type;
52type proc_mtkcooler, fs_type, proc_type;
53type proc_mtktz, fs_type, proc_type;
54type proc_mtd, fs_type, proc_type;
55type proc_slogger, fs_type, proc_type;
56type proc_lk_env, fs_type, proc_type;
57type proc_ged, fs_type, proc_type;
58type proc_mtk_jpeg, fs_type, proc_type;
59type proc_perfmgr, fs_type, proc_type;
60type proc_wmtdbg, fs_type, proc_type;
61type proc_zraminfo, fs_type, proc_type;
62type proc_cpu_alignment, fs_type, proc_type;
63type proc_gpulog, fs_type, proc_type;
64type proc_sched_debug, fs_type, proc_type;
65type proc_chip, fs_type, proc_type;
66type proc_atf_log, fs_type, proc_type;
67type proc_gz_log, fs_type, proc_type;
68type proc_last_kmsg, fs_type, proc_type;
69type proc_bootprof, fs_type, proc_type;
70type proc_pl_lk, fs_type, proc_type;
71type proc_msdc_debug, fs_type, proc_type;
72type proc_ufs_debug, fs_type, proc_type;
73type proc_pidmap, fs_type, proc_type;
74type proc_slabtrace, fs_type, proc_type;
75type proc_cmdq_debug, fs_type, proc_type;
76type proc_isp_p2, fs_type, proc_type;
77type proc_dbg_repo, fs_type, proc_type;
78type proc_isp_p2_dump, fs_type, proc_type;
79type proc_isp_p2_kedump, fs_type, proc_type;
80type proc_memory_usage, fs_type, proc_type;
81type proc_mtk_es_reg_dump, fs_type, proc_type;
82type sysfs_execstate, fs_type, sysfs_type;
83type sysfs_therm, fs_type, sysfs_type;
84type sysfs_fps, fs_type, sysfs_type;
85type sysfs_ccci, fs_type, sysfs_type;
86type sysfs_mdinfo, fs_type,sysfs_type;
87type sysfs_ssw, fs_type,sysfs_type;
88type sysfs_vcorefs_pwrctrl, fs_type, sysfs_type;
89type sysfs_md32, fs_type, sysfs_type;
90type sysfs_scp, fs_type, sysfs_type;
91type sysfs_adsp, fs_type, sysfs_type;
92type sysfs_sspm, fs_type, sysfs_type;
93type sysfs_devinfo, fs_type, sysfs_type, mlstrustedobject;
94type sysfs_dcm, fs_type, sysfs_type;
95type sysfs_dcs, fs_type, sysfs_type;
96type sysfs_vcore_debug, fs_type, sysfs_type;
97type agpsd_socket, file_type;
98type agpsd_data_file, file_type, data_file_type;
99type mnld_socket, file_type;
100type mnld_data_file, file_type, data_file_type;
101type gps_data_file, file_type, data_file_type;
102type MPED_socket, file_type;
103type MPED_data_file, file_type, data_file_type;
104type sysctl_socket, file_type;
105type backuprestore_socket, file_type;
106type protect_f_data_file, file_type, data_file_type;
107type protect_s_data_file, file_type, data_file_type;
108type persist_data_file, file_type, data_file_type;
109type nvram_data_file, file_type, data_file_type;
110type nvdata_file, file_type, data_file_type;
111type nvcfg_file, file_type, data_file_type;
112type cct_data_file, file_type, data_file_type;
113type mediaserver_data_file, file_type, data_file_type;
114type mediacodec_data_file, file_type, data_file_type;
115type connsyslog_data_vendor_file, file_type, data_file_type;
116
117#mobilelog data/misc/mblog
118type logmisc_data_file, file_type, data_file_type, core_data_file_type;
119
120#mobilelog data/log_temp
121type logtemp_data_file, file_type, data_file_type, core_data_file_type;
122
123# NE core_forwarder
124type aee_core_data_file, file_type, data_file_type, core_data_file_type;
125type aee_core_vendor_file, file_type, data_file_type;
126
127# AEE exp
128type aee_exp_data_file, file_type, data_file_type, core_data_file_type;
129type aee_exp_vendor_file, file_type, data_file_type;
130type aee_dumpsys_data_file, file_type, data_file_type, core_data_file_type;
131type aee_dumpsys_vendor_file, file_type, data_file_type;
132
133# SF rtt dump
134type sf_rtt_file, file_type, data_file_type, core_data_file_type;
135
136#for 3Gdongle
137type rild-dongle_socket, file_type;
138
139type ccci_cfg_file, file_type, data_file_type;
140type ccci_data_md1_file, file_type, data_file_type;
141type c2k_file, file_type, data_file_type;
142#For sensor
143type sensor_data_file, file_type, data_file_type;
144type stp_dump_data_file, file_type, data_file_type;
145type sysfs_keypad_file, fs_type, sysfs_type;
146type rild_via_socket, file_type;
147type rpc_socket, file_type;
148type rild_ctclient_socket, file_type;
149#For icusb
150type proc_icusb, fs_type, proc_type;
151
152# for labeling /mnt/cd-rom as iso9660
153type iso9660, fs_type;
154
155# data_tmpfs_log
156type data_tmpfs_log_file, file_type, data_file_type, core_data_file_type;
157type vendor_tmpfs_log_file, file_type, data_file_type;
158
159# rawfs for /protect_f on NAND projects
160type rawfs, fs_type, mlstrustedobject;
161
162# fat on nand fat.img
163type fon_image_data_file, file_type, data_file_type;
164
165# ims ipsec config file
166type ims_ipsec_data_file, file_type, data_file_type;
167
168# thermal manager config file
169type thermal_manager_data_file, file_type, data_file_type;
170
171# adbd config file
172type adbd_data_file, file_type, data_file_type, core_data_file_type;
173
174#autokd data file
175type autokd_data_file, file_type, data_file_type;
176
177#fuse
178type fuseblk,sdcard_type,fs_type,mlstrustedobject;
179
180# for mt-ramdump reset
181type proc_mrdump_rst, fs_type, proc_type;
182
183# battery_cmd file
184type proc_battery_cmd, fs_type, proc_type;
185
186# binder debugfs file
187type debugfs_binder, fs_type, debugfs_type;
188
189# blockio debugfs file
190type debugfs_blockio, fs_type, debugfs_type;
191
192# fuseio debugfs file
193type debugfs_fuseio, fs_type, debugfs_type;
194
195# usb debugfs file
196type debugfs_usb, fs_type, debugfs_type;
197
198# display debugfs file
199type debugfs_fb, fs_type, debugfs_type;
200
201# cpuhvfs debugfs file
202type debugfs_cpuhvfs, fs_type, debugfs_type;
203
204#for engineermode Usb PHY Tuning
205type debugfs_usb20_phy, fs_type, debugfs_type;
206
207# dynamic_debug debugfs file
208type debugfs_dynamic_debug, fs_type, debugfs_type;
209
210# shrinker debugfs file
211type debugfs_shrinker_debug, fs_type, debugfs_type;
212
213# dmlog debugfs file
214type debugfs_dmlog_debug, fs_type, debugfs_type;
215
216# page_owner_slim debugfs file
217type debugfs_page_owner_slim_debug, fs_type, debugfs_type;
218
219# rcu debugfs file
220type debugfs_rcu, fs_type, debugfs_type;
221
222# gpu debugfs file
223type debugfs_ged, fs_type, debugfs_type;
224
225# fpsgo debugfs file
226type debugfs_fpsgo, fs_type, debugfs_type;
227
228# eara_thermal debugfs file
229type debugfs_eara_thermal, fs_type, debugfs_type;
230
231# vpu debugfs file
232type debugfs_vpu_power, fs_type, debugfs_type;
233type debugfs_vpu_memory, fs_type, debugfs_type;
234
235# mdla debugfs file
236type debugfs_mdla_power, fs_type, debugfs_type;
237
238# memtrack debugfs file
239type debugfs_gpu_mali_midgard, fs_type, debugfs_type;
240type debugfs_gpu_mali_utgard, fs_type, debugfs_type;
241type debugfs_gpu_img, fs_type, debugfs_type;
242type debugfs_ion, fs_type, debugfs_type;
243
244# /sys/kernel/debug/ion/ion_mm_heap
245type debugfs_ion_mm_heap, fs_type, debugfs_type;
246
247# /sys/kernel/debug/emi_mbw/dump_buf
248type debugfs_emi_mbw_buf, fs_type, debugfs_type;
249
250# /sys/kernel/debug/vpu/device_dbg
251type debugfs_vpu_device_dbg, fs_type, debugfs_type;
252
253# /sys/kernel/debug/kmemleak
254type debugfs_kmemleak, fs_type, debugfs_type;
255
256######################################
257# core domain file data
258
259# SF bqdump
260type sf_bqdump_data_file, file_type, data_file_type, core_data_file_type;
261type nfc_socket, file_type, data_file_type, core_data_file_type;
262type vendor_nfc_socket, file_type, data_file_type;
263# factory data file
264type factory_data_file, file_type, data_file_type, core_data_file_type;
265# Modem Log folder
266type mdlog_data_file, file_type, data_file_type, core_data_file_type;
267
268# MTK audio HAL folder
269type mtk_audiohal_data_file, file_type, data_file_type;
270
271# MTK Power HAL folder
272type mtk_powerhal_data_file, file_type, data_file_type;
273
274# Date : WK1743
275# Purpose : for meta_tst copy MD DB from MD image
276type mddb_data_file, file_type, data_file_type;
277
278# Date : WK1814
279# Purpose : for factory to get boot mode and type
280type sysfs_boot_mode, fs_type, sysfs_type;
281type sysfs_boot_type, fs_type, sysfs_type;
282
283# consys Log folder
284type consyslog_data_file, file_type, data_file_type, core_data_file_type;
285
286# Date : WK1817
287# Purpose : for meta to get com port type and uart port info
288type sysfs_comport_type, fs_type, sysfs_type;
289type sysfs_uart_info, fs_type, sysfs_type;
290type sysfs_usb_cmode, fs_type, sysfs_type;
291
292# Date : WK1820
293# Purpose : for charger to access vbus info and pump_express
294type sysfs_vbus, fs_type, sysfs_type;
295type sysfs_pump_express, fs_type, sysfs_type;
296
297# Widevine move data/mediadrm folder from system to vendor
298type mediadrm_vendor_data_file, file_type, data_file_type;
299
300# mtk usb hal
301type sysfs_dual_role_usb20, fs_type, sysfs_type;
302
303# lbs debug file
304#type lbs_dbg_data_file, file_type, data_file_type, core_data_file_type;
305
306# Touch parameters file
307type sysfs_tpd_setting, fs_type, sysfs_type;
308type sysfs_tpd_debug, fs_type, sysfs_type;
309
310# Date : 2018/06/11
311# Purpose : mtk EM FreqHopping setting
312type proc_freqhop, fs_type, proc_type;
313
314# Date : 2018/06/11
315# Purpose : mtk EM flash reading
316type proc_flash, fs_type, proc_type;
317type proc_partition, fs_type, proc_type;
318
319# Date : 2018/06/11
320# Purpose : mtk EM PMU reading/setting
321type sysfs_pmu, fs_type, sysfs_type;
322
323# Date : 2018/06/11
324# Purpose : mtk EM Power debug_log setting
325type sysfs_spm, fs_type, sysfs_type;
326
327# Date : 2018/06/11
328# Purpose : mtk EM Audio headset detect
329type sysfs_headset, fs_type, sysfs_type;
330
331# socket between atci_service and audio-daemon
332type atci-audio_socket, file_type;
333
334# ATCI socket types
335type rild_atci_socket, file_type;
336type rilproxy_atci_socket, file_type;
337type atci_service_socket, file_type;
338type adb_atci_socket, file_type;
339
340# EM Power PMU register reading/setting
341type debugfs_regmap, fs_type, debugfs_type;
342
343# Date : 2018/11/01
344# Purpose : mtk EM c2k bypass read usb file
345type sys_usb_rawbulk, fs_type, sysfs_type;
346
347# Backlight brightness file
348type sysfs_leds_setting, fs_type, sysfs_type;
349
350# Vibrator vibrate file
351type sysfs_vibrator_setting, fs_type, sysfs_type;
352
353# Date : 2019/04/09
354# Purpose: mtk EM battery settings
355type sysfs_battery_temp, fs_type, sysfs_type;
356type sysfs_battery_consumption, fs_type, sysfs_type;
357type sysfs_power_on_vol, fs_type, sysfs_type;
358type sysfs_power_off_vol, fs_type, sysfs_type;
359type sysfs_fg_disable, fs_type, sysfs_type;
360type sysfs_dis_nafg, fs_type, sysfs_type;
361
362# drm key manager
363type provision_file, file_type, data_file_type;
364type key_install_data_file, file_type, data_file_type;
365
366# Date : WK18.16
367# Purpose: Android Migration
368type sysfs_mmcblk, fs_type, sysfs_type;
369type sysfs_mmcblk1, fs_type, sysfs_type;
370
371type aee_dipdebug_vendor_file, file_type, data_file_type;
372
373type netd_socket, file_type, coredomain_socket;
374
375# Date : WK19.27
376# Purpose: Android Migration for SVP
377type proc_m4u, fs_type, proc_type;
378
379# Date : 2019/08/15
380type debugfs_smi_mon, fs_type, debugfs_type;
381
382# Date : WK19.34
383# Purpose: Android Migration for video codec driver
384type vcodec_file, file_type, data_file_type;
385
386# Date : 2019/08/24
387type sysfs_sensor, fs_type, sysfs_type;
388
389#MTEE trusty
390type mtee_trusty_file, fs_type, sysfs_type;
391
392# Date : 2019/08/29
393# Purpose: Allow rild access proc/aed/reboot-reason
394type proc_aed_reboot_reason, fs_type, proc_type;
395
396# Date : 2019/09/05
397# Purpose: Allow powerhal to control kernel resources
398type proc_ppm, fs_type, proc_type;
399type proc_cpufreq, fs_type, proc_type;
400type proc_hps, fs_type, proc_type;
401type proc_cm_mgr, fs_type, proc_type;
402type proc_ca_drv, fs_type, proc_type;
403type sysfs_ged, fs_type, sysfs_type;
404type sysfs_fbt_cpu, fs_type, sysfs_type;
405type sysfs_fbt_fteh, fs_type, sysfs_type;
406
407# Date : WK19.38
408# Purpose: Android Migration for video codec driver
409type sysfs_device_tree_model, fs_type, sysfs_type;
410
411# Date : 2019/10/22
412# Purpose : allow aee_aedv write /sys/module/mrdump/parameters/lbaooo
413type sysfs_mrdump_lbaooo, fs_type, sysfs_type;
414# Date : 2019/12/12
415# Purpose : allow media sources to access /sys/bus/platform/drivers/mem_bw_ctrl/*
416type sysfs_concurrency_scenario, fs_type, sysfs_type;
417