1# Binaries
2/vendor/bin/hw/android\.hardware\.health-service\.zuma                      u:object_r:hal_health_default_exec:s0
3/vendor/bin/hw/android\.hardware\.power\.stats-service\.pixel               u:object_r:hal_power_stats_default_exec:s0
4/vendor/bin/hw/android\.hardware\.secure_element-service\.thales                    u:object_r:hal_secure_element_st54spi_aidl_exec:s0
5/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.goodix  u:object_r:hal_fingerprint_default_exec:s0
6/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint-service\.goodix   u:object_r:hal_fingerprint_default_exec:s0
7/vendor/bin/hw/android\.hardware\.usb-service                               u:object_r:hal_usb_impl_exec:s0
8/vendor/bin/hw/android\.hardware\.usb\.gadget-service                       u:object_r:hal_usb_gadget_impl_exec:s0
9/vendor/bin/hw/android\.hardware\.secure_element-service.uicc               u:object_r:hal_secure_element_uicc_exec:s0
10/vendor/bin/hw/android\.hardware\.qorvo\.uwb\.service                       u:object_r:hal_uwb_vendor_default_exec:s0
11/vendor/bin/hw/android\.hardware\.composer\.hwc3-service\.pixel             u:object_r:hal_graphics_composer_default_exec:s0
12/vendor/bin/hw/google\.hardware\.media\.c2@2\.0-service                     u:object_r:mediacodec_google_exec:s0
13/vendor/bin/dump/dump_wlan\.sh                                              u:object_r:dump_wlan_exec:s0
14/vendor/bin/dump/dump_gsa\.sh                                               u:object_r:dump_gsa_exec:s0
15/vendor/bin/dump/dump_power                                                 u:object_r:dump_power_exec:s0
16/vendor/bin/tcpdump_logger                                                  u:object_r:tcpdump_logger_exec:s0
17/vendor/bin/storageproxyd                                                   u:object_r:tee_exec:s0
18/vendor/bin/trusty_apploader                                                u:object_r:trusty_apploader_exec:s0
19/vendor/bin/trusty_metricsd                                                 u:object_r:trusty_metricsd_exec:s0
20/vendor/bin/chre                                                            u:object_r:chre_exec:s0
21/vendor/bin/init_uwb_calib                                                  u:object_r:vendor_uwb_init_exec:s0
22/vendor/bin/hw/android\.hardware\.security\.keymint-service\.trusty         u:object_r:hal_keymint_default_exec:s0
23/vendor/bin/hw/android\.hardware\.security\.keymint-service\.rust\.trusty         u:object_r:hal_keymint_default_exec:s0
24/vendor/bin/hw/android\.hardware\.security\.secretkeeper\.trusty            u:object_r:hal_secretkeeper_default_exec:s0
25/vendor/bin/ufs_firmware_update\.sh                                         u:object_r:ufs_firmware_update_exec:s0
26/vendor/bin/hw/android\.hardware\.memtrack-service\.pixel                   u:object_r:hal_memtrack_default_exec:s0
27/vendor/bin/hw/disable_contaminant_detection\.sh                            u:object_r:disable-contaminant-detection-sh_exec:s0
28
29# Vendor Firmwares
30/vendor/firmware(/.*)?                                                      u:object_r:vendor_fw_file:s0
31/vendor/lib64/arm\.mali\.platform-V1-ndk\.so                                u:object_r:same_process_hal_file:s0
32/vendor/lib64/arm\.mali\.platform-V2-ndk\.so                                u:object_r:same_process_hal_file:s0
33
34# Gralloc
35/(vendor|system/vendor)/lib(64)?/hw/mapper\.pixel\.so                       u:object_r:same_process_hal_file:s0
36
37# Vendor libraries
38/vendor/lib(64)?/lib_jpg_encoder\.so                                        u:object_r:same_process_hal_file:s0
39/vendor/lib(64)?/libhwjpeg\.so                                              u:object_r:same_process_hal_file:s0
40
41# Vendor
42/data/vendor/bluetooth(/.*)?                                                u:object_r:vendor_bt_data_file:s0
43/data/vendor/uwb(/.*)?                                                      u:object_r:uwb_data_vendor:s0
44/data/vendor/chre(/.*)?                                                     u:object_r:chre_data_file:s0
45/data/vendor/fingerprint(/.*)?                                              u:object_r:fingerprint_vendor_data_file:s0
46
47# persist
48/mnt/vendor/persist/camera(/.*)?                                            u:object_r:persist_camera_file:s0
49/mnt/vendor/persist/display(/.*)?                                           u:object_r:persist_display_file:s0
50/mnt/vendor/persist/battery(/.*)?                                           u:object_r:persist_battery_file:s0
51/mnt/vendor/persist/ss(/.*)?                                                u:object_r:persist_ss_file:s0
52/mnt/vendor/persist/uwb(/.*)?                                               u:object_r:persist_uwb_file:s0
53
54# Devices
55/dev/bbd_pwrstat                                                            u:object_r:power_stats_device:s0
56/dev/edgetpu-soc                                                            u:object_r:edgetpu_device:s0
57/dev/block/sda                                                              u:object_r:sda_block_device:s0
58/dev/block/platform/13200000\.ufs/by-name/persist                           u:object_r:persist_block_device:s0
59/dev/block/platform/13200000\.ufs/by-name/efs                               u:object_r:efs_block_device:s0
60/dev/block/platform/13200000\.ufs/by-name/efs_backup                        u:object_r:efs_block_device:s0
61/dev/block/platform/13200000\.ufs/by-name/modem_userdata                    u:object_r:modem_userdata_block_device:s0
62/dev/block/platform/13200000\.ufs/by-name/modem_[ab]                        u:object_r:modem_block_device:s0
63/dev/block/platform/13200000\.ufs/by-name/abl_[ab]                          u:object_r:custom_ab_block_device:s0
64/dev/block/platform/13200000\.ufs/by-name/bl1_[ab]                          u:object_r:custom_ab_block_device:s0
65/dev/block/platform/13200000\.ufs/by-name/bl2_[ab]                          u:object_r:custom_ab_block_device:s0
66/dev/block/platform/13200000\.ufs/by-name/bl31_[ab]                         u:object_r:custom_ab_block_device:s0
67/dev/block/platform/13200000\.ufs/by-name/boot_[ab]                         u:object_r:boot_block_device:s0
68/dev/block/platform/13200000\.ufs/by-name/init_boot_[ab]                    u:object_r:boot_block_device:s0
69/dev/block/platform/13200000\.ufs/by-name/devinfo                           u:object_r:devinfo_block_device:s0
70/dev/block/platform/13200000\.ufs/by-name/dpm_[ab]                          u:object_r:custom_ab_block_device:s0
71/dev/block/platform/13200000\.ufs/by-name/dram_train_[ab]                   u:object_r:custom_ab_block_device:s0
72
73is_flag_enabled(RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT, `
74    /dev/block/platform/13200000\.ufs/by-name/dtbo_[ab]                     u:object_r:dtbo_block_device:s0
75')
76
77is_flag_disabled(RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT, `
78    /dev/block/platform/13200000\.ufs/by-name/dtbo_[ab]                     u:object_r:custom_ab_block_device:s0
79')
80
81/dev/block/platform/13200000\.ufs/by-name/frp                               u:object_r:frp_block_device:s0
82/dev/block/platform/13200000\.ufs/by-name/gsa_bl1_[ab]                      u:object_r:custom_ab_block_device:s0
83/dev/block/platform/13200000\.ufs/by-name/gsa_[ab]                          u:object_r:custom_ab_block_device:s0
84/dev/block/platform/13200000\.ufs/by-name/gcf_[ab]                          u:object_r:custom_ab_block_device:s0
85/dev/block/platform/13200000\.ufs/by-name/ldfw_[ab]                         u:object_r:custom_ab_block_device:s0
86/dev/block/platform/13200000\.ufs/by-name/metadata                          u:object_r:metadata_block_device:s0
87/dev/block/platform/13200000\.ufs/by-name/mfg_data                          u:object_r:mfg_data_block_device:s0
88/dev/block/platform/13200000\.ufs/by-name/misc                              u:object_r:misc_block_device:s0
89/dev/block/platform/13200000\.ufs/by-name/pbl_[ab]                          u:object_r:custom_ab_block_device:s0
90/dev/block/platform/13200000\.ufs/by-name/pvmfw_[ab]                        u:object_r:custom_ab_block_device:s0
91/dev/block/platform/13200000\.ufs/by-name/super                             u:object_r:super_block_device:s0
92/dev/block/platform/13200000\.ufs/by-name/tzsw_[ab]                         u:object_r:custom_ab_block_device:s0
93/dev/block/platform/13200000\.ufs/by-name/trusty_persist                    u:object_r:tee_persist_block_device:s0
94/dev/block/platform/13200000\.ufs/by-name/userdata                          u:object_r:userdata_block_device:s0
95/dev/block/platform/13200000\.ufs/by-name/vbmeta_[ab]                       u:object_r:custom_ab_block_device:s0
96/dev/block/platform/13200000\.ufs/by-name/vbmeta_system_[ab]                u:object_r:custom_ab_block_device:s0
97/dev/block/platform/13200000\.ufs/by-name/vbmeta_vendor_[ab]                u:object_r:custom_ab_block_device:s0
98/dev/block/platform/13200000\.ufs/by-name/vendor_boot_[ab]                  u:object_r:custom_ab_block_device:s0
99/dev/block/platform/13200000\.ufs/by-name/vendor_kernel_boot_[ab]           u:object_r:custom_ab_block_device:s0
100/dev/block/platform/13200000\.ufs/by-name/ufs_internal                      u:object_r:ufs_internal_block_device:s0
101/dev/gxp                                                                    u:object_r:gxp_device:s0
102/dev/mali0                                                                  u:object_r:gpu_device:s0
103/dev/goodix_fp                                                              u:object_r:fingerprint_device:s0
104/dev/logbuffer_tcpm                                                         u:object_r:logbuffer_device:s0
105/dev/logbuffer_usbpd                                                        u:object_r:logbuffer_device:s0
106/dev/logbuffer_ssoc                                                         u:object_r:logbuffer_device:s0
107/dev/logbuffer_wireless                                                     u:object_r:logbuffer_device:s0
108/dev/logbuffer_ttf                                                          u:object_r:logbuffer_device:s0
109/dev/logbuffer_maxq                                                         u:object_r:logbuffer_device:s0
110/dev/logbuffer_rtx                                                          u:object_r:logbuffer_device:s0
111/dev/logbuffer_maxfg                                                        u:object_r:logbuffer_device:s0
112/dev/logbuffer_maxfg_base                                                   u:object_r:logbuffer_device:s0
113/dev/logbuffer_maxfg_flip                                                   u:object_r:logbuffer_device:s0
114/dev/logbuffer_pca9468_tcpm                                                 u:object_r:logbuffer_device:s0
115/dev/logbuffer_pca9468                                                      u:object_r:logbuffer_device:s0
116/dev/logbuffer_cpm                                                          u:object_r:logbuffer_device:s0
117/dev/logbuffer_maxfg_monitor                                                u:object_r:logbuffer_device:s0
118/dev/logbuffer_maxfg_base_monitor                                           u:object_r:logbuffer_device:s0
119/dev/logbuffer_maxfg_flip_monitor                                           u:object_r:logbuffer_device:s0
120/dev/logbuffer_wc68                                                         u:object_r:logbuffer_device:s0
121/dev/logbuffer_ln8411                                                       u:object_r:logbuffer_device:s0
122/dev/logbuffer_bd                                                           u:object_r:logbuffer_device:s0
123/dev/logbuffer_cpif                                                         u:object_r:logbuffer_device:s0
124/dev/lwis-act-cornerfolk                                                    u:object_r:lwis_device:s0
125/dev/lwis-act-cornerfolk-dokkaebi                                           u:object_r:lwis_device:s0
126/dev/lwis-act-cornerfolk-nautilus                                           u:object_r:lwis_device:s0
127/dev/lwis-act-cornerfolk-oksoko                                             u:object_r:lwis_device:s0
128/dev/lwis-act-cornerfolk-oksoko-nautilus                                    u:object_r:lwis_device:s0
129/dev/lwis-act-cornerfolk-sandworm                                           u:object_r:lwis_device:s0
130/dev/lwis-act-jotnar                                                        u:object_r:lwis_device:s0
131/dev/lwis-act-nessie                                                        u:object_r:lwis_device:s0
132/dev/lwis-act-slenderman                                                    u:object_r:lwis_device:s0
133/dev/lwis-act-slenderman-sandworm                                           u:object_r:lwis_device:s0
134/dev/lwis-be-core                                                           u:object_r:lwis_device:s0
135/dev/lwis-csi                                                               u:object_r:lwis_device:s0
136/dev/lwis-dpm                                                               u:object_r:lwis_device:s0
137/dev/lwis-eeprom-djinn                                                      u:object_r:lwis_device:s0
138/dev/lwis-eeprom-djinn-nautilus                                             u:object_r:lwis_device:s0
139/dev/lwis-eeprom-gargoyle                                                   u:object_r:lwis_device:s0
140/dev/lwis-eeprom-humbaba                                                    u:object_r:lwis_device:s0
141/dev/lwis-eeprom-jotnar                                                     u:object_r:lwis_device:s0
142/dev/lwis-eeprom-nessie                                                     u:object_r:lwis_device:s0
143/dev/lwis-eeprom-smaug-buraq                                                u:object_r:lwis_device:s0
144/dev/lwis-eeprom-smaug-dokkaebi                                             u:object_r:lwis_device:s0
145/dev/lwis-eeprom-smaug-imentet                                              u:object_r:lwis_device:s0
146/dev/lwis-eeprom-smaug-leshen                                               u:object_r:lwis_device:s0
147/dev/lwis-eeprom-smaug-leshen-uw                                            u:object_r:lwis_device:s0
148/dev/lwis-eeprom-smaug-oksoko                                               u:object_r:lwis_device:s0
149/dev/lwis-eeprom-smaug-oksoko-nautilus                                      u:object_r:lwis_device:s0
150/dev/lwis-eeprom-smaug-sandworm                                             u:object_r:lwis_device:s0
151/dev/lwis-eeprom-smaug-svarog                                               u:object_r:lwis_device:s0
152/dev/lwis-eeprom-smaug-svarog-outer                                         u:object_r:lwis_device:s0
153/dev/lwis-flash-lm3644                                                      u:object_r:lwis_device:s0
154/dev/lwis-g3aa                                                              u:object_r:lwis_device:s0
155/dev/lwis-gdc0                                                              u:object_r:lwis_device:s0
156/dev/lwis-gdc1                                                              u:object_r:lwis_device:s0
157/dev/lwis-gse                                                               u:object_r:lwis_device:s0
158/dev/lwis-gtnr-align                                                        u:object_r:lwis_device:s0
159/dev/lwis-gtnr-merge                                                        u:object_r:lwis_device:s0
160/dev/lwis-ipp                                                               u:object_r:lwis_device:s0
161/dev/lwis-itp                                                               u:object_r:lwis_device:s0
162/dev/lwis-isp-fe                                                            u:object_r:lwis_device:s0
163/dev/lwis-lme                                                               u:object_r:lwis_device:s0
164/dev/lwis-mcsc                                                              u:object_r:lwis_device:s0
165/dev/lwis-ois-djinn                                                         u:object_r:lwis_device:s0
166/dev/lwis-ois-djinn-nautilus                                                u:object_r:lwis_device:s0
167/dev/lwis-ois-gargoyle                                                      u:object_r:lwis_device:s0
168/dev/lwis-ois-humbaba                                                       u:object_r:lwis_device:s0
169/dev/lwis-ois-jotnar                                                        u:object_r:lwis_device:s0
170/dev/lwis-ois-nessie                                                        u:object_r:lwis_device:s0
171/dev/lwis-pdp                                                               u:object_r:lwis_device:s0
172/dev/lwis-scsc                                                              u:object_r:lwis_device:s0
173/dev/lwis-sensor-boitata                                                    u:object_r:lwis_device:s0
174/dev/lwis-sensor-boitata-nautilus                                           u:object_r:lwis_device:s0
175/dev/lwis-sensor-buraq                                                      u:object_r:lwis_device:s0
176/dev/lwis-sensor-dokkaebi                                                   u:object_r:lwis_device:s0
177/dev/lwis-sensor-dokkaebi-nautius                                           u:object_r:lwis_device:s0
178/dev/lwis-sensor-dokkaebi-tele                                              u:object_r:lwis_device:s0
179/dev/lwis-sensor-imentet                                                    u:object_r:lwis_device:s0
180/dev/lwis-sensor-kraken                                                     u:object_r:lwis_device:s0
181/dev/lwis-sensor-lamassu                                                    u:object_r:lwis_device:s0
182/dev/lwis-sensor-leshen                                                     u:object_r:lwis_device:s0
183/dev/lwis-sensor-leshen-uw                                                  u:object_r:lwis_device:s0
184/dev/lwis-sensor-nagual                                                     u:object_r:lwis_device:s0
185/dev/lwis-sensor-oksoko                                                     u:object_r:lwis_device:s0
186/dev/lwis-sensor-oksoko-nautilus                                            u:object_r:lwis_device:s0
187/dev/lwis-sensor-sandworm                                                   u:object_r:lwis_device:s0
188/dev/lwis-sensor-svarog                                                     u:object_r:lwis_device:s0
189/dev/lwis-sensor-svarog-outer                                               u:object_r:lwis_device:s0
190/dev/lwis-slc                                                               u:object_r:lwis_device:s0
191/dev/lwis-top                                                               u:object_r:lwis_device:s0
192/dev/lwis-tof-tarasque                                                      u:object_r:lwis_device:s0
193# Although ispolin_ranging is not a real lwis_device but we treat it as an abstract lwis_device.
194# Binding it here with lwis-tof-tarasque for a better maintenance instead of creating another device type.
195/dev/ispolin_ranging                                                        u:object_r:lwis_device:s0
196/dev/lwis-votf                                                              u:object_r:lwis_device:s0
197/dev/st54spi                                                                u:object_r:st54spi_device:s0
198/dev/trusty-ipc-dev0                                                        u:object_r:tee_device:s0
199/dev/dma_heap/sensor_direct_heap                                            u:object_r:sensor_direct_heap_device:s0
200/dev/dma_heap/faceauth_dsp-secure                                           u:object_r:faceauth_heap_device:s0
201/dev/dma_heap/faceauth_tpu-secure                                           u:object_r:faceauth_heap_device:s0
202/dev/dma_heap/faimg-secure                                                  u:object_r:faceauth_heap_device:s0
203/dev/dma_heap/famodel-secure                                                u:object_r:faceauth_heap_device:s0
204/dev/dma_heap/faprev-secure                                                 u:object_r:faceauth_heap_device:s0
205/dev/dma_heap/farawimg-secure                                               u:object_r:faceauth_heap_device:s0
206/dev/dma_heap/framebuffer-secure                                            u:object_r:framebuffer_secure_heap_device:s0
207/dev/dma_heap/vframe-secure                                                 u:object_r:dmabuf_system_secure_heap_device:s0
208/dev/dma_heap/vscaler-secure                                                u:object_r:vscaler_secure_heap_device:s0
209/dev/dma_heap/vstream-secure                                                u:object_r:dmabuf_system_secure_heap_device:s0
210/dev/dma_heap/gcma_camera                                                   u:object_r:gcma_camera_heap_device:s0
211/dev/dma_heap/gcma_camera-uncached                                          u:object_r:gcma_camera_heap_device:s0
212/dev/uci                                                                    u:object_r:uci_device:s0
213/dev/video12                                                                u:object_r:hw_jpg_device:s0
214