# Amplifier
/(vendor|system/vendor)/bin/tinymix                                                                                               u:object_r:vendor_tinyalsa_exec:s0

# Biometric
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.xiaomi_sdm660                             u:object_r:hal_fingerprint_sdm660_exec:s0

# Camera
/data/misc/camera                                                                                                                 u:object_r:camera_data_file:s0

# blkio
/dev/blkio(/.*)?                                                                                                                  u:object_r:blkio_dev:s0
/dev/blkio/background(/.*)?                                                                                                       u:object_r:blkio_dev:s0

# CNE
/(vendor|system/vendor)/bin/mutualex                                                                                              u:object_r:vendor_mutualex_exec:s0

# Executables
/vendor/bin/sh                                                                                                                    u:object_r:vendor_shell_exec:s0

# Fingerprint
/data/gf_data(/.*)?                                                                                                               u:object_r:fingerprintd_data_file:s0
/data/vendor/fpc(/.*)?                                                                                                            u:object_r:fingerprint_vendor_data_file:s0
/data/vendor/gf_data(/.*)?                                                                                                        u:object_r:fingerprint_vendor_data_file:s0
/data/vendor/goodix(/.*)?                                                                                                         u:object_r:fingerprint_vendor_data_file:s0
/dev/goodix_fp                                                                                                                    u:object_r:fingerprint_device:s0

# Firmware
/firmware(/.*)?                                                                                                                   u:object_r:firmware_file:s0
/bt_firmware(/.*)?                                                                                                                u:object_r:bt_firmware_file:s0
/persist(/.*)?                                                                                                                    u:object_r:persist_file:s0

# Hexagon DSP-side executable needed for Halide operation
# This is labeled as public_adsprpcd_file as it needs to be read by apps
# (e.g. Google Camera App)
/mnt/vendor/dsp/fastrpc_shell_3                                                                                                   u:object_r:public_adsprpcd_file:s0

# IR
/dev/lirc0                                                                                                                        u:object_r:spidev_device:s0
/dev/spidev7.1                                                                                                                    u:object_r:spidev_device:s0

# Kcal
/sys/devices/platform/kcal_ctrl.0(/.*)?                                                                                           u:object_r:kcal_dev:s0
/sys/bus/platform/drivers/kcal_ctrl(/.*)?                                                                                         u:object_r:kcal_dev:s0

# IR HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service\.xiaomi_sdm660                                                   u:object_r:hal_ir_default_exec:s0

# Light HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.xiaomi_sdm660                                               u:object_r:hal_light_default_exec:s0

# Mlipay
/(vendor|system/vendor)/bin/mlipayd@1.1                                                                                           u:object_r:hal_mlipay_default_exec:s0

# Notification LED
/sys/devices/platform/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:qcom,leds@d000/leds/blue(/.*)?        u:object_r:sysfs_graphics:s0
/sys/devices/platform/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:qcom,leds@d000/leds/green(/.*)?       u:object_r:sysfs_graphics:s0
/sys/devices/platform/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:qcom,leds@d000/leds/red(/.*)?         u:object_r:sysfs_graphics:s0
/sys/devices/platform/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:qcom,leds@d000/leds/white(/.*)?       u:object_r:sysfs_graphics:s0
/sys/devices/platform/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:qcom,leds@d300/leds/flashlight(/.*)?  u:object_r:sysfs_graphics:s0

# Power
/(vendor|system/vendor)/bin/hw/android\.hardware\.power-service\.xiaomi_sdm660-libperfmgr                                          u:object_r:hal_power_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.power\.stats@1\.0-service\.mock                                                  u:object_r:hal_power_stats_default_exec:s0

# Root files
/proc/sys/fs/protected_regular                                                                                                     u:object_r:proc:s0

# Service HALs
/(vendor|system/vendor)/bin/hw/android\.hardware\.authsecret@1\.0-service                                                          u:object_r:hal_authsecret_default_exec:s0

# Sockets
/dev/socket/audio_hw_socket                                                                                                        u:object_r:audio_socket:s0

