# GPU device
/dev/kgsl           u:object_r:gpu_device:s0

# rfkilll
/dev/rfkill         u:object_r:rfkill_device:s0

# Bluetooth
/dev/ttyHS99        u:object_r:hci_attach_dev:s0

# nfc
/dev/bcm2079x       u:object_r:nfc_device:s0

# GPS
/dev/gss               u:object_r:sensors_device:s0

# Image Rotator Driver
/dev/msm_rotator    u:object_r:video_device:s0

# DRM clearkey
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.3-service\.clearkey    u:object_r:hal_drm_clearkey_exec:s0

# Dumpstate HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.dumpstate@1\.0-service\.hh      u:object_r:hal_dumpstate_default_exec:s0

# FastCharge HAL
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.fastcharge@1\.0-service\.hh                   u:object_r:hal_lineage_fastcharge_default_exec:s0

# Gatekeeper HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.gatekeeper@1\.0-service\.software	u:object_r:hal_gatekeeper_default_exec:s0

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

# Power HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.power@1\.2-service\.hh     u:object_r:hal_power_default_exec:s0

# Vibrator HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.1-service\.hh  u:object_r:hal_vibrator_default_exec:s0

# Block labeling
/dev/block/platform/msm_sdcc\.1/by-name/metadata     u:object_r:metadata_block_device:s0

## Radio related
# modem driver
/dev/mdm                               u:object_r:radio_device:s0
# high speed inter-chip controls
/dev/hsicctl[0-3]                      u:object_r:radio_device:s0
# mux controller
/dev/rmnet_mux_ctrl                    u:object_r:radio_device:s0
# qmi protocol driver
/dev/qmi[0-2]                          u:object_r:radio_device:s0
# shared memory drivers
/dev/smdcntl[0-7]                      u:object_r:radio_device:s0

# Default label for shared memory drivers
/dev/smd([0-9])+                       u:object_r:smd_device:s0

# Serial-to-Usb support
/dev/ttyUSB0                           u:object_r:radio_device:s0

# Jpeg Engine support
/dev/gemini.*                          u:object_r:video_device:s0

# MSM camera related
/dev/msm_camera(/.*)?                  u:object_r:video_device:s0
/dev/jpeg([0-9])+                      u:object_r:video_device:s0

# Qualcomm MSM Audio devices
/dev/msm_acdb                      u:object_r:audio_device:s0
/dev/msm_mp3                       u:object_r:audio_device:s0
/dev/msm_rtac                      u:object_r:audio_device:s0
/dev/msm_vidc.*                    u:object_r:audio_device:s0
/dev/msm_amrnb.*                   u:object_r:audio_device:s0
/dev/msm_amrwb.*                   u:object_r:audio_device:s0
/dev/msm_aac.*                     u:object_r:audio_device:s0

# cgroup
/dev/cpuset(/.*)?                  u:object_r:cgroup:s0
/dev/stune(/.*)?                   u:object_r:cgroup:s0

# Sensors shared Memory Packet Interface
/dev/smd_sns_dsps                      u:object_r:sensors_device:s0

/data/cam_socket[0-9]              u:object_r:camera_socket:s0
/data/misc/playready(/.*)?         u:object_r:drm_data_file:s0
/data/tombstones/ramdump(/.*)?     u:object_r:ssr_ramdump_data_file:s0
/data/vendor/mediadrm(/.*)?        u:object_r:mediadrm_vendor_data_file:s0

# AOSP clean_scratch_files tool executable
/system/bin/clean_scratch_files    u:object_r:clean_scratch_files_exec:s0

# Bluetooth MAC loader
/(system/vendor|vendor)/bin/bluetooth_loader       u:object_r:bluetooth_loader_exec:s0

# Vendor specific init
/(system/vendor|vendor)/bin/vss_init               u:object_r:vss_exec:s0

# Persist firmware filesystem
/persist/camera_calibration(/.*)? u:object_r:persist_camera_file:s0
/persist/playready(/.*)?          u:object_r:persist_drm_file:s0
/persist/widevine(/.*)?           u:object_r:persist_drm_file:s0
/persist/wifi(/.*)?               u:object_r:persist_wifi_file:s0

# Sysfs entry for the FastCharge node
/sys/kernel/fast_charge(/.*)?                           u:object_r:sysfs_fastcharge_switch:s0

# Sysfs entry for the RmNet function driver
/sys/class/android_usb/f_rmnet_smd_sdio/transport  --  u:object_r:sysfs_rmnet:s0
/sys/devices/virtual/android_usb/android0/f_rmnet_smd_sdio/transport  --  u:object_r:sysfs_rmnet:s0

