# Binaries
/vendor/bin/hw/android\.hardware\.health-service\.zuma                      u:object_r:hal_health_default_exec:s0
/vendor/bin/hw/android\.hardware\.power\.stats-service\.pixel               u:object_r:hal_power_stats_default_exec:s0
/vendor/bin/hw/android\.hardware\.secure_element-service\.thales                    u:object_r:hal_secure_element_st54spi_aidl_exec:s0
/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.goodix  u:object_r:hal_fingerprint_default_exec:s0
/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint-service\.goodix   u:object_r:hal_fingerprint_default_exec:s0
/vendor/bin/hw/android\.hardware\.usb-service                               u:object_r:hal_usb_impl_exec:s0
/vendor/bin/hw/android\.hardware\.usb\.gadget-service                       u:object_r:hal_usb_gadget_impl_exec:s0
/vendor/bin/hw/android\.hardware\.secure_element-service.uicc               u:object_r:hal_secure_element_uicc_exec:s0
/vendor/bin/hw/android\.hardware\.qorvo\.uwb\.service                       u:object_r:hal_uwb_vendor_default_exec:s0
/vendor/bin/hw/android\.hardware\.qorvo\.uwb-service                        u:object_r:hal_uwb_default_exec:s0
/vendor/bin/hw/android\.hardware\.composer\.hwc3-service\.pixel             u:object_r:hal_graphics_composer_default_exec:s0
/vendor/bin/hw/google\.hardware\.media\.c2@2\.0-service                     u:object_r:mediacodec_google_exec:s0
/vendor/bin/hw/vendor\.dolby\.media\.c2@1\.0-service                        u:object_r:mediacodec_exec:s0
/vendor/bin/dump/dump_wlan\.sh                                              u:object_r:dump_wlan_exec:s0
/vendor/bin/dump/dump_gsa\.sh                                               u:object_r:dump_gsa_exec:s0
/vendor/bin/dump/dump_power                                                 u:object_r:dump_power_exec:s0
/vendor/bin/tcpdump_logger                                                  u:object_r:tcpdump_logger_exec:s0
/vendor/bin/storageproxyd                                                   u:object_r:tee_exec:s0
/vendor/bin/trusty_apploader                                                u:object_r:trusty_apploader_exec:s0
/vendor/bin/trusty_metricsd                                                 u:object_r:trusty_metricsd_exec:s0
/vendor/bin/chre                                                            u:object_r:chre_exec:s0
/vendor/bin/init_uwb_calib                                                  u:object_r:vendor_uwb_init_exec:s0
/vendor/bin/hw/android\.hardware\.security\.keymint-service\.trusty         u:object_r:hal_keymint_default_exec:s0
/vendor/bin/hw/android\.hardware\.security\.keymint-service\.rust\.trusty         u:object_r:hal_keymint_default_exec:s0
/vendor/bin/hw/android\.hardware\.security\.secretkeeper\.trusty            u:object_r:hal_secretkeeper_default_exec:s0
/vendor/bin/hw/android\.hardware\.memtrack-service\.pixel                   u:object_r:hal_memtrack_default_exec:s0
/vendor/bin/hw/disable_contaminant_detection\.sh                            u:object_r:disable-contaminant-detection-sh_exec:s0

# Vendor Firmwares
/vendor/firmware(/.*)?                                                      u:object_r:vendor_fw_file:s0
/vendor/lib64/arm\.mali\.platform-V1-ndk\.so                                u:object_r:same_process_hal_file:s0
/vendor/lib64/arm\.mali\.platform-V2-ndk\.so                                u:object_r:same_process_hal_file:s0

# Gralloc
/(vendor|system/vendor)/lib(64)?/hw/mapper\.pixel\.so                       u:object_r:same_process_hal_file:s0

# Vendor libraries
/vendor/lib(64)?/lib_jpg_encoder\.so                                        u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libhwjpeg\.so                                              u:object_r:same_process_hal_file:s0

