• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ==============================================
2# MTK Policy Rule
3# ==============================================
4
5############################
6# A/B system
7/enableswap.sh u:object_r:rootfs:s0
8/factory_init\..* u:object_r:rootfs:s0
9/meta_init\..* u:object_r:rootfs:s0
10/multi_init\..* u:object_r:rootfs:s0
11
12#############################
13# Custom files
14(/vendor)?/custom(/.*)?		u:object_r:custom_file:s0
15/dev/socket/netd    u:object_r:netd_socket:s0
16
17
18#############################
19# Data files
20#
21/data/vendor/.tp(/.*)?  u:object_r:thermal_manager_data_file:s0
22/data/vendor_de/meta(/.*)?    u:object_r:mddb_data_file:s0
23/data/aee_exp(/.*)?  u:object_r:aee_exp_data_file:s0
24/data/vendor/aee_exp(/.*)?  u:object_r:aee_exp_vendor_file:s0
25/data/vendor/agps_supl(/.*)?    u:object_r:agpsd_data_file:s0
26#/data/mnl_flp(/.*)?    u:object_r:mnld_data_file:s0
27#/data/mnl_gfc(/.*)?    u:object_r:mnld_data_file:s0
28/data/vendor/gps(/.*)?   u:object_r:gps_data_file:s0
29/data/anr/SF_RTT(/.*)? u:object_r:sf_rtt_file:s0
30/data/vendor/ccci_cfg(/.*)? u:object_r:ccci_cfg_file:s0
31/data/vendor/mdlpm(/.*)? u:object_r:ccci_data_md1_file:s0
32/data/vendor/flashless(/.*)? u:object_r:c2k_file:s0
33/data/core(/.*)? u:object_r:aee_core_data_file:s0
34/data/vendor/core(/.*)? u:object_r:aee_core_vendor_file:s0
35#/data/dontpanic(/.*)? u:object_r:dontpanic_data_file:s0
36/data/dumpsys(/.*)?    u:object_r:aee_dumpsys_data_file:s0
37/data/vendor/dumpsys(/.*)?    u:object_r:aee_dumpsys_vendor_file:s0
38/data/extmdl(/.*)? u:object_r:mdlog_data_file:s0
39#/data/http-proxy-cfg(/.*)? u:object_r:http_proxy_cfg_data_file:s0
40/data/log_temp(/.*)? u:object_r:logtemp_data_file:s0
41#/data/lost\+found(/.*)? u:object_r:lost_found_data_file:s0
42/data/mdlog(/.*)? u:object_r:mdlog_data_file:s0
43/data/mdl(/.*)? u:object_r:mdlog_data_file:s0
44/data/mdl3(/.*)? u:object_r:mdlog_data_file:s0
45#/data/mediaserver(/.*)? u:object_r:mediaserver_data_file:s0
46#/data/mediacodec(/.*)? u:object_r:mediacodec_data_file:s0
47#/data/.tp(/.*)? u:object_r:thermal_manager_data_file:s0
48/data/nfc_socket(/.*)? u:object_r:nfc_socket:s0
49/data/vendor/nfc_socket(/.*)? u:object_r:vendor_nfc_socket:s0
50#/data/nvram(/.*)? u:object_r:nvram_data_file:s0
51#/data/cct(/.*)? u:object_r:cct_data_file:s0
52/data/vendor/md3(/.*)? u:object_r:c2k_file:s0
53#/data/mal(/.*)? u:object_r:mal_data_file:s0
54/data/SF_dump(./*)? u:object_r:sf_bqdump_data_file:s0
55/data/data_tmpfs_log(/.*)? u:object_r:data_tmpfs_log_file:s0
56/data/vendor/data_tmpfs_log(/.*)? u:object_r:vendor_tmpfs_log_file:s0
57#/data/tmp_mnt/data_tmpfs_log(/.*)? u:object_r:data_tmpfs_log_file:s0
58#/data/tmp_mnt/vendor/data_tmpfs_log(/.*)? u:object_r:data_tmpfs_log_file:s0
59#/data/setkey.conf        u:object_r:ims_ipsec_data_file:s0
60#/data/setkey_bak.conf    u:object_r:ims_ipsec_data_file:s0
61#/data/setkey_latest.conf u:object_r:ims_ipsec_data_file:s0
62/data/vendor/audiohal(/.*)? u:object_r:mtk_audiohal_data_file:s0
63/data/vendor/powerhal(/.*)? u:object_r:mtk_powerhal_data_file:s0
64#/data/vendor/nfc(/.*)? u:object_r:nfc_data_file:s0
65/data/connsyslog(/.*)?  u:object_r:consyslog_data_file:s0
66/data/vendor/stp_dump(/.*)? u:object_r:stp_dump_data_file:s0
67/data/vendor/mediadrm(/.*)?      u:object_r:mediadrm_vendor_data_file:s0
68/data/vendor/dipdebug(/.*)?    u:object_r:aee_dipdebug_vendor_file:s0
69/data/vendor/key_provisioning(/.*)?   u:object_r:key_install_data_file:s0
70/data/vendor/vcodec(/.*)? u:object_r:vcodec_file:s0
71
72# Misc data
73#/data/misc/acdapi(/.*)? u:object_r:acdapi_data_file:s0
74/data/misc/mblog(/.*)? u:object_r:logmisc_data_file:s0
75#/data/misc/ppp(/.*)? u:object_r:ppp_data_file:s0
76#/data/misc/radvd(/.*)? u:object_r:radvd_data_file:s0
77/data/vendor/sensor(/.*)?         u:object_r:sensor_data_file:s0
78#/data/misc/wpa_supplicant(/.*)? u:object_r:wpa_supplicant_data_file:s0
79
80# Wallpaper file for smartbook
81/data/system/users/[0-9]+/smartbook_wallpaper   u:object_r:wallpaper_file:s0
82
83/data/vendor/connsyslog(/.*)? u:object_r:connsyslog_data_vendor_file:s0
84
85# nvdata
86/mnt/vendor/nvdata(/.*)? u:object_r:nvdata_file:s0
87/mnt/vendor/nvcfg(/.*)? u:object_r:nvcfg_file:s0
88
89# protected data file
90/mnt/vendor/protect_f(/.*)?         u:object_r:protect_f_data_file:s0
91/mnt/vendor/protect_s(/.*)?         u:object_r:protect_s_data_file:s0
92/mnt/vendor/persist(/.*)?        u:object_r:persist_data_file:s0
93
94#fat on nand image
95/fat(/.*)?  u:object_r:fon_image_data_file:s0
96
97##########################
98# Devices
99#
100/dev/aal_als(/.*)? u:object_r:aal_als_device:s0
101/dev/accdet(/.*)? u:object_r:accdet_device:s0
102/dev/AD5820AF(/.*)? u:object_r:AD5820AF_device:s0
103/dev/aed[0-9]+ u:object_r:aed_device:s0
104/dev/ampc0(/.*)? u:object_r:ampc0_device:s0
105/dev/android(/.*)? u:object_r:android_device:s0
106/dev/block/zram0 u:object_r:swap_block_device:s0
107/dev/block/platform/bootdevice/by-name/otp u:object_r:otp_part_block_device:s0
108/dev/bmtpool(/.*)? u:object_r:bmtpool_device:s0
109/dev/bootimg(/.*)? u:object_r:bootimg_device:s0
110/dev/BOOT(/.*)? u:object_r:BOOT_device:s0
111/dev/btif(/.*)? u:object_r:btif_device:s0
112/dev/btn(/.*)? u:object_r:btn_device:s0
113/dev/BU6429AF(/.*)? u:object_r:BU6429AF_device:s0
114/dev/BU64745GWZAF(/.*)? u:object_r:BU64745GWZAF_device:s0
115/dev/MAINAF(/.*)? u:object_r:MAINAF_device:s0
116/dev/MAIN2AF(/.*)? u:object_r:MAIN2AF_device:s0
117/dev/SUBAF(/.*)? u:object_r:SUBAF_device:s0
118/dev/cache(/.*)? u:object_r:cache_device:s0
119/dev/CAM_CAL_DRV(/.*)? u:object_r:CAM_CAL_DRV_device:s0
120/dev/CAM_CAL_DRV1(/.*)? u:object_r:CAM_CAL_DRV1_device:s0
121/dev/CAM_CAL_DRV2(/.*)? u:object_r:CAM_CAL_DRV2_device:s0
122/dev/gz_kree(/.*)? u:object_r:gz_device:s0
123/dev/camera-fdvt(/.*)? u:object_r:camera_fdvt_device:s0
124/dev/camera-isp(/.*)? u:object_r:camera_isp_device:s0
125/dev/camera-dip(/.*)? u:object_r:camera_dip_device:s0
126/dev/camera-dpe(/.*)? u:object_r:camera_dpe_device:s0
127/dev/camera-tsf(/.*)? u:object_r:camera_tsf_device:s0
128/dev/camera-rsc(/.*)? u:object_r:camera_rsc_device:s0
129/dev/camera-gepf(/.*)? u:object_r:camera_gepf_device:s0
130/dev/camera-wpe(/.*)? u:object_r:camera_wpe_device:s0
131/dev/camera-owe(/.*)? u:object_r:camera_owe_device:s0
132/dev/camera-mfb(/.*)? u:object_r:camera_mfb_device:s0
133/dev/camera-pipemgr(/.*)? u:object_r:camera_pipemgr_device:s0
134/dev/camera-sysram(/.*)? u:object_r:camera_sysram_device:s0
135/dev/ccu(/.*)? u:object_r:ccu_device:s0
136/dev/vpu(/.*)? u:object_r:vpu_device:s0
137/dev/mdlactl(/.*)? u:object_r:mdla_device:s0
138/dev/ccci_monitor     u:object_r:ccci_monitor_device:s0
139/dev/ccci.* u:object_r:ccci_device:s0
140/dev/cpu_dma_latency(/.*)? u:object_r:cpu_dma_latency_device:s0
141/dev/devmap(/.*)? u:object_r:devmap_device:s0
142/dev/dri(/.*)? u:object_r:gpu_device:s0
143/dev/dummy_cam_cal(/.*)? u:object_r:dummy_cam_cal_device:s0
144/dev/DW9714AF(/.*)? u:object_r:DW9714AF_device:s0
145/dev/DW9814AF(/.*)? u:object_r:DW9814AF_device:s0
146/dev/AK7345AF(/.*)? u:object_r:AK7345AF_device:s0
147/dev/DW9714A(/.*)? u:object_r:DW9714A_device:s0
148/dev/DW9718AF(/.*)? u:object_r:DW9718AF_device:s0
149/dev/WV511AAF(/.*)? u:object_r:lens_device:s0
150/dev/ebc(/.*)? u:object_r:ebc_device:s0
151/dev/usip(/.*)? u:object_r:ebc_device:s0
152/dev/ebr[0-9]+ u:object_r:ebr_device:s0
153/dev/eemcs.* u:object_r:eemcs_device:s0
154/dev/emd.* u:object_r:emd_device:s0
155/dev/etb        u:object_r:etb_device:s0
156/dev/exm0(/.*)? u:object_r:exm0_device:s0
157/dev/expdb(/.*)? u:object_r:expdb_device:s0
158/dev/fat(/.*)? u:object_r:fat_device:s0
159/dev/FM50AF(/.*)? u:object_r:FM50AF_device:s0
160/dev/fm(/.*)? u:object_r:fm_device:s0
161/dev/fw_log_wmt u:object_r:fw_log_wmt_device:s0
162/dev/fw_log_wifi u:object_r:fw_log_wifi_device:s0
163#/dev/gps(/.*)? u:object_r:gps_device:s0
164/dev/geofence(/.*)? u:object_r:geo_device:s0
165/dev/fw_log_gps u:object_r:fw_log_gps_device:s0
166#/dev/mt3337_gpsonly u:object_r:gps_device:s0
167/dev/hdmitx(/.*)? u:object_r:graphics_device:s0
168/dev/hid-keyboard(/.*)? u:object_r:hid_keyboard_device:s0
169/dev/ion(/.*)? u:object_r:ion_device:s0
170/dev/kd_camera_flashlight(/.*)? u:object_r:kd_camera_flashlight_device:s0
171/dev/flashlight(/.*)? u:object_r:flashlight_device:s0
172/dev/kd_camera_hw_bus2(/.*)? u:object_r:kd_camera_hw_bus2_device:s0
173/dev/kd_camera_hw(/.*)? u:object_r:kd_camera_hw_device:s0
174/dev/seninf(/.*)? u:object_r:seninf_device:s0
175/dev/LC898122AF(/.*)? u:object_r:LC898122AF_device:s0
176/dev/LC898212AF(/.*)? u:object_r:LC898212AF_device:s0
177/dev/logo(/.*)? u:object_r:logo_device:s0
178/dev/loop-control(/.*)? u:object_r:loop-control_device:s0
179/dev/M4U_device(/.*)? u:object_r:M4U_device_device:s0
180/dev/mali.* u:object_r:gpu_device:s0
181/dev/MATV(/.*)? u:object_r:MATV_device:s0
182/dev/mbr(/.*)? u:object_r:mbr_device:s0
183/dev/md32(/.*)? u:object_r:md32_device:s0
184/dev/scp(/.*)? u:object_r:scp_device:s0
185/dev/scp_B(/.*)? u:object_r:scp_device:s0
186/dev/sspm(/.*)? u:object_r:sspm_device:s0
187/dev/misc-sd(/.*)? u:object_r:misc_sd_device:s0
188/dev/misc(/.*)? u:object_r:misc_device:s0
189/dev/misc2(/.*)? u:object_r:misc2_device:s0
190/dev/MJC(/.*)? u:object_r:MJC_device:s0
191/dev/mmp(/.*)? u:object_r:mmp_device:s0
192/dev/MT6516_H264_DEC(/.*)? u:object_r:MT6516_H264_DEC_device:s0
193/dev/mt6516-IDP(/.*)? u:object_r:mt6516_IDP_device:s0
194/dev/MT6516_Int_SRAM(/.*)? u:object_r:MT6516_Int_SRAM_device:s0
195/dev/mt6516-isp(/.*)? u:object_r:mt6516_isp_device:s0
196/dev/mt6516_jpeg(/.*)? u:object_r:mt6516_jpeg_device:s0
197/dev/MT6516_MM_QUEUE(/.*)? u:object_r:MT6516_MM_QUEUE_device:s0
198/dev/MT6516_MP4_DEC(/.*)? u:object_r:MT6516_MP4_DEC_device:s0
199/dev/MT6516_MP4_ENC(/.*)? u:object_r:MT6516_MP4_ENC_device:s0
200/dev/mt6605 u:object_r:mt6605_device:s0
201/dev/st21nfc u:object_r:st21nfc_device:s0
202/dev/st54spi u:object_r:st54spi_device:s0
203/dev/mt9p012(/.*)? u:object_r:mt9p012_device:s0
204/dev/mtfreqhopping(/.*)? u:object_r:mtfreqhopping_device:s0
205/dev/mtgpio(/.*)? u:object_r:mtgpio_device:s0
206/dev/mtk-adc-cali(/.*)? u:object_r:mtk-adc-cali_device:s0
207/dev/mtk_disp.* u:object_r:graphics_device:s0
208/dev/mtkfb_vsync(/.*)? u:object_r:graphics_device:s0
209/dev/mtkg2d(/.*)? u:object_r:mtkg2d_device:s0
210/dev/mtk_jpeg(/.*)? u:object_r:mtk_jpeg_device:s0
211/dev/mtk-kpd(/.*)? u:object_r:mtk_kpd_device:s0
212/dev/mtk_sched(/.*)? u:object_r:mtk_sched_device:s0
213/dev/MTK_SMI(/.*)? u:object_r:MTK_SMI_device:s0
214/dev/mtk_cmdq(/.*)? u:object_r:mtk_cmdq_device:s0
215/dev/mdp_device(/.*)? u:object_r:mdp_device:s0
216/dev/mdp_sync(/.*)? u:object_r:mtk_mdp_device:s0
217/dev/mtk_rrc(/.*)? u:object_r:mtk_rrc_device:s0
218/dev/mtk_dfrc(/.*)? u:object_r:mtk_dfrc_device:s0
219/dev/mt-mdp(/.*)? u:object_r:mt_mdp_device:s0
220/dev/mt_otg_test(/.*)? u:object_r:mt_otg_test_device:s0
221/dev/MT_pmic_adc_cali        u:object_r:MT_pmic_adc_cali_device:s0
222/dev/MT_pmic_adc_cali(/.*)? u:object_r:MT_pmic_cali_device:s0
223/dev/MT_pmic(/.*)? u:object_r:MT_pmic_device:s0
224/dev/network.* u:object_r:network_device:s0
225/dev/nvram(/.*)? u:object_r:nvram_device:s0
226/dev/nxpspk(/.*)? u:object_r:smartpa_device:s0
227/dev/otp        u:object_r:otp_device:s0
228/dev/pmem_multimedia(/.*)? u:object_r:pmem_multimedia_device:s0
229/dev/pmt(/.*)? u:object_r:pmt_device:s0
230/dev/preloader(/.*)? u:object_r:preloader_device:s0
231/dev/pro_info(/.*)? u:object_r:pro_info_device:s0
232/dev/protect_f(/.*)? u:object_r:protect_f_device:s0
233/dev/protect_s(/.*)? u:object_r:protect_s_device:s0
234/dev/psaux(/.*)? u:object_r:psaux_device:s0
235/dev/ptmx(/.*)? u:object_r:ptmx_device:s0
236/dev/ptyp.* u:object_r:ptyp_device:s0
237/dev/pvr_sync(/.*)? u:object_r:gpu_device:s0
238/dev/qemu_pipe(/.*)? u:object_r:qemu_pipe_device:s0
239/dev/recovery(/.*)? u:object_r:recovery_device:s0
240/dev/rfkill(/.*)? u:object_r:rfkill_device:s0
241/dev/rtc[0-9]+ u:object_r:rtc_device:s0
242/dev/RT_Monitor(/.*)? u:object_r:RT_Monitor_device:s0
243/dev/kick_powerkey(/.*)? u:object_r:kick_powerkey_device:s0
244/dev/seccfg(/.*)? u:object_r:seccfg_device:s0
245/dev/sec_ro(/.*)? u:object_r:sec_ro_device:s0
246/dev/sec(/.*)? u:object_r:sec_device:s0
247/dev/tee1 u:object_r:tee_part_device:s0
248/dev/tee2 u:object_r:tee_part_device:s0
249/dev/sensor(/.*)? u:object_r:sensor_device:s0
250/dev/smartpa_i2c(/.*)? u:object_r:smartpa1_device:s0
251/dev/snapshot(/.*)? u:object_r:snapshot_device:s0
252/dev/socket/adbd(/.*)? u:object_r:adbd_socket:s0
253/dev/socket/agpsd2(/.*)? u:object_r:agpsd_socket:s0
254/dev/socket/agpsd3(/.*)? u:object_r:agpsd_socket:s0
255/dev/socket/agpsd(/.*)? u:object_r:agpsd_socket:s0
256/dev/socket/atci-audio(/.*)? u:object_r:atci-audio_socket:s0
257/dev/socket/backuprestore(/.*)? u:object_r:backuprestore_socket:s0
258/dev/socket/dfo(/.*)? u:object_r:dfo_socket:s0
259/dev/socket/dnsproxyd(/.*)? u:object_r:dnsproxyd_socket:s0
260/dev/socket/dumpstate(/.*)? u:object_r:dumpstate_socket:s0
261/dev/socket/mdnsd(/.*)? u:object_r:mdnsd_socket:s0
262/dev/socket/mdns(/.*)? u:object_r:mdns_socket:s0
263/dev/socket/mnld(/.*)? u:object_r:mnld_socket:s0
264/dev/socket/netdiag(/.*)? u:object_r:netdiag_socket:s0
265/dev/socket/netd(/.*)? u:object_r:netd_socket:s0
266/dev/socket/mrild(/.*)? u:object_r:gsmrild_socket:s0
267/dev/socket/mrild2(/.*)? u:object_r:gsmrild_socket:s0
268/dev/socket/mrild3(/.*)? u:object_r:gsmrild_socket:s0
269/dev/socket/rild-atci u:object_r:gsmrild_socket:s0
270/dev/socket/rild-mbim(/.*)? u:object_r:gsmrild_socket:s0
271/dev/socket/msap_uim_socket1(/.*)? u:object_r:gsmrild_socket:s0
272/dev/socket/msap_uim_socket2(/.*)? u:object_r:gsmrild_socket:s0
273/dev/socket/sap_uim_socket(/.*)? u:object_r:gsmrild_socket:s0
274/dev/socket/msap_c2k_socket1(/.*)? u:object_r:gsmrild_socket:s0
275/dev/socket/msap_c2k_socket2(/.*)? u:object_r:gsmrild_socket:s0
276/dev/socket/msap_c2k_socket3(/.*)? u:object_r:gsmrild_socket:s0
277/dev/socket/msap_c2k_socket4(/.*)? u:object_r:gsmrild_socket:s0
278/dev/socket/sap_uim_socket1(/.*)? u:object_r:gsmrild_socket:s0
279/dev/socket/sap_uim_socket2(/.*)? u:object_r:gsmrild_socket:s0
280/dev/socket/sap_uim_socket3(/.*)? u:object_r:gsmrild_socket:s0
281/dev/socket/sap_uim_socket4(/.*)? u:object_r:gsmrild_socket:s0
282/dev/socket/rild2-md2(/.*)? u:object_r:rild2_md2_socket:s0
283/dev/socket/rild2(/.*)? u:object_r:rild2_socket:s0
284/dev/socket/rild3(/.*)? u:object_r:rild3_socket:s0
285/dev/socket/rild4(/.*)? u:object_r:rild4_socket:s0
286/dev/socket/rild-mal(/.*)? u:object_r:rild_mal_socket:s0
287/dev/socket/rild-mal-at(/.*)? u:object_r:rild_mal_at_socket:s0
288/dev/socket/rild-mal-md2(/.*)? u:object_r:rild_mal_md2_socket:s0
289/dev/socket/rild-mal-at-md2(/.*)? u:object_r:rild_mal_at_md2_socket:s0
290/dev/socket/rild-ims(/.*)? u:object_r:rild_ims_socket:s0
291/dev/socket/volte_imsm_dongle(/.*)? u:object_r:rild_imsm_socket:s0
292/dev/socket/rild-vsim(/.*)? u:object_r:rild_vsim_socket:s0
293/dev/socket/rild-vsim2(/.*)? u:object_r:rild_vsim_socket:s0
294/dev/socket/rild-vsim3(/.*)? u:object_r:rild_vsim_socket:s0
295/dev/socket/rild-vsim-md2(/.*)? u:object_r:rild_vsim_md2_socket:s0
296/dev/socket/rild-ctclient u:object_r:rild_ctclient_socket:s0
297/dev/socket/rild-debug-md2(/.*)? u:object_r:rild_debug_md2_socket:s0
298/dev/socket/rild-debug(/.*)? u:object_r:rild_debug_socket:s0
299/dev/socket/rild-dongle(/.*)? u:object_r:rild-dongle_socket:s0
300/dev/socket/rild-md2(/.*)? u:object_r:rild_md2_socket:s0
301/dev/socket/rild-mtk-modem-md2(/.*)? u:object_r:rild_mtk_modem_md2_socket:s0
302/dev/socket/rild-mtk-modem(/.*)? u:object_r:rild_mtk_modem_socket:s0
303/dev/socket/rild-mtk-ut-2-md2(/.*)? u:object_r:rild_mtk_ut_2_md2_socket:s0
304/dev/socket/rild-mtk-ut-2(/.*)? u:object_r:rild_mtk_ut_2_socket:s0
305/dev/socket/rild-mtk-ut-md2(/.*)? u:object_r:rild_mtk_ut_md2_socket:s0
306/dev/socket/rild-mtk-ut(/.*)? u:object_r:rild_mtk_ut_socket:s0
307/dev/socket/rild-oem-md2(/.*)? u:object_r:rild_oem_md2_socket:s0
308/dev/socket/rild-oem(/.*)? u:object_r:rild_oem_socket:s0
309/dev/socket/rild(/.*)? u:object_r:rild_socket:s0
310/dev/socket/rild-via u:object_r:rild_via_socket:s0
311/dev/socket/rildc-debug u:object_r:rild_via_socket:s0
312/dev/socket/rild-atci-c2k u:object_r:rild_via_socket:s0
313/dev/socket/mal-mfi(/.*)? u:object_r:mal_mfi_socket:s0
314/dev/socket/mal-mfi-dongle(/.*)? u:object_r:mal_mfi_socket:s0
315/dev/socket/rpc u:object_r:rpc_socket:s0
316/dev/socket/soc_vt_stk(/.*)? u:object_r:soc_vt_stk_socket:s0
317/dev/socket/soc_vt_svc(/.*)? u:object_r:soc_vt_svc_socket:s0
318/dev/socket/soc_vt_tcv(/.*)? u:object_r:soc_vt_tcv_socket:s0
319/dev/socket/sysctl(/.*)? u:object_r:sysctl_socket:s0
320/dev/socket/volte_vt(/.*)? u:object_r:volte_vt_socket:s0
321/dev/socket/wpa_wlan0(/.*)? u:object_r:wpa_wlan0_socket:s0
322/dev/stpant(/.*)? u:object_r:stpant_device:s0
323/dev/stpbt(/.*)? u:object_r:stpbt_device:s0
324/dev/fw_log_bt u:object_r:fw_log_bt_device:s0
325/dev/stpgps        u:object_r:mnld_device:s0
326/dev/stpgps(/.*)? u:object_r:stpgps_device:s0
327/dev/gpsdl0        u:object_r:mnld_device:s0
328/dev/gpsdl0(/.*)? u:object_r:gpsdl_device:s0
329/dev/gpsdl1        u:object_r:mnld_device:s0
330/dev/gpsdl1(/.*)? u:object_r:gpsdl_device:s0
331/dev/stpwmt(/.*)? u:object_r:stpwmt_device:s0
332/dev/sw_sync(/.*)? u:object_r:sw_sync_device:s0
333/dev/tgt(/.*)? u:object_r:tgt_device:s0
334/dev/touch(/.*)? u:object_r:touch_device:s0
335/dev/tpd_em_log(/.*)? u:object_r:tpd_em_log_device:s0
336/dev/ttyC0         u:object_r:gsm0710muxd_device:s0
337/dev/ttyC1 u:object_r:mdlog_device:s0
338/dev/ttyC2         u:object_r:agps_device:s0
339/dev/ttyC3 u:object_r:icusb_device:s0
340/dev/ttyC6 u:object_r:nlop_device:s0
341/dev/ttyGS.* u:object_r:ttyGS_device:s0
342/dev/ttyMT.* u:object_r:ttyMT_device:s0
343/dev/ttyS.* u:object_r:ttyS_device:s0
344/dev/ttyp.* u:object_r:ttyp_device:s0
345/dev/ttySDIO.* u:object_r:ttySDIO_device:s0
346/dev/ttyUSB0         u:object_r:tty_device:s0
347/dev/ttyUSB1         u:object_r:tty_device:s0
348/dev/ttyUSB2         u:object_r:tty_device:s0
349/dev/ttyUSB3         u:object_r:tty_device:s0
350/dev/ttyUSB4         u:object_r:tty_device:s0
351/dev/TV-out(/.*)? u:object_r:TV_out_device:s0
352/dev/uboot(/.*)? u:object_r:uboot_device:s0
353/dev/uibc(/.*)? u:object_r:uibc_device:s0
354/dev/uinput(/.*)? u:object_r:uinput_device:s0
355/dev/uio0(/.*)? u:object_r:uio0_device:s0
356/dev/usrdata(/.*)? u:object_r:usrdata_device:s0
357/dev/Vcodec(/.*)? u:object_r:Vcodec_device:s0
358/dev/vmodem u:object_r:vmodem_device:s0
359/dev/vow(/.*)? u:object_r:vow_device:s0
360/dev/wmtdetect(/.*)? u:object_r:wmtdetect_device:s0
361/dev/wmtWifi(/.*)? u:object_r:wmtWifi_device:s0
362/dev/ancservice(/.*)? u:object_r:ancservice_device:s0
363/dev/offloadservice(/.*)? u:object_r:offloadservice_device:s0
364/dev/audio_ipi(/.*)? u:object_r:audio_ipi_device:s0
365/dev/adsp(/.*)? u:object_r:adsp_device:s0
366/dev/audio_scp(/.*)? u:object_r:audio_scp_device:s0
367/dev/irtx u:object_r:irtx_device:s0
368/dev/spm(/.*)? u:object_r:spm_device:s0
369/dev/xt_qtaguid(/.*)? u:object_r:xt_qtaguid_device:s0
370/dev/pmic_ftm(/.*)? u:object_r:pmic_ftm_device:s0
371/dev/charger_ftm(/.*)? u:object_r:charger_ftm_device:s0
372/dev/shf  u:object_r:shf_device:s0
373/dev/ttyACM0        u:object_r:ttyACM_device:s0
374/dev/hrm       u:object_r:hrm_device:s0
375/dev/trusty-ipc-dev0 u:object_r:tee_device:s0
376/dev/nebula-ipc-dev0 u:object_r:tee_device:s0
377/dev/mbim u:object_r:mbim_device:s0
378/dev/alarm(/.*)? u:object_r:alarm_device:s0
379##########################
380# Sensor common Devices Start
381#
382/dev/als_ps(/.*)? u:object_r:als_ps_device:s0
383/dev/barometer(/.*)? u:object_r:barometer_device:s0
384/dev/humidity(/.*)? u:object_r:humidity_device:s0
385/dev/gsensor(/.*)? u:object_r:gsensor_device:s0
386/dev/gyroscope(/.*)? u:object_r:gyroscope_device:s0
387/dev/hwmsensor(/.*)? u:object_r:hwmsensor_device:s0
388/dev/msensor(/.*)? u:object_r:msensor_device:s0
389/dev/biometric(/.*)? u:object_r:biometric_device:s0
390/dev/sensorlist(/.*)? u:object_r:sensorlist_device:s0
391##########################
392# Sensor Devices Start
393#
394/dev/m_batch_misc(/.*)? u:object_r:m_batch_misc_device:s0
395##########################
396# Sensor bio Devices Start
397#
398/dev/m_als_misc(/.*)? u:object_r:m_als_misc_device:s0
399/dev/m_ps_misc(/.*)? u:object_r:m_ps_misc_device:s0
400/dev/m_baro_misc(/.*)? u:object_r:m_baro_misc_device:s0
401/dev/m_hmdy_misc(/.*)? u:object_r:m_hmdy_misc_device:s0
402/dev/m_acc_misc(/.*)? u:object_r:m_acc_misc_device:s0
403/dev/m_mag_misc(/.*)? u:object_r:m_mag_misc_device:s0
404/dev/m_gyro_misc(/.*)? u:object_r:m_gyro_misc_device:s0
405/dev/m_act_misc(/.*)? u:object_r:m_act_misc_device:s0
406/dev/m_pedo_misc(/.*)? u:object_r:m_pedo_misc_device:s0
407/dev/m_situ_misc(/.*)? u:object_r:m_situ_misc_device:s0
408/dev/m_step_c_misc(/.*)? u:object_r:m_step_c_misc_device:s0
409/dev/m_fusion_misc(/.*)? u:object_r:m_fusion_misc_device:s0
410/dev/m_bio_misc(/.*)? u:object_r:m_bio_misc_device:s0
411
412# block partition definitions
413/dev/block/mmcblk0boot0 u:object_r:preloader_block_device:s0
414/dev/block/mmcblk0boot1 u:object_r:preloader_block_device:s0
415/dev/block/sda u:object_r:preloader_block_device:s0
416/dev/block/sdb u:object_r:preloader_block_device:s0
417/dev/block/mmcblk0 u:object_r:bootdevice_block_device:s0
418/dev/block/sdc u:object_r:bootdevice_block_device:s0
419/dev/block/mmcblk1 u:object_r:mmcblk1_block_device:s0
420/dev/block/mmcblk1p1 u:object_r:mmcblk1p1_block_device:s0
421/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/proinfo     u:object_r:nvram_device:s0
422/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/nvram       u:object_r:nvram_device:s0
423/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/nvdata      u:object_r:nvdata_device:s0
424/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/frp         u:object_r:frp_block_device:s0
425/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/expdb       u:object_r:expdb_block_device:s0
426/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/misc2       u:object_r:misc2_block_device:s0
427/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/logo        u:object_r:logo_block_device:s0
428/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/para        u:object_r:para_block_device:s0
429/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/misc        u:object_r:misc_block_device:s0
430/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/seccfg      u:object_r:seccfg_block_device:s0
431/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/secro       u:object_r:secro_block_device:s0
432/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/system      u:object_r:system_block_device:s0
433/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/userdata    u:object_r:userdata_block_device:s0
434/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/cache       u:object_r:cache_block_device:s0
435/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/recovery    u:object_r:recovery_block_device:s0
436/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/protect1    u:object_r:protect1_block_device:s0
437/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/protect2    u:object_r:protect2_block_device:s0
438/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/keystore    u:object_r:keystore_block_device:s0
439/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/oemkeystore u:object_r:oemkeystore_block_device:s0
440/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/boot        u:object_r:boot_block_device:s0
441/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/persist     u:object_r:persist_block_device:s0
442/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/metadata    u:object_r:metadata_block_device:s0
443/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/nvcfg       u:object_r:nvcfg_block_device:s0
444/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/ppl         u:object_r:ppl_block_device:s0
445/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/sec1        u:object_r:sec1_block_device:s0
446/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/boot_para   u:object_r:boot_para_block_device:s0
447/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/super       u:object_r:super_block_device:s0
448/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/boot(_[ab])?     u:object_r:boot_block_device:s0
449/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/system(_[ab])?   u:object_r:system_block_device:s0
450/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/odm(_[ab])?      u:object_r:odm_block_device:s0
451/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/oem(_[ab])?      u:object_r:oem_block_device:s0
452/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/vendor(_[ab])?   u:object_r:vendor_block_device:s0
453/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/lk(_[ab])?       u:object_r:lk_block_device:s0
454/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/odmdtbo(_[ab])?  u:object_r:dtbo_block_device:s0
455/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/dtbo(_[ab])?     u:object_r:dtbo_block_device:s0
456/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/tee([12]|_[ab])  u:object_r:tee_block_device:s0
457/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/md1img(_[ab])?   u:object_r:md_block_device:s0
458/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/md1dsp(_[ab])?   u:object_r:dsp_block_device:s0
459/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/md1arm7(_[ab])?  u:object_r:md_block_device:s0
460/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/md3img(_[ab])?   u:object_r:md_block_device:s0
461/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/scp(_[ab])?      u:object_r:scp_block_device:s0
462/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/sspm(_[ab])?     u:object_r:sspm_block_device:s0
463/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/spmfw(_[ab])?    u:object_r:spmfw_block_device:s0
464/dev/block/platform/mtk-\b(msdc|ufs)\b\.0/[0-9]+\.\b(msdc0|ufs0)\b/by-name/vbmeta(_system|_vendor)?(_[ab])?    u:object_r:vbmeta_block_device:s0
465
466/dev/block/platform/bootdevice/by-name/proinfo   u:object_r:nvram_device:s0
467/dev/block/platform/bootdevice/by-name/nvram     u:object_r:nvram_device:s0
468/dev/block/platform/bootdevice/by-name/nvdata    u:object_r:nvdata_device:s0
469/dev/block/platform/bootdevice/by-name/frp       u:object_r:frp_block_device:s0
470/dev/block/platform/bootdevice/by-name/expdb     u:object_r:expdb_block_device:s0
471/dev/block/platform/bootdevice/by-name/misc2     u:object_r:misc2_block_device:s0
472/dev/block/platform/bootdevice/by-name/logo      u:object_r:logo_block_device:s0
473/dev/block/platform/bootdevice/by-name/para      u:object_r:para_block_device:s0
474/dev/block/platform/bootdevice/by-name/misc      u:object_r:misc_block_device:s0
475/dev/block/platform/bootdevice/by-name/seccfg    u:object_r:seccfg_block_device:s0
476/dev/block/platform/bootdevice/by-name/secro     u:object_r:secro_block_device:s0
477/dev/block/platform/bootdevice/by-name/userdata  u:object_r:userdata_block_device:s0
478/dev/block/platform/bootdevice/by-name/cache     u:object_r:cache_block_device:s0
479/dev/block/platform/bootdevice/by-name/recovery  u:object_r:recovery_block_device:s0
480/dev/block/platform/bootdevice/by-name/protect1  u:object_r:protect1_block_device:s0
481/dev/block/platform/bootdevice/by-name/protect2  u:object_r:protect2_block_device:s0
482/dev/block/platform/bootdevice/by-name/keystore  u:object_r:keystore_block_device:s0
483/dev/block/platform/bootdevice/by-name/persist   u:object_r:persist_block_device:s0
484/dev/block/platform/bootdevice/by-name/metadata  u:object_r:metadata_block_device:s0
485/dev/block/platform/bootdevice/by-name/nvcfg     u:object_r:nvcfg_block_device:s0
486/dev/block/platform/bootdevice/by-name/sec1      u:object_r:sec1_block_device:s0
487/dev/block/platform/bootdevice/by-name/boot_para u:object_r:boot_para_block_device:s0
488/dev/block/platform/bootdevice/by-name/super     u:object_r:super_block_device:s0
489/dev/block/platform/bootdevice/by-name/cam_vpu[1-3](_[ab])?  u:object_r:cam_vpu_block_device:s0
490/dev/block/platform/bootdevice/by-name/system(_[ab])?        u:object_r:system_block_device:s0
491/dev/block/platform/bootdevice/by-name/boot(_[ab])?          u:object_r:boot_block_device:s0
492/dev/block/platform/bootdevice/by-name/odm(_[ab])?           u:object_r:odm_block_device:s0
493/dev/block/platform/bootdevice/by-name/oem(_[ab])?           u:object_r:oem_block_device:s0
494/dev/block/platform/bootdevice/by-name/vendor(_[ab])?        u:object_r:vendor_block_device:s0
495/dev/block/platform/bootdevice/by-name/lk(_[ab])?            u:object_r:lk_block_device:s0
496/dev/block/platform/bootdevice/by-name/odmdtbo(_[ab])?       u:object_r:dtbo_block_device:s0
497/dev/block/platform/bootdevice/by-name/dtbo(_[ab])?          u:object_r:dtbo_block_device:s0
498/dev/block/platform/bootdevice/by-name/tee([12]|_[ab])       u:object_r:tee_block_device:s0
499/dev/block/platform/bootdevice/by-name/md1img(_[ab])?        u:object_r:md_block_device:s0
500/dev/block/platform/bootdevice/by-name/md1dsp(_[ab])?        u:object_r:dsp_block_device:s0
501/dev/block/platform/bootdevice/by-name/md1arm7(_[ab])?       u:object_r:md_block_device:s0
502/dev/block/platform/bootdevice/by-name/md3img(_[ab])?        u:object_r:md_block_device:s0
503/dev/block/platform/bootdevice/by-name/scp(_[ab])?           u:object_r:scp_block_device:s0
504/dev/block/platform/bootdevice/by-name/sspm(_[ab])?          u:object_r:sspm_block_device:s0
505/dev/block/platform/bootdevice/by-name/spmfw(_[ab])?         u:object_r:spmfw_block_device:s0
506/dev/block/platform/bootdevice/by-name/mcupmfw(_[ab])?       u:object_r:mcupmfw_block_device:s0
507/dev/block/platform/bootdevice/by-name/loader_ext(_[ab])?    u:object_r:loader_ext_block_device:s0
508/dev/block/platform/bootdevice/by-name/vbmeta(_system|_vendor)?(_[ab])?    u:object_r:vbmeta_block_device:s0
509
510# Key manager
511/dev/block/platform/soc/[0-9]+\.mmc/by-name/kb   u:object_r:kb_block_device:s0
512/dev/block/platform/soc/[0-9]+\.mmc/by-name/dkb  u:object_r:dkb_block_device:s0
513
514# W19.23 Q new feature - Userdata Checkpoint
515/dev/block/by-name/md_udc             u:object_r:metadata_block_device:s0
516
517#############################
518# System files
519#
520/(system\/vendor|vendor)/bin/audiocmdservice_atci u:object_r:audiocmdservice_atci_exec:s0
521/(system\/vendor|vendor)/bin/stp_dump3 u:object_r:stp_dump3_exec:s0
522/(system\/vendor|vendor)/bin/wmt_launcher u:object_r:mtk_wmt_launcher_exec:s0
523/(system\/vendor|vendor)/bin/ccci_fsd u:object_r:ccci_fsd_exec:s0
524/(system\/vendor|vendor)/bin/fuelgauged u:object_r:fuelgauged_exec:s0
525/(system\/vendor|vendor)/bin/fuelgauged_nvram u:object_r:fuelgauged_nvram_exec:s0
526/(system\/vendor|vendor)/bin/gsm0710muxd u:object_r:gsm0710muxd_exec:s0
527/(system\/vendor|vendor)/bin/mmc_ffu u:object_r:mmc_ffu_exec:s0
528/(system\/vendor|vendor)/bin/mtk_agpsd u:object_r:mtk_agpsd_exec:s0
529/(system\/vendor|vendor)/bin/MtkCodecService u:object_r:MtkCodecService_exec:s0
530/(system\/vendor|vendor)/bin/mtkrild u:object_r:mtkrild_exec:s0
531/(system\/vendor|vendor)/bin/muxreport u:object_r:muxreport_exec:s0
532/(system\/vendor|vendor)/bin/nvram_agent_binder u:object_r:nvram_agent_binder_exec:s0
533/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.nvram@(.*)-service u:object_r:nvram_agent_binder_exec:s0
534/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.nvram@(.*)-service-lazy u:object_r:nvram_agent_binder_exec:s0
535/(system\/vendor|vendor)/bin/nvram_daemon u:object_r:nvram_daemon_exec:s0
536/(system\/vendor|vendor)/bin/slpd u:object_r:slpd_exec:s0
537/(system\/vendor|vendor)/bin/thermal_manager u:object_r:thermal_manager_exec:s0
538/(system\/vendor|vendor)/bin/thermalloadalgod u:object_r:thermalloadalgod_exec:s0
539/(system\/vendor|vendor)/bin/lbs_hidl_service u:object_r:lbs_hidl_service_exec:s0
540/(system\/vendor|vendor)/bin/meta_tst u:object_r:meta_tst_exec:s0
541/(system\/vendor|vendor)/bin/kisd u:object_r:kisd_exec:s0
542
543/(system\/vendor|vendor)/bin/fm_hidl_service u:object_r:fm_hidl_service_exec:s0
544/(system\/vendor|vendor)/bin/wlan_assistant u:object_r:wlan_assistant_exec:s0
545/(system\/vendor|vendor)/bin/wmt_loader u:object_r:wmt_loader_exec:s0
546/(system\/vendor|vendor)/bin/spm_loader u:object_r:spm_loader_exec:s0
547/(system\/vendor|vendor)/bin/ccci_mdinit u:object_r:ccci_mdinit_exec:s0
548/(system\/vendor|vendor)/bin/factory u:object_r:factory_exec:s0
549
550/(system\/vendor|vendor)/bin/mnld u:object_r:mnld_exec:s0
551#/system/bin/connsyslogger u:object_r:connsyslogger_exec:s0
552
553/(system\/vendor|vendor)/bin/biosensord_nvram u:object_r:biosensord_nvram_exec:s0
554/(system\/vendor|vendor)/bin/hw/android\.hardware\.bluetooth@1\.0-service-mediatek u:object_r:mtk_hal_bluetooth_exec:s0
555/(system\/vendor|vendor)/bin/hw/android\.hardware\.gnss@2\.0-service-mediatek u:object_r:mtk_hal_gnss_exec:s0
556/(system\/vendor|vendor)/bin/hw/android\.hardware\.audio@5\.0-service-mediatek u:object_r:mtk_hal_audio_exec:s0
557/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.mtkpower@1\.0-service u:object_r:mtk_hal_power_exec:s0
558/(system\/vendor|vendor)/bin/hw/android\.hardware\.sensors@1\.0-service-mediatek u:object_r:mtk_hal_sensors_exec:s0
559/(system\/vendor|vendor)/bin/hw/android\.hardware\.sensors@2\.0-service-mediatek u:object_r:mtk_hal_sensors_exec:s0
560/(system\/vendor|vendor)/bin/hw/rilproxy u:object_r:rild_exec:s0
561/(system\/vendor|vendor)/bin/hw/mtkfusionrild u:object_r:rild_exec:s0
562/(system\/vendor|vendor)/bin/hw/android\.hardware\.light@2\.0-service-mediatek u:object_r:mtk_hal_light_exec:s0
563/(system\/vendor|vendor)/bin/hw/android\.hardware\.light@2\.0-service-mediatek-lazy u:object_r:mtk_hal_light_exec:s0
564/(system\/vendor|vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service-mediatek u:object_r:hal_vibrator_default_exec:s0
565/(system\/vendor|vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service-mediatek-lazy u:object_r:hal_vibrator_default_exec:s0
566/(system\/vendor|vendor)/bin/hw/camerahalserver u:object_r:mtk_hal_camera_exec:s0
567/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.imsa@1\.0-service u:object_r:mtk_hal_imsa_exec:s0
568
569# Google Trusty system files
570/(vendor|system\/vendor)/bin/hw/android\.hardware\.keymaster@3\.0-service\.trusty u:object_r:hal_keymaster_default_exec:s0
571
572#PQ hal
573/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.pq@2\.2-service u:object_r:mtk_hal_pq_exec:s0
574#MMS hal
575/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.mms@1\.3-service u:object_r:mtk_hal_mms_exec:s0
576/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.mms@1\.3-service-lazy u:object_r:mtk_hal_mms_exec:s0
577# Keymaster Attestation Hal
578/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.keymaster_attestation@1\.1-service u:object_r:hal_keymaster_attestation_exec:s0
579#ST NFC 1.2 hidl service
580/(system\/vendor|vendor)/bin/hw/android\.hardware\.nfc@1\.2-service-st u:object_r:hal_nfc_default_exec:s0
581/(system\/vendor|vendor)/bin/hw/android\.hardware\.secure_element@1\.0-service-st54spi u:object_r:st54spi_hal_secure_element_exec:s0
582# MTK Wifi Hal
583/(system\/vendor|vendor)/bin/hw/android\.hardware\.wifi@1\.0-service-mediatek           u:object_r:mtk_hal_wifi_exec:s0
584/(system\/vendor|vendor)/bin/hw/android\.hardware\.wifi@1\.0-service-lazy-mediatek      u:object_r:mtk_hal_wifi_exec:s0
585# MTK USB hal
586/(system\/vendor|vendor)/bin/hw/android\.hardware\.usb@1\.1-service-mediatek u:object_r:mtk_hal_usb_exec:s0
587# MTK OMAPI for UICC
588/(system\/vendor|vendor)/bin/hw/android\.hardware\.secure_element@1\.0-service-mediatek u:object_r:mtk_hal_secure_element_exec:s0
589
590#gpu hal
591/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.gpu@1\.0-service u:object_r:mtk_hal_gpu_exec:s0
592
593#############################
594# System/bin files
595
596#hidl process merging
597/(system\/vendor|vendor)/bin/hw/merged_hal_service          u:object_r:merged_hal_service_exec:s0
598
599
600###############################################
601# same-process HAL files and their dependencies
602#
603/vendor/lib(64)?/hw/gralloc\.mt[0-9]+[a-z]*\.so   u:object_r:same_process_hal_file:s0
604/vendor/lib(64)?/hw/vulkan\.mt[0-9]+\.so     u:object_r:same_process_hal_file:s0
605
606/vendor/lib(64)?/libIMGegl\.so   u:object_r:same_process_hal_file:s0
607/vendor/lib(64)?/libglslcompiler\.so   u:object_r:same_process_hal_file:s0
608/vendor/lib(64)?/libPVRScopeServices\.so   u:object_r:same_process_hal_file:s0
609/vendor/lib(64)?/libsrv_um\.so   u:object_r:same_process_hal_file:s0
610/vendor/lib(64)?/libmpvr\.so   u:object_r:same_process_hal_file:s0
611/vendor/lib(64)?/libusc\.so   u:object_r:same_process_hal_file:s0
612/vendor/lib(64)?/libtqvalidate\.so   u:object_r:same_process_hal_file:s0
613/vendor/lib(64)?/libPVROCL\.so   u:object_r:same_process_hal_file:s0
614/vendor/lib(64)?/libufwriter\.so   u:object_r:same_process_hal_file:s0
615/vendor/lib(64)?/libmemtrack_GL\.so   u:object_r:same_process_hal_file:s0
616/vendor/lib(64)?/libPVRTrace\.so   u:object_r:same_process_hal_file:s0
617
618/vendor/lib(64)?/libGLES_mali\.so   u:object_r:same_process_hal_file:s0
619
620/vendor/lib(64)?/libgralloc_extra\.so   u:object_r:same_process_hal_file:s0
621/vendor/lib(64)?/libgpu_aux\.so   u:object_r:same_process_hal_file:s0
622/vendor/lib(64)?/libgpud\.so   u:object_r:same_process_hal_file:s0
623/vendor/lib(64)?/libged\.so   u:object_r:same_process_hal_file:s0
624/vendor/lib(64)?/libdrm\.so   u:object_r:same_process_hal_file:s0
625/vendor/lib(64)?/libion_mtk\.so   u:object_r:same_process_hal_file:s0
626/vendor/lib(64)?/libion_ulit\.so   u:object_r:same_process_hal_file:s0
627/vendor/lib(64)?/mtk_cache\.so   u:object_r:same_process_hal_file:s0
628
629/vendor/lib(64)?/hw/android\.hardware\.graphics\.mapper@2\.0-impl-2\.1\.so u:object_r:same_process_hal_file:s0
630
631/vendor/lib(64)?/libdpframework\.so                                  u:object_r:same_process_hal_file:s0
632/vendor/lib(64)?/libpq_cust_base\.so                                 u:object_r:same_process_hal_file:s0
633/vendor/lib(64)?/vendor\.mediatek\.hardware\.pq@[0-9]\.[0-9]\.so                 u:object_r:same_process_hal_file:s0
634/vendor/lib(64)?/libpq_prot\.so                                      u:object_r:same_process_hal_file:s0
635/vendor/lib(64)?/libhdrvideo\.so                                      u:object_r:same_process_hal_file:s0
636/vendor/lib(64)?/libscltm\.so                                      u:object_r:same_process_hal_file:s0
637
638/vendor/lib(64)?/vendor\.mediatek\.hardware\.gpu@1\.0.so u:object_r:same_process_hal_file:s0
639
640/vendor/lib(64)?/libladder\.so   u:object_r:same_process_hal_file:s0
641
642/vendor/lib(64)?/libtflite_mtk.so u:object_r:same_process_hal_file:s0
643
644/vendor/bin/hw/vendor\.mediatek\.hardware\.log@1\.0-service u:object_r:aee_hal_exec:s0
645
646/vendor/bin/loghidlvendorservice u:object_r:loghidlvendorservice_exec:s0
647
648/vendor/bin/em_hidl u:object_r:em_hidl_exec:s0
649
650/vendor/bin/hw/modemdbfilter_service u:object_r:modemdbfilter_service_exec:s0
651
652# Date: 2018/07/06
653# Purpose for same-process HAL files and their dependencies: libGLES_mali.so need libm4u.so on mali GPU.
654/vendor/lib(64)?/libm4u\.so   u:object_r:same_process_hal_file:s0
655
656# Date: 2018/12/04
657# Purpose: Neuron runtime API and the dependencies
658/vendor/lib(64)?/libneuron_platform.so u:object_r:same_process_hal_file:s0
659/vendor/lib(64)?/libion_mtk.so u:object_r:same_process_hal_file:s0
660/vendor/lib(64)?/mtk_cache.so u:object_r:same_process_hal_file:s0
661/vendor/lib(64)?/libvpu.so u:object_r:same_process_hal_file:s0
662
663# Date: 2019/01/21
664# Purpose: OpenCL feature requirments
665/vendor/lib(64)?/libOpenCL\.so                                  u:object_r:same_process_hal_file:s0
666
667#MRDUMP
668/dev/block/platform/bootdevice/by-name/mrdump(/.*)? u:object_r:mrdump_device:s0
669
670# Date: 2019/07/16
671# hdmi hal
672/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.hdmi@1\.0-service u:object_r:mtk_hal_hdmi_exec:s0
673
674#Widevine drm hal(include lazy hal)
675/vendor/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.widevine           u:object_r:hal_drm_widevine_exec:s0
676/vendor/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service-lazy\.widevine      u:object_r:hal_drm_widevine_exec:s0
677#Cleaarkey hal(include lazy hal)
678/vendor/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.clearkey           u:object_r:hal_drm_clearkey_exec:s0
679/vendor/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service-lazy\.clearkey      u:object_r:hal_drm_clearkey_exec:s0
680
681
682# Date : 2019/10/28
683# Purpose : move these contexts from plat_private/file_contexts
684/(system\/vendor|vendor)/bin/aee_aedv u:object_r:aee_aedv_exec:s0
685/(system\/vendor|vendor)/bin/aee_aedv64 u:object_r:aee_aedv_exec:s0
686/vendor/bin/aeev  u:object_r:aee_aedv_exec:s0
687