1/data/cam_socket[23]           u:object_r:camera_socket:s0
2/data/diag_logs(/.*)?          u:object_r:diag_logs:s0
3/data/misc/radio(/.*)?         u:object_r:radio_data_file:s0
4/data/nfc(/.*)?                u:object_r:nfc_data_file:s0
5/data/time(/.*)?               u:object_r:time_data_file:s0
6/data/misc/location/gsiff(/.*)? u:object_r:gsiffd_data_file:s0
7/data/misc/location/quipc(/.*)? u:object_r:quipc_data_file:s0
8/data/ss-ram-dumps(/.*)?       u:object_r:ram_dump_logs:s0
9/data/adspd(/.*)?              u:object_r:adspd_data_file:s0
10/data/misc/audio_cutback(/.*)? u:object_r:audio_cutback_data_file:s0
11
12# TODO move out of /data/system
13/data/system/dropbox-add(/.*)? u:object_r:dropbox_data_file:s0
14
15# Bluetooth
16/dev/ttyHS0                    u:object_r:hci_attach_dev:s0
17
18# Audio DSP devices
19/dev/ttyHS3                    u:object_r:adspd_device:s0
20
21#Serial console
22/dev/ttyHSL0                   u:object_r:tty_device:s0
23
24# STOPSHIP b/16455932
25/dev/vfsspi                    u:object_r:fingerprint_device:s0
26
27# GPU device
28/dev/kgsl-3d0                  u:object_r:gpu_device:s0
29/dev/kgsl                      u:object_r:gpu_device:s0
30
31# Mdm_Helper devices
32/dev/efs_hsic_bridge           u:object_r:mdm_helper_device:s0
33/dev/ks_hsic_bridge            u:object_r:mdm_helper_device:s0
34
35# factory reset protection partition
36/dev/block/platform/msm_sdcc\.1/by-name/frp           u:object_r:frp_block_device:s0
37
38# mdm1hob, mdm1dhob
39/dev/block/platform/msm_sdcc.1/by-name/mdm1hob   u:object_r:modem_hob_block_device:s0
40/dev/block/platform/msm_sdcc.1/by-name/mdm1dhob  u:object_r:modem_hob_block_device:s0
41
42# efs1, efs2, efs3 (/fsg), efsc
43/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs1  u:object_r:efs_block_device:s0
44/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs2  u:object_r:efs_block_device:s0
45/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs3  u:object_r:efs_block_device:s0
46/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefsc  u:object_r:efs_block_device:s0
47
48# Customer Identifier
49/dev/block/platform/msm_sdcc.1/by-name/cid          u:object_r:cid_block_device:s0
50
51# tee devices
52/dev/block/mmcblk0rpmb          u:object_r:drm_block_device:s0
53/dev/block/mmcblk0p34           u:object_r:drm_block_device:s0
54
55# Used by keystore to access trustzone
56/dev/qseecom                   u:object_r:tee_device:s0
57
58# Should only be on userdebug device
59/dev/diag                       u:object_r:diag_device:s0
60/dev/ttydiag2                   u:object_r:diag_device:s0
61/dev/ramdump_.*                 u:object_r:ramdump_device:s0
62
63# MSM camera related
64/dev/media([0-9])+              u:object_r:camera_device:s0
65/dev/jpeg[0-9]*                 u:object_r:camera_device:s0
66
67/dev/bcm2079x-i2c                  u:object_r:nfc_device:s0
68
69# Radio/modem devices
70/dev/esoc-0                     u:object_r:radio_device:s0
71/dev/hsicctl([0-9])+            u:object_r:radio_device:s0
72/dev/subsys_esoc0               u:object_r:radio_device:s0
73
74/dev/sensors                    u:object_r:sensors_device:s0
75
76/dev/socket/adspdsock           u:object_r:adspd_socket:s0
77/dev/socket/sensor_ctl_socket   u:object_r:sensors_socket:s0
78/dev/socket/mpdecision(/.*)?    u:object_r:mpdecision_socket:s0
79
80#Add context for IMS Socket node
81/dev/socket/ims_qmid            u:object_r:ims_socket:s0
82/dev/socket/ims_datad           u:object_r:ims_socket:s0
83
84# Shared memory log
85/dev/smem_log                   u:object_r:shared_log_device:s0
86
87/dev/cpu_dma_latency            u:object_r:power_control_device:s0
88
89# Thermal engine
90/dev/msm_thermal_query          u:object_r:thermal_engine_device:s0
91
92# Qualcomm MSM Audio devices
93/dev/msm_acdb                      u:object_r:audio_device:s0
94/dev/msm_rtac                      u:object_r:audio_device:s0
95
96# Real-time clock
97/dev/rtc0                       u:object_r:rtc:s0
98
99# Qualcomm MSM Interface (QMI) devices
100/dev/socket/qmux_audio(/.*)?           u:object_r:qmuxd_socket:s0
101/dev/socket/qmux_bluetooth(/.*)?       u:object_r:qmuxd_socket:s0
102/dev/socket/qmux_gps(/.*)?             u:object_r:qmuxd_socket:s0
103/dev/socket/qmux_radio(/.*)?           u:object_r:qmuxd_socket:s0
104
105/dev/v4l-subdev[0-9]*           u:object_r:video_device:s0
106
107# Persist firmware filesystem
108/persist(/.*)?                  u:object_r:persist_file:s0
109/persist/data(/.*)?             u:object_r:persist_data_file:s0
110/persist/data/tz(/.*)?          u:object_r:persist_drm_file:s0
111/persist/data/sfs(/.*)?         u:object_r:persist_drm_file:s0
112/persist/sensors(/.*)?          u:object_r:persist_sensors_file:s0
113/persist/mdm(/.*)?              u:object_r:persist_modem_file:s0
114/persist/public/hiddenmenu(/.*)? u:object_r:persist_hiddenmenu_file:s0
115
116#/system binaries
117/system/bin/adspd               u:object_r:adspd_exec:s0
118/system/bin/bdAddrLoader        u:object_r:bluetooth_loader_exec:s0
119/system/bin/bridgemgrd          u:object_r:bridge_exec:s0
120/system/vendor/bin/gsiff_daemon u:object_r:gsiffd_exec:s0
121/system/bin/irsc_util           u:object_r:irsc_util_exec:s0
122/system/bin/ks                  u:object_r:mdm_helper_exec:s0
123/system/bin/mdm_helper          u:object_r:mdm_helper_exec:s0
124/system/bin/mdm_helper_proxy    u:object_r:mdm_helper_exec:s0
125/system/bin/mm-qcamera-daemon   u:object_r:camera_exec:s0
126/system/bin/mpdecision          u:object_r:mpdecision_exec:s0
127/system/bin/netmgrd             u:object_r:netmgrd_exec:s0
128/system/bin/qmuxd               u:object_r:qmux_exec:s0
129/system/bin/qseecomd            u:object_r:tee_exec:s0
130/system/bin/sensors\.qcom       u:object_r:sensors_exec:s0
131/system/bin/subsystem_ramdump   u:object_r:ss_ramdump_exec:s0
132/system/bin/thermal-engine      u:object_r:thermald_exec:s0
133/system/bin/time_daemon         u:object_r:time_exec:s0
134/system/bin/tcmd_mini           u:object_r:tcmd_exec:s0
135/system/bin/ATFWD-daemon        u:object_r:atfwd_exec:s0
136
137# Bluetooth
138/sys/class/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
139
140# Sysfs entry for the RmNet function driver
141/sys/class/android_usb/f_rmnet_smd_sdio/transport  --  u:object_r:sysfs_rmnet:s0
142/sys/devices/virtual/android_usb/android0/f_rmnet_smd_sdio/transport  --  u:object_r:sysfs_rmnet:s0
143
144# Sysfs files used by qmuxd
145/sys/devices/virtual/smdpkt/smdcntl([0-9])+/open_timeout u:object_r:sysfs_smdcntl_open_timeout:s0
146
147# Context for mpdecision
148/sys/module/msm_thermal/core_control/cpus_offlined              u:object_r:sysfs_mpdecision:s0
149/sys/devices/system/cpu/cpu0/rq-stats(/.*)?                     u:object_r:sysfs_rqstats:s0
150/sys/module/cpu_boost/parameters(/.*)?                          u:object_r:sysfs_cpuboost:s0
151
152/sys/bus/platform/drivers/xhci_msm_hsic(/.*)?            u:object_r:sysfs_xhci_msm_hsic:s0
153/sys/devices/msm_hsic_host/host_ready                    u:object_r:sysfs_msm_hsic_host:s0
154
155/sys/devices/cycapsense_prog.1/cycapsense_fw             u:object_r:sysfs_capsense_update:s0
156/sys/devices/mmi_sar_ctrl.[0-9]*/sar_wifi                u:object_r:sysfs_sar_wifi:s0
157
158/system/bin/imsdatadaemon                       u:object_r:ims_exec:s0
159/system/bin/imsqmidaemon                        u:object_r:ims_exec:s0
160