# Vendor
/data/vendor/bluetooth(/.*)?                                                u:object_r:vendor_bt_data_file:s0
/data/vendor/uwb(/.*)?                                                      u:object_r:uwb_data_vendor:s0
/data/vendor/chre(/.*)?                                                     u:object_r:chre_data_file:s0
/data/vendor/fingerprint(/.*)?                                              u:object_r:fingerprint_vendor_data_file:s0

# persist
/mnt/vendor/persist/camera(/.*)?                                            u:object_r:persist_camera_file:s0
/mnt/vendor/persist/display(/.*)?                                           u:object_r:persist_display_file:s0
/mnt/vendor/persist/battery(/.*)?                                           u:object_r:persist_battery_file:s0
/mnt/vendor/persist/ss(/.*)?                                                u:object_r:persist_ss_file:s0
/mnt/vendor/persist/uwb(/.*)?                                               u:object_r:persist_uwb_file:s0

# Devices
/dev/bbd_pwrstat                                                            u:object_r:power_stats_device:s0
/dev/edgetpu-soc                                                            u:object_r:edgetpu_device:s0
/dev/block/sda                                                              u:object_r:sda_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/persist                           u:object_r:persist_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/efs                               u:object_r:efs_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/efs_backup                        u:object_r:efs_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/modem_userdata                    u:object_r:modem_userdata_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/modem_[ab]                        u:object_r:modem_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/abl_[ab]                          u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/bl1_[ab]                          u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/bl2_[ab]                          u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/bl31_[ab]                         u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/boot_[ab]                         u:object_r:boot_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/init_boot_[ab]                    u:object_r:boot_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/devinfo                           u:object_r:devinfo_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/dpm_[ab]                          u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/dram_train_[ab]                   u:object_r:custom_ab_block_device:s0