# Sysfs files used by mpdecision
/sys/module/pm2/modes(/.*)?            u:object_r:sysfs_mpdecision:s0
/sys/module/pm_8x60/modes(/.*)?        u:object_r:sysfs_mpdecision:s0
/sys/module/pm_8x60/modes/cpu[0-3]/power_collapse/suspend_enabled u:object_r:sysfs_mpdecision:s0
/sys/module/pm_8x60/modes/cpu[0-3]/power_collapse/idle_enabled    u:object_r:sysfs_mpdecision:s0

# Sysfs files used by surfaceflinger
/sys/devices/virtual/graphics/fb1/hpd                 -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb1/vendor_name         -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb1/product_description -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb[1-2]/msm_fb_type     -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb0/msm_fb_split        -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb0/vsync_event         -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb2                        u:object_r:sysfs_surfaceflinger:s0
/sys/module/msm_thermal/core_control/enabled          -- u:object_r:sysfs_surfaceflinger:s0

/sys/devices/fdb00000\.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpuclk        u:object_r:sysfs_thermal:s0
/sys/devices/fdb00000\.qcom,kgsl-3d0/kgsl/kgsl-3d0/max_gpuclk    u:object_r:sysfs_thermal:s0
/sys/devices/fdb00000\.qcom,kgsl-3d0/kgsl/kgsl-3d0/reset_count   u:object_r:sysfs_thermal:s0

# Sysfs files used by qmuxd
/sys/devices/virtual/smdpkt/smdcntl([0-9])+/open_timeout u:object_r:sysfs_smd_open_timeout:s0

# Bluetooth
/sys/devices/platform/bluetooth_rfkill/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0

# sysfs files used by wifi
/sys/module/bcmdhd/parameters/firmware_path u:object_r:sysfs_wlan_fwpath:s0

# sysfs - power_supply
/sys/devices/f9923000\.i2c/i2c-84/84-0036/power_supply/battery(/.*)? u:object_r:sysfs_batteryinfo:s0
/sys/devices/f9923000\.i2c/i2c-84/84-006b/power_supply/ac(/.*)?      u:object_r:sysfs_batteryinfo:s0
/sys/devices/virtual/power_supply/touch(/.*)?                        u:object_r:sysfs_batteryinfo:s0
/sys/devices/battery_tm_ctrl.78/power_supply/batt_therm(/.*)?        u:object_r:sysfs_batteryinfo:s0
/sys/devices/bq51013b_wlc.77/power_supply/wireless(/.*)?             u:object_r:sysfs_batteryinfo:s0

# sysfs - leds
/sys/devices/mdp(.*)/qcom,mdss_fb_primary(.*)/leds(/.*)?                             u:object_r:sysfs_leds:s0
/sys/devices/mdp(.*)/qcom,mdss_fb_primary(.*)/leds/lcd-backlight/brightness          u:object_r:sysfs_leds:s0
/sys/devices/mdp(.*)/qcom,mdss_fb_primary(.*)/leds/lcd-backlight/max_brightness      u:object_r:sysfs_leds:s0

# TimeKeep
/sys/devices/qpnp-rtc-[0-9]+/rtc/rtc0(/.*)?         u:object_r:sysfs_rtc:s0
/(system/vendor|vendor)/bin/timekeep                u:object_r:timekeep_exec:s0

# sysfs - sysfs_power_management
/sys/devices/(fe20|fc88|fdce)0000\.qcom,(lpass|mss|venus)/subsys[0-2]/restart_level u:object_r:sysfs_power_management:s0
/sys/devices/platform/bluetooth_rfkill/rfkill/rfkill0/type                          u:object_r:sysfs_power_management:s0
/sys/module/lpm_resources/enable_low_power(/.*)?                                    u:object_r:sysfs_power_management:s0
/sys/module/slimport/parameters/enable_irq                                          u:object_r:sysfs_power_management:s0

#sysfs - ramdumps
/sys/module/subsystem_restart/parameters/enable_debug    u:object_r:sysfs_ramdumps:s0
/sys/module/subsystem_restart/parameters/enable_ramdumps u:object_r:sysfs_ramdumps:s0
/sys/module/msm_show_resume_irq/parameters/debug_mask    u:object_r:sysfs_ramdumps:s0

#/tombstones symlink
/tombstones u:object_r:tombstone_data_file:s0

#/vtc symlink
/vtc u:object_r:vendor_configs_file:s0
