1# Devices
2#factory reset protection partition
3/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/frp           u:object_r:frp_block_device:s0
4/dev/diag                      u:object_r:diag_device:s0
5/dev/dpl_ctrl                  u:object_r:dpl_device:s0
6/dev/jpeg[0-9]+                u:object_r:video_device:s0
7
8# GPU device
9/dev/kgsl-3d0                  u:object_r:gpu_device:s0
10/dev/kgsl                      u:object_r:gpu_device:s0
11
12/dev/media([0-9])+             u:object_r:video_device:s0
13/dev/msm_thermal_query         u:object_r:thermal_engine_device:s0
14/dev/pn54x                     u:object_r:nfc_device:s0
15/dev/qseecom                   u:object_r:tee_device:s0
16
17# Userdebug only
18/dev/ramdump_.*                u:object_r:ramdump_device:s0
19
20/dev/rmnet_ctrl[0-9]*          u:object_r:rmnet_device:s0
21
22# shared memory drivers
23/dev/smdcntl[0-9]              u:object_r:radio_device:s0
24
25# shared mem log
26/dev/smem_log                  u:object_r:shared_log_device:s0
27
28/dev/subsys_modem              u:object_r:subsys_modem_device:s0
29/dev/ttyHS0                    u:object_r:hci_attach_dev:s0
30/dev/ttyHSL0                   u:object_r:console_device:s0
31/dev/v4l-subdev[0-9]+          u:object_r:video_device:s0
32
33# Sensor Hub kernel driver
34/dev/spich                                      u:object_r:sensors_device:s0
35/dev/nanohub                                    u:object_r:sensors_device:s0
36/dev/nanohub_comms                              u:object_r:sensors_device:s0
37
38/dev/socket/cnd                                 u:object_r:cnd_socket:s0
39/dev/socket/ims_datad                           u:object_r:ims_socket:s0
40/dev/socket/ims_qmid                            u:object_r:ims_socket:s0
41/dev/socket/ims_rtpd                            u:object_r:ims_socket:s0
42/dev/socket/msm_irqbalance                      u:object_r:irqbalance_socket:s0
43/dev/socket/pps                                 u:object_r:postprocd_socket:s0
44/dev/socket/thermal-send-client                 u:object_r:thermald_socket:s0
45/dev/socket/thermal-recv-client                 u:object_r:thermald_socket:s0
46/dev/socket/thermal-recv-passive-client         u:object_r:thermald_socket:s0
47
48#media kernel driver
49/dev/msm_audio_cal                     u:object_r:audio_device:s0
50/dev/msm_rtac                          u:object_r:audio_device:s0
51
52# Qualcomm MSM Interface (QMI) devices
53/dev/socket/qmux_audio(/.*)?           u:object_r:qmuxd_socket:s0
54/dev/socket/qmux_gps(/.*)?             u:object_r:qmuxd_socket:s0
55/dev/socket/qmux_radio(/.*)?           u:object_r:qmuxd_socket:s0
56
57/dev/block/mmcblk0                                                  u:object_r:root_block_device:s0
58/dev/block/mmcblk0rpmb                                              u:object_r:drm_block_device:s0
59/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/boot             u:object_r:boot_block_device:s0
60/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/cache            u:object_r:cache_block_device:s0
61/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/fsc              u:object_r:modem_block_device:s0
62/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/fsg              u:object_r:modem_block_device:s0
63/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/metadata         u:object_r:metadata_block_device:s0
64/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/misc             u:object_r:misc_block_device:s0
65/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/modem            u:object_r:modem_block_device:s0
66/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/modemst1         u:object_r:modem_block_device:s0
67/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/modemst2         u:object_r:modem_block_device:s0
68/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/persist          u:object_r:persist_block_device:s0
69/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/recovery         u:object_r:recovery_block_device:s0
70/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/ssd              u:object_r:ssd_block_device:s0
71/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/userdata         u:object_r:userdata_block_device:s0
72/dev/block/zram0                                                    u:object_r:swap_block_device:s0
73
74/persist(/.*)?                                                      u:object_r:persist_file:s0
75/persist/audio(/.*)?                                                u:object_r:persist_audio_file:s0
76/persist/data(/.*)?                                                 u:object_r:persist_data_file:s0
77/persist/data/sfs(/.*)?                                             u:object_r:persist_drm_file:s0
78/persist/data/tz(/.*)?                                              u:object_r:persist_drm_file:s0
79/persist/sensors(/.*)?                                              u:object_r:persist_sensors_file:s0
80
81/sys/bus/msm_subsys(/.*)?                                                                                  u:object_r:sysfs_msm_subsys:s0
82/sys/devices/bt_bcm4358\.[0-9]+/rfkill/rfkill0/state                                                           u:object_r:sysfs_bluetooth_writable:s0
83/sys/devices/soc\.0/\w+\.qcom,\w+/subsys[0-9]/restart_level                                                u:object_r:sysfs_msm_subsys_toggle:s0
84/sys/devices/soc\.0/fd900000\.qcom,mdss_mdp/qcom,mdss_fb_primary\.[0-9]+/leds(/.*)?                        u:object_r:sysfs_led:s0
85/sys/devices/soc\.0/f9200000\.ssusb(/.*)?                           u:object_r:sysfs_usb:s0
86/sys/devices/soc\.0/qcom,bcl\.[0-9]+(/.*)?                                                                 u:object_r:sysfs_thermal:s0
87/sys/devices/soc\.0/qcom,cpubw\.[0-9]+/devfreq/qcom,cpubw\.[0-9]+(/.*)?                                    u:object_r:sysfs_devices_system_cpu:s0
88/sys/devices/soc\.0/qcom,gpubw\.[0-9]+/devfreq/qcom,gpubw\.[0-9]+(/.*)?                                    u:object_r:sysfs_thermal:s0
89/sys/devices/soc\.0/qpnp-smbcharger-[^/]*/power_supply/battery/system_temp_level                           u:object_r:sysfs_thermal:s0
90/sys/devices/soc\.0/qpnp-smbcharger-[0-9a-f]+/power_supply/battery/capacity                                u:object_r:sysfs_batteryinfo:s0
91/sys/devices/soc\.0/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/max_gpuclk                                        u:object_r:sysfs_thermal:s0
92/sys/devices/soc\.0/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/dispatch/inflight                                 u:object_r:sysfs_gpu_tuning:s0
93/sys/devices/soc\.0/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/dispatch/inflight_low_latency                     u:object_r:sysfs_gpu_tuning:s0
94
95# Sysfs files used by fingerprintd
96/sys/devices/soc\.0/fpc1020\.[0-9]+(/.*)?                           u:object_r:sysfs_fingerprintd:s0
97
98
99# Sysfs files used by surfaceflinger
100/sys/devices/virtual/graphics/fb1/hpd          --                   u:object_r:sysfs_surfaceflinger:s0
101/sys/devices/virtual/graphics/fb1/vendor_name  --                   u:object_r:sysfs_surfaceflinger:s0
102/sys/devices/virtual/graphics/fb1/product_description       --      u:object_r:sysfs_surfaceflinger:s0
103
104# Sysfs files used by qmuxd
105/sys/devices/virtual/smdpkt/smdcntl([0-9])+/open_timeout                                                   u:object_r:sysfs_smdcntl_open_timeout:s0
106/sys/devices/virtual/thermal(/.*)?                                                                         u:object_r:sysfs_thermal:s0
107
108/sys/kernel/range/enable_ps_sensor                                  u:object_r:sysfs_prox_snsr:s0
109/sys/module/cpu_boost(/.*)?                                         u:object_r:sysfs_devices_system_cpu:s0
110/sys/module/lpm_levels/parameters/sleep_disabled                    u:object_r:sysfs_power_management:s0
111/sys/module/msm_performance(/.*)?                                   u:object_r:sysfs_performance:s0
112/sys/module/msm_thermal(/.*)?                                       u:object_r:sysfs_thermal:s0
113
114
115# wifi mac address
116/sys/devices/virtual/net/wlan0/address                   u:object_r:sysfs_mac_address:s0
117
118# System files
119/vendor/bin/ATFWD-daemon                 u:object_r:atfwd_exec:s0
120/vendor/bin/cnd                          u:object_r:cnd_exec:s0
121/vendor/bin/imscmservice                 u:object_r:ims_exec:s0
122/vendor/bin/imsdatadaemon                u:object_r:ims_exec:s0
123/vendor/bin/imsqmidaemon                 u:object_r:ims_exec:s0
124/vendor/bin/ims_rtp_daemon               u:object_r:ims_exec:s0
125/system/bin/init\.angler\.power\.sh      u:object_r:init-power-sh_exec:s0
126/system/bin/init\.angler\.qseecomd\.sh   u:object_r:init-angler-qseecomd-sh_exec:s0
127/system/bin/init\.mcfg\.sh               u:object_r:init-mcfg-sh_exec:s0
128/vendor/bin/irsc_util                    u:object_r:irsc_util_exec:s0
129/vendor/bin/loc_launcher                 u:object_r:location_exec:s0
130/system/bin/location-mq                  u:object_r:location_exec:s0
131/system/bin/lowi-server                  u:object_r:location_exec:s0
132/system/bin/mm-pp-daemon                 u:object_r:postprocd_exec:s0
133/vendor/bin/mm-qcamera-daemon            u:object_r:camera_exec:s0
134/vendor/bin/msm_irqbalance               u:object_r:irqbalance_exec:s0
135/vendor/bin/netmgrd                      u:object_r:netmgrd_exec:s0
136/vendor/bin/perfd                        u:object_r:perfd_exec:s0
137/vendor/bin/pm-proxy                     u:object_r:per_proxy_exec:s0
138/vendor/bin/pm-service                   u:object_r:per_mgr_exec:s0
139/vendor/bin/qmuxd                        u:object_r:qmux_exec:s0
140/vendor/bin/qseecomd                     u:object_r:tee_exec:s0
141/vendor/bin/rmt_storage                  u:object_r:rmt_exec:s0
142/system/bin/ssr_setup                    u:object_r:ssr_setup_exec:s0
143/system/bin/subsystem_ramdump            u:object_r:ssr_exec:s0
144/vendor/bin/thermal-engine               u:object_r:thermald_exec:s0
145/vendor/bin/time_daemon                  u:object_r:time_exec:s0
146/system/bin/nanoapp_cmd                  u:object_r:nanoapp_cmd_exec:s0
147/vendor/bin/diag_test_server             u:object_r:diag_exec:s0
148/vendor/bin/InputEventFind               u:object_r:inputeventfind_exec:s0
149/vendor/bin/oem_qmi_server               u:object_r:oem_qmi_server_exec:s0
150/vendor/bin/qti                          u:object_r:qti_exec:s0
151/vendor/bin/sensortool\.angler           u:object_r:sensortool_exec:s0
152/vendor/bin/slim_daemon                  u:object_r:location_exec:s0
153
154# Data files
155/data/diag_logs(/.*)?            u:object_r:diag_logs:s0
156/data/fpc(/.*)?                  u:object_r:fingerprintd_data_file:s0
157/data/misc/perfd(/.*)?           u:object_r:perfd_data_file:s0
158/data/misc/radio(/.*)?           u:object_r:radio_data_file:s0
159/data/nfc(/.*)?                  u:object_r:nfc_data_file:s0
160/data/ramdump(/.*)?              u:object_r:ssr_data_file:s0
161/data/system/perfd(/.*)?         u:object_r:perfd_data_file:s0
162/data/time(/.*)?                 u:object_r:time_data_file:s0
163/data/misc/display(/.*)?         u:object_r:display_data_file:s0
164/data/connectivity(/.*)?         u:object_r:cnd_data_file:s0
165
166#wifi sar
167/sys/module/wifi_sar/parameters/wifi_tx_power_limit                u:object_r:sysfs_wifi_sar:s0
168
169#amoled dynamic mipi clk rate
170/sys/devices/virtual/graphics/fb0/dynamic_dsitiming                   u:object_r:sysfs_lcd_mipi:s0
171
172# Sysfs files used by nanoapp_cmd
173/sys/devices/virtual/nanohub/nanohub(/.*)? u:object_r:sysfs_nanoapp_cmd:s0
174
175