1#############################
2# Devices
3#
4/dev/hi_sys             u:object_r:hi_sys_device:s0
5/dev/hi_ao              u:object_r:hi_ao_device:s0
6/dev/hi_ai              u:object_r:hi_ai_device:s0
7/dev/hi_pq              u:object_r:hi_pq_device:s0
8/dev/hi_hdmi            u:object_r:hi_hdmi_device:s0
9/dev/hi_vfmw            u:object_r:hi_vfmw_device:s0
10/dev/hi_vo              u:object_r:hi_vo_device:s0
11/dev/hi_disp            u:object_r:hi_disp_device:s0
12/dev/hi_omxvdec         u:object_r:hi_omxvdec_device:s0
13/dev/hi_log             u:object_r:hi_log_device:s0
14/dev/hi_mem             u:object_r:hi_mem_device:s0
15/dev/hi_module          u:object_r:hi_module_device:s0
16/dev/hi_stat            u:object_r:hi_stat_device:s0
17/dev/hi_tde             u:object_r:hi_tde_device:s0
18/dev/hi_gfx2d           u:object_r:hi_gfx2d_device:s0
19/dev/hi_userproc        u:object_r:hi_userproc_device:s0
20/dev/hi_pvr             u:object_r:hi_pvr_device:s0
21/dev/hi_sync            u:object_r:hi_sync_device:s0
22/dev/hi_adec            u:object_r:hi_adec_device:s0
23/dev/hi_vdec            u:object_r:hi_vdec_device:s0
24/dev/hi_gpio            u:object_r:hi_gpio_device:s0
25/dev/hi_smmu            u:object_r:hi_smmu_device:s0
26/dev/hi_vpss            u:object_r:hi_vpss_device:s0
27/dev/hi_adsp            u:object_r:hi_adsp_device:s0
28/dev/hi_mce             u:object_r:hi_mce_device:s0
29/dev/mali0              u:object_r:mali_device:s0
30/dev/mmz_userdev        u:object_r:mmz_userdev_device:s0
31# mtk bluetooth
32/dev/stpbt              u:object_r:uhid_device:s0
33# bcm bluetooth
34/dev/ttyAMA2            u:object_r:ttyAMA2_device:s0
35# rtk bluetooth
36/dev/rtkbt_dev          u:object_r:rtk_bt_device:s0
37
38/dev/block/mmcblk1p3    u:object_r:hi_system_block_device:s0
39/dev/block/mmcblk1p5    u:object_r:hi_vendor_block_device:s0
40/dev/block/mmcblk1p6    u:object_r:hi_cache_block_device:s0
41/dev/block/mmcblk1p7    u:object_r:hi_userdata_block_device:s0
42
43#############################
44# Vendor service
45#
46/(vendor|system/vendor)/bin/hiavplayer                     u:object_r:hiavplayer_exec:s0
47
48# optee files
49/vendor/bin/tee-supplicant  u:object_r:tee_exec:s0
50/vendor/bin/xtest      u:object_r:tee_exec:s0
51/dev/teepriv[0-9]*     u:object_r:tee_device:s0
52/dev/tee[0-9]*         u:object_r:tee_device:s0
53#/data/tee(/.*)?        u:object_r:tee_data_file:s0
54
55#############################
56# Same process HALs installed by hisi into /vendor
57#
58/(vendor|system/vendor)/lib(64)?/hw/overlay\.poplar\.so     u:object_r:same_process_hal_file:s0
59/(vendor|system/vendor)/lib(64)?/hw/gralloc\.poplar\.so    u:object_r:same_process_hal_file:s0
60/(vendor|system/vendor)/lib(64)?/libion_ext\.so            u:object_r:same_process_hal_file:s0
61
62
63#/(vendor|system/vendor)/lib(64)?/hw/overlay\.poplar\.so      u:object_r:hi_overlay_file:s0
64#/(vendor|system/vendor)/lib(64)?/libhi_msp\.so               u:object_r:hi_overlay_file:s0
65#/(vendor|system/vendor)/lib(64)?/libhi_common\.so            u:object_r:hi_overlay_file:s0
66
67/(vendor|system/vendor)/lib(64)?/libhi_msp\.so               u:object_r:same_process_hal_file:s0
68/(vendor|system/vendor)/lib(64)?/libhi_common\.so            u:object_r:same_process_hal_file:s0
69
70#/(vendor|system/vendor)/lib(64)?/libhi_vfmw\.so              u:object_r:same_process_hal_file:s0
71#/(vendor|system/vendor)/lib(64)?/libhi_vfmw\.so              u:object_r:hi_overlay_file:s0
72/(vendor|system/vendor)/lib(64)?/libhi_vfmw\.so              u:object_r:same_process_hal_file:s0
73
74
75