# Thermal
/data/vendor/thermal(/.*)?                                                                                                         u:object_r:thermal_data_file:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.thermal@2\.0-service\.mock                                                       u:object_r:hal_thermal_default_exec:s0

# USB
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service\.xiaomi_sdm660                                                  u:object_r:hal_usb_default_exec:s0

# Video4linux sysfs nodes
sys/devices/platform/soc/caa0000\.qcom,jpeg/video4linux/video1(/.*)?                                                              u:object_r:sysfs_graphics:s0

# Wakeup
/sys/devices/platform/soc/14780000.qcom,ipa/wakeup/wakeup[0-9]+(/.*)?                                                                     u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/15700000.qcom,lpass/wakeup[0-9]+(/.*)?                                                                          u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/18800000.qcom,icnss/wakeup/wakeup[0-9]+(/.*)?                                                                   u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/1a300000.qcom,turing/wakeup/wakeup[0-9]+(/.*)?                                                                  u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/4080000.qcom,mss/wakeup/wakeup[0-9]+(/.*)?                                                                      u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/a800000.ssusb/wakeup/wakeup[0-9]+(/.*)?                                                                         u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/cce0000.qcom,venus/wakeup/wakeup[0-9]+(/.*)?                                                                    u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:fpc1020/wakeup/wakeup[0-9]+(/.*)?                                                                           u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:gpio_keys/wakeup/wakeup[0-9]+(/.*)?                                                                         u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:hall_switch/wakeup[0-9]+(/.*)?                                                                              u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:qcom,kgsl-hyp/wakeup/wakeup[0-9]+(/.*)?                                                                     u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:qcom,smp2p-adsp/wakeup/wakeup[0-9]+(/.*)?                                                                   u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:qcom,smp2p-cdsp/wakeup/wakeup[0-9]+(/.*)?                                                                   u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:qcom,smp2p-modem/wakeup/wakeup[0-9]+(/.*)?                                                                  u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/soc:qcom,smp2p_sleepstate/wakeup/wakeup[0-9]+(/.*)?                                                             u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pm660l@2:qcom,power-on@800/wakeup/wakeup[0-9]+(/.*)?   u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:anlg-cdc@f000/wakeup/wakeup[0-9]+(/.*)?       u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/diag/diag/wakeup[0-9]+(/.*)?                                                                                         u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_aac//wakeup[0-9]+(/.*)?                                                                                     u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_alac/wakeup[0-9]+(/.*)?                                                                                     u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_amrnb/wakeup[0-9]+(/.*)?                                                                                    u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_amrwb/wakeup[0-9]+(/.*)?                                                                                    u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_amrwbplus/wakeup[0-9]+(/.*)?                                                                                u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_ape/wakeup[0-9]+(/.*)?                                                                                      u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_evrc/wakeup[0-9]+(/.*)?                                                                                     u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_g711alaw/wakeup[0-9]+(/.*)?                                                                                 u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_g711mlaw/wakeup[0-9]+(/.*)?                                                                                 u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_mp3/wakeup[0-9]+(/.*)?                                                                                      u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_multi_aac/wakeup[0-9]+(/.*)?                                                                                u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_qcelp/wakeup[0-9]+(/.*)?                                                                                    u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_wma/wakeup[0-9]+(/.*)?                                                                                      u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/msm_wmapro/wakeup[0-9]+(/.*)?                                                                                   u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/ca0c000.qcom,cci/ca0c000.qcom,cci:qcom,camera@0/video4linux/video2/wakeup[0-9]+(/.*)?                           u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/ca0c000.qcom,cci/ca0c000.qcom,cci:qcom,camera@0/video4linux/video3/wakeup[0-9]+(/.*)?                           u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/ca0c000.qcom,cci/ca0c000.qcom,cci:qcom,camera@1/video4linux/video4/wakeup[0-9]+(/.*)?                           u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/ca0c000.qcom,cci/ca0c000.qcom,cci:qcom,camera@2/video4linux/video5/wakeup[0-9]+(/.*)?                           u:object_r:sysfs_wakeup:s0