is_flag_enabled(RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT, `
    /dev/block/platform/13200000\.ufs/by-name/dtbo_[ab]                     u:object_r:dtbo_block_device:s0
')

is_flag_disabled(RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT, `
    /dev/block/platform/13200000\.ufs/by-name/dtbo_[ab]                     u:object_r:custom_ab_block_device:s0
')

/dev/block/platform/13200000\.ufs/by-name/frp                               u:object_r:frp_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/gsa_bl1_[ab]                      u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/gsa_[ab]                          u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/gcf_[ab]                          u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/ldfw_[ab]                         u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/metadata                          u:object_r:metadata_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/mfg_data                          u:object_r:mfg_data_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/misc                              u:object_r:misc_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/pbl_[ab]                          u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/pvmfw_[ab]                        u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/super                             u:object_r:super_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/tzsw_[ab]                         u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/trusty_persist                    u:object_r:tee_persist_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/userdata                          u:object_r:userdata_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/vbmeta_[ab]                       u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/vbmeta_system_[ab]                u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/vbmeta_vendor_[ab]                u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/vendor_boot_[ab]                  u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/vendor_kernel_boot_[ab]           u:object_r:custom_ab_block_device:s0
/dev/block/platform/13200000\.ufs/by-name/ufs_internal                      u:object_r:ufs_internal_block_device:s0
/dev/gxp                                                                    u:object_r:gxp_device:s0
/dev/mali0                                                                  u:object_r:gpu_device:s0
/dev/goodix_fp                                                              u:object_r:fingerprint_device:s0
/dev/fth_fd                                                                 u:object_r:fingerprint_device:s0
/dev/logbuffer_tcpm                                                         u:object_r:logbuffer_device:s0
/dev/logbuffer_usbpd                                                        u:object_r:logbuffer_device:s0
/dev/logbuffer_ssoc                                                         u:object_r:logbuffer_device:s0
/dev/logbuffer_wireless                                                     u:object_r:logbuffer_device:s0
/dev/logbuffer_ttf                                                          u:object_r:logbuffer_device:s0
/dev/logbuffer_maxq                                                         u:object_r:logbuffer_device:s0
/dev/logbuffer_rtx                                                          u:object_r:logbuffer_device:s0
/dev/logbuffer_maxfg                                                        u:object_r:logbuffer_device:s0
/dev/logbuffer_maxfg_base                                                   u:object_r:logbuffer_device:s0
/dev/logbuffer_maxfg_flip                                                   u:object_r:logbuffer_device:s0
/dev/logbuffer_pca9468_tcpm                                                 u:object_r:logbuffer_device:s0
/dev/logbuffer_pca9468                                                      u:object_r:logbuffer_device:s0
/dev/logbuffer_cpm                                                          u:object_r:logbuffer_device:s0
/dev/logbuffer_maxfg_monitor                                                u:object_r:logbuffer_device:s0
/dev/logbuffer_maxfg_base_monitor                                           u:object_r:logbuffer_device:s0
/dev/logbuffer_maxfg_flip_monitor                                           u:object_r:logbuffer_device:s0
/dev/logbuffer_wc68                                                         u:object_r:logbuffer_device:s0
/dev/logbuffer_ln8411                                                       u:object_r:logbuffer_device:s0
/dev/logbuffer_bd                                                           u:object_r:logbuffer_device:s0
/dev/logbuffer_cpif                                                         u:object_r:logbuffer_device:s0
/dev/lwis-act-cornerfolk                                                    u:object_r:lwis_device:s0
/dev/lwis-act-cornerfolk-dokkaebi                                           u:object_r:lwis_device:s0
/dev/lwis-act-cornerfolk-nautilus                                           u:object_r:lwis_device:s0
/dev/lwis-act-cornerfolk-oksoko                                             u:object_r:lwis_device:s0
/dev/lwis-act-cornerfolk-oksoko-nautilus                                    u:object_r:lwis_device:s0
/dev/lwis-act-cornerfolk-sandworm                                           u:object_r:lwis_device:s0
/dev/lwis-act-jotnar                                                        u:object_r:lwis_device:s0
/dev/lwis-act-nessie                                                        u:object_r:lwis_device:s0
/dev/lwis-act-slenderman                                                    u:object_r:lwis_device:s0
/dev/lwis-act-slenderman-sandworm                                           u:object_r:lwis_device:s0
/dev/lwis-be-core                                                           u:object_r:lwis_device:s0
/dev/lwis-csi                                                               u:object_r:lwis_device:s0
/dev/lwis-dpm                                                               u:object_r:lwis_device:s0
/dev/lwis-eeprom-djinn                                                      u:object_r:lwis_device:s0
/dev/lwis-eeprom-djinn-nautilus                                             u:object_r:lwis_device:s0
/dev/lwis-eeprom-gargoyle                                                   u:object_r:lwis_device:s0
/dev/lwis-eeprom-humbaba                                                    u:object_r:lwis_device:s0
/dev/lwis-eeprom-jotnar                                                     u:object_r:lwis_device:s0
/dev/lwis-eeprom-nessie                                                     u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-buraq                                                u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-dokkaebi                                             u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-imentet                                              u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-leshen                                               u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-leshen-uw                                            u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-oksoko                                               u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-oksoko-nautilus                                      u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-sandworm                                             u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-svarog                                               u:object_r:lwis_device:s0
/dev/lwis-eeprom-smaug-svarog-outer                                         u:object_r:lwis_device:s0
/dev/lwis-flash-lm3644                                                      u:object_r:lwis_device:s0
/dev/lwis-g3aa                                                              u:object_r:lwis_device:s0
/dev/lwis-gdc0                                                              u:object_r:lwis_device:s0
/dev/lwis-gdc1                                                              u:object_r:lwis_device:s0
/dev/lwis-gse                                                               u:object_r:lwis_device:s0
/dev/lwis-gtnr-align                                                        u:object_r:lwis_device:s0
/dev/lwis-gtnr-merge                                                        u:object_r:lwis_device:s0
/dev/lwis-ipp                                                               u:object_r:lwis_device:s0
/dev/lwis-itp                                                               u:object_r:lwis_device:s0
/dev/lwis-isp-fe                                                            u:object_r:lwis_device:s0
/dev/lwis-lme                                                               u:object_r:lwis_device:s0
/dev/lwis-mcsc                                                              u:object_r:lwis_device:s0
/dev/lwis-ois-djinn                                                         u:object_r:lwis_device:s0
/dev/lwis-ois-djinn-nautilus                                                u:object_r:lwis_device:s0
/dev/lwis-ois-gargoyle                                                      u:object_r:lwis_device:s0
/dev/lwis-ois-humbaba                                                       u:object_r:lwis_device:s0
/dev/lwis-ois-jotnar                                                        u:object_r:lwis_device:s0
/dev/lwis-ois-nessie                                                        u:object_r:lwis_device:s0
/dev/lwis-pdp                                                               u:object_r:lwis_device:s0
/dev/lwis-scsc                                                              u:object_r:lwis_device:s0
/dev/lwis-sensor-boitata                                                    u:object_r:lwis_device:s0
/dev/lwis-sensor-boitata-nautilus                                           u:object_r:lwis_device:s0
/dev/lwis-sensor-buraq                                                      u:object_r:lwis_device:s0
/dev/lwis-sensor-dokkaebi                                                   u:object_r:lwis_device:s0
/dev/lwis-sensor-dokkaebi-nautius                                           u:object_r:lwis_device:s0
/dev/lwis-sensor-dokkaebi-tele                                              u:object_r:lwis_device:s0
/dev/lwis-sensor-imentet                                                    u:object_r:lwis_device:s0
/dev/lwis-sensor-kraken                                                     u:object_r:lwis_device:s0
/dev/lwis-sensor-lamassu                                                    u:object_r:lwis_device:s0
/dev/lwis-sensor-leshen                                                     u:object_r:lwis_device:s0
/dev/lwis-sensor-leshen-uw                                                  u:object_r:lwis_device:s0
/dev/lwis-sensor-nagual                                                     u:object_r:lwis_device:s0
/dev/lwis-sensor-oksoko                                                     u:object_r:lwis_device:s0
/dev/lwis-sensor-oksoko-nautilus                                            u:object_r:lwis_device:s0
/dev/lwis-sensor-sandworm                                                   u:object_r:lwis_device:s0
/dev/lwis-sensor-svarog                                                     u:object_r:lwis_device:s0
/dev/lwis-sensor-svarog-outer                                               u:object_r:lwis_device:s0
/dev/lwis-slc                                                               u:object_r:lwis_device:s0
/dev/lwis-top                                                               u:object_r:lwis_device:s0
/dev/lwis-tof-tarasque                                                      u:object_r:lwis_device:s0
# Although ispolin_ranging is not a real lwis_device but we treat it as an abstract lwis_device.
# Binding it here with lwis-tof-tarasque for a better maintenance instead of creating another device type.
/dev/ispolin_ranging                                                        u:object_r:lwis_device:s0
/dev/lwis-votf                                                              u:object_r:lwis_device:s0
/dev/st54spi                                                                u:object_r:st54spi_device:s0
/dev/trusty-ipc-dev0                                                        u:object_r:tee_device:s0
/dev/dma_heap/sensor_direct_heap                                            u:object_r:sensor_direct_heap_device:s0
/dev/dma_heap/faceauth_dsp-secure                                           u:object_r:faceauth_heap_device:s0
/dev/dma_heap/faceauth_tpu-secure                                           u:object_r:faceauth_heap_device:s0
/dev/dma_heap/faimg-secure                                                  u:object_r:faceauth_heap_device:s0
/dev/dma_heap/famodel-secure                                                u:object_r:faceauth_heap_device:s0
/dev/dma_heap/faprev-secure                                                 u:object_r:faceauth_heap_device:s0
/dev/dma_heap/farawimg-secure                                               u:object_r:faceauth_heap_device:s0
/dev/dma_heap/framebuffer-secure                                            u:object_r:framebuffer_secure_heap_device:s0
/dev/dma_heap/vframe-secure                                                 u:object_r:dmabuf_system_secure_heap_device:s0
/dev/dma_heap/vscaler-secure                                                u:object_r:vscaler_secure_heap_device:s0
/dev/dma_heap/vstream-secure                                                u:object_r:dmabuf_system_secure_heap_device:s0
/dev/dma_heap/gcma_camera                                                   u:object_r:gcma_camera_heap_device:s0
/dev/dma_heap/gcma_camera-uncached                                          u:object_r:gcma_camera_heap_device:s0
/dev/uci                                                                    u:object_r:uci_device:s0
/dev/video12                                                                u:object_r:hw_jpg_device:s0
