# Generated by the Mer uevent to udev rule generator
# in the droid-hal-* package
#
# This file contains udev rules derived from the uevent.rc
# The original rc file contents are included preceded by #:
#
#
################
# From ueventd.rc

#:subsystem adf
# WARNING rule in comment above was not converted
#:    devname uevent_devname
# WARNING rule in comment above was not converted
#:
#:subsystem graphics
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/graphics
# WARNING rule in comment above was not converted
#:
#:subsystem drm
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/dri
# WARNING rule in comment above was not converted
#:
#:subsystem oncrpc
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/oncrpc
# WARNING rule in comment above was not converted
#:
#:subsystem adsp
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/adsp
# WARNING rule in comment above was not converted
#:
#:subsystem msm_camera
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/msm_camera
# WARNING rule in comment above was not converted
#:
#:subsystem input
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/input
# WARNING rule in comment above was not converted
#:
#:subsystem mtd
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/mtd
# WARNING rule in comment above was not converted
#:
#:subsystem sound
# WARNING rule in comment above was not converted
#:    devname uevent_devpath
# WARNING rule in comment above was not converted
#:    dirname /dev/snd
# WARNING rule in comment above was not converted
#:
#:# ueventd can only set permissions on device nodes and their associated
#:# sysfs attributes, not on arbitrary paths.
#:#
#:# format for /dev rules: devname mode uid gid
#:# format for /sys rules: nodename attr mode uid gid
#:# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN"
#:
#:/dev/null                 0666   root       root
KERNEL=="null", MODE="0666", GROUP="root", OWNER="root"
#:/dev/zero                 0666   root       root
KERNEL=="zero", MODE="0666", GROUP="root", OWNER="root"
#:/dev/full                 0666   root       root
KERNEL=="full", MODE="0666", GROUP="root", OWNER="root"
#:/dev/ptmx                 0666   root       root
KERNEL=="ptmx", MODE="0666", GROUP="root", OWNER="root"
#:/dev/tty                  0666   root       root
KERNEL=="tty", MODE="0666", GROUP="root", OWNER="root"
#:/dev/random               0666   root       root
KERNEL=="random", MODE="0666", GROUP="root", OWNER="root"
#:/dev/urandom              0666   root       root
KERNEL=="urandom", MODE="0666", GROUP="root", OWNER="root"
#:# Make HW RNG readable by group system to let EntropyMixer read it.
#:/dev/hw_random            0440   root       system
KERNEL=="hw_random", MODE="0440", GROUP="aid_system", OWNER="root"
#:/dev/ashmem               0666   root       root
KERNEL=="ashmem", MODE="0666", GROUP="root", OWNER="root"
#:/dev/binder               0666   root       root
KERNEL=="binder", MODE="0666", GROUP="root", OWNER="root"
#:/dev/hwbinder             0666   root       root
KERNEL=="hwbinder", MODE="0666", GROUP="root", OWNER="root"
#:/dev/vndbinder            0666   root       root
KERNEL=="vndbinder", MODE="0666", GROUP="root", OWNER="root"
#:
#:/dev/pmsg0                0222   root       log
KERNEL=="pmsg0", MODE="0222", GROUP="log", OWNER="root"
#:
#:# the msm hw3d client device node is world writable/readable.
#:/dev/msm_hw3dc            0666   root       root
KERNEL=="msm_hw3dc", MODE="0666", GROUP="root", OWNER="root"
#:
#:# gpu driver for adreno200 is globally accessible
#:/dev/kgsl                 0666   root       root
KERNEL=="kgsl", MODE="0666", GROUP="root", OWNER="root"
#:
#:# kms driver for drm based gpu
#:/dev/dri/*                0666   root       graphics
# Known droid dir drm/ is for subsystem dri
SYMLINK=="dri/*", MODE="0666", GROUP="aid_graphics", OWNER="root"
SUBSYSTEM=="drm", KERNEL=="*", MODE="0666", GROUP="aid_graphics", OWNER="root"
#:
#:# these should not be world writable
#:/dev/diag                 0660   radio      radio
KERNEL=="diag", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/diag_arm9            0660   radio      radio
KERNEL=="diag_arm9", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ttyMSM0              0600   bluetooth  bluetooth
KERNEL=="ttyMSM0", MODE="0600", GROUP="aid_bluetooth", OWNER="aid_bluetooth"
#:/dev/uhid                 0660   uhid       uhid
KERNEL=="uhid", MODE="0660", GROUP="uhid", OWNER="uhid"
#:/dev/uinput               0660   system     bluetooth
KERNEL=="uinput", MODE="0660", GROUP="aid_bluetooth", OWNER="aid_system"
#:/dev/alarm                0664   system     radio
KERNEL=="alarm", MODE="0664", GROUP="aid_radio", OWNER="aid_system"
#:/dev/rtc0                 0640   system     system
KERNEL=="rtc0", MODE="0640", GROUP="aid_system", OWNER="aid_system"
#:/dev/tty0                 0660   root       system
KERNEL=="tty0", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/graphics/*           0660   root       graphics
# Known droid dir graphics/ is for subsystem graphics
SYMLINK=="graphics/*", MODE="0660", GROUP="aid_graphics", OWNER="root"
SUBSYSTEM=="aid_graphics", KERNEL=="*", MODE="0660", GROUP="aid_graphics", OWNER="root"
#:/dev/msm_hw3dm            0660   system     graphics
KERNEL=="msm_hw3dm", MODE="0660", GROUP="aid_graphics", OWNER="aid_system"
#:/dev/input/*              0660   root       input
#:/dev/v4l-touch*           0660   root       input
KERNEL=="v4l-touch*", MODE="0660", GROUP="aid_input", OWNER="root"
#:/dev/eac                  0660   root       audio
KERNEL=="eac", MODE="0660", GROUP="aid_audio", OWNER="root"
#:/dev/cam                  0660   root       camera
KERNEL=="cam", MODE="0660", GROUP="aid_camera", OWNER="root"
#:/dev/pmem                 0660   system     graphics
KERNEL=="pmem", MODE="0660", GROUP="aid_graphics", OWNER="aid_system"
#:/dev/pmem_adsp*           0660   system     audio
KERNEL=="pmem_adsp*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/pmem_camera*         0660   system     camera
KERNEL=="pmem_camera*", MODE="0660", GROUP="aid_camera", OWNER="aid_system"
#:/dev/oncrpc/*             0660   root       system
# Known droid dir oncrpc/ is for subsystem oncrpc
SYMLINK=="oncrpc/*", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="oncrpc", KERNEL=="*", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/adsp/*               0660   system     audio
# Known droid dir adsp/ is for subsystem adsp
SYMLINK=="adsp/*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
SUBSYSTEM=="adsp", KERNEL=="*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/snd/*                0660   system     audio
# Standard subsystem rule
SUBSYSTEM=="snd", KERNEL=="*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/mt9t013              0660   system     system
KERNEL=="mt9t013", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:/dev/msm_camera/*         0660   system     system
# Known droid dir msm_camera/ is for subsystem msm_camera
SYMLINK=="msm_camera/*", MODE="0660", GROUP="aid_system", OWNER="aid_system"
SUBSYSTEM=="msm_camera", KERNEL=="*", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:/dev/akm8976_daemon       0640   compass    system
KERNEL=="akm8976_daemon", MODE="0640", GROUP="aid_system", OWNER="aid_compass"
#:/dev/akm8976_aot          0640   compass    system
KERNEL=="akm8976_aot", MODE="0640", GROUP="aid_system", OWNER="aid_compass"
#:/dev/akm8973_daemon       0640   compass    system
KERNEL=="akm8973_daemon", MODE="0640", GROUP="aid_system", OWNER="aid_compass"
#:/dev/akm8973_aot          0640   compass    system
KERNEL=="akm8973_aot", MODE="0640", GROUP="aid_system", OWNER="aid_compass"
#:/dev/bma150               0640   compass    system
KERNEL=="bma150", MODE="0640", GROUP="aid_system", OWNER="aid_compass"
#:/dev/cm3602               0640   compass    system
KERNEL=="cm3602", MODE="0640", GROUP="aid_system", OWNER="aid_compass"
#:/dev/akm8976_pffd         0640   compass    system
KERNEL=="akm8976_pffd", MODE="0640", GROUP="aid_system", OWNER="aid_compass"
#:/dev/lightsensor          0640   system     system
KERNEL=="lightsensor", MODE="0640", GROUP="aid_system", OWNER="aid_system"
#:/dev/msm_pcm_out*         0660   system     audio
KERNEL=="msm_pcm_out*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/msm_pcm_in*          0660   system     audio
KERNEL=="msm_pcm_in*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/msm_pcm_ctl*         0660   system     audio
KERNEL=="msm_pcm_ctl*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/msm_snd*             0660   system     audio
KERNEL=="msm_snd*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/msm_mp3*             0660   system     audio
KERNEL=="msm_mp3*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/audience_a1026*      0660   system     audio
KERNEL=="audience_a1026*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/tpa2018d1*           0660   system     audio
KERNEL=="tpa2018d1*", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/msm_audpre           0660   system     audio
KERNEL=="msm_audpre", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/msm_audio_ctl        0660   system     audio
KERNEL=="msm_audio_ctl", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/htc-acoustic         0660   system     audio
KERNEL=="htc-acoustic", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/vdec                 0660   system     audio
KERNEL=="vdec", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/q6venc               0660   system     audio
KERNEL=="q6venc", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/snd/dsp              0660   system     audio
# Standard subsystem rule
SUBSYSTEM=="snd", KERNEL=="dsp", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/snd/dsp1             0660   system     audio
# Standard subsystem rule
SUBSYSTEM=="snd", KERNEL=="dsp1", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/snd/mixer            0660   system     audio
# Standard subsystem rule
SUBSYSTEM=="snd", KERNEL=="mixer", MODE="0660", GROUP="aid_audio", OWNER="aid_system"
#:/dev/smd0                 0640   radio      radio
KERNEL=="smd0", MODE="0640", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/qmi                  0640   radio      radio
KERNEL=="qmi", MODE="0640", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/qmi0                 0640   radio      radio
KERNEL=="qmi0", MODE="0640", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/qmi1                 0640   radio      radio
KERNEL=="qmi1", MODE="0640", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/qmi2                 0640   radio      radio
KERNEL=="qmi2", MODE="0640", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/bus/usb/*            0660   root       usb
# usb rule
SUBSYSTEM=="aid_usb", KERNEL=="*", MODE="0660", GROUP="aid_usb", OWNER="root"
#:/dev/mtp_usb              0660   root       mtp
KERNEL=="mtp_usb", MODE="0660", GROUP="aid_mtp", OWNER="root"
#:/dev/usb_accessory        0660   root       usb
KERNEL=="usb_accessory", MODE="0660", GROUP="aid_usb", OWNER="root"
#:/dev/tun                  0660   system     vpn
KERNEL=="tun", MODE="0660", GROUP="aid_vpn", OWNER="aid_system"
#:
#:# CDMA radio interface MUX
#:/dev/ts0710mux*           0640   radio      radio
KERNEL=="ts0710mux*", MODE="0640", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ppp                  0660   radio      vpn
KERNEL=="ppp", MODE="0660", GROUP="aid_vpn", OWNER="aid_radio"
#:
#:# sysfs properties
#:/sys/devices/platform/trusty.*      trusty_version        0440  root   log
# sys rule
DEVPATH=="/devices/platform/trusty.*", RUN+="/bin/chmod 0440 /sys/$devpath/trusty_version", RUN+="/bin/chown root:log /sys/$devpath/trusty_version"
#:/sys/devices/virtual/input/input*   enable      0660  root   input
# sys rule
DEVPATH=="/devices/virtual/input/input*", RUN+="/bin/chmod 0660 /sys/$devpath/enable", RUN+="/bin/chown root:input /sys/$devpath/enable"
#:/sys/devices/virtual/input/input*   poll_delay  0660  root   input
# sys rule
DEVPATH=="/devices/virtual/input/input*", RUN+="/bin/chmod 0660 /sys/$devpath/poll_delay", RUN+="/bin/chown root:input /sys/$devpath/poll_delay"
#:/sys/devices/virtual/usb_composite/*   enable      0664  root   system
# sys rule
DEVPATH=="/devices/virtual/usb_composite/*", RUN+="/bin/chmod 0664 /sys/$devpath/enable", RUN+="/bin/chown root:system /sys/$devpath/enable"
#:/sys/devices/system/cpu/cpu*   cpufreq/scaling_max_freq   0664  system system
# sys rule
DEVPATH=="/devices/system/cpu/cpu*", RUN+="/bin/chmod 0664 /sys/$devpath/cpufreq/scaling_max_freq", RUN+="/bin/chown system:system /sys/$devpath/cpufreq/scaling_max_freq"
#:/sys/devices/system/cpu/cpu*   cpufreq/scaling_min_freq   0664  system system
# sys rule
DEVPATH=="/devices/system/cpu/cpu*", RUN+="/bin/chmod 0664 /sys/$devpath/cpufreq/scaling_min_freq", RUN+="/bin/chown system:system /sys/$devpath/cpufreq/scaling_min_freq"
#:
#:# DVB API device nodes
#:/dev/dvb*                 0660   root       system
KERNEL=="dvb*", MODE="0660", GROUP="aid_system", OWNER="root"
################
# From ueventd.mt6763.rc

#:#change partition permission
#:/dev/block/mmcblk0                                              0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/mmcblk0", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="mmcblk0", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/mmcblk0boot0                                         0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/mmcblk0boot0", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="mmcblk0boot0", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/mmcblk0boot1                                         0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/mmcblk0boot1", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="mmcblk0boot1", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/misc-sd                                                    0660    root    system
KERNEL=="misc-sd", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/misc2     0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/misc2", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/misc2", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/misc2 *|platform/bootdevice/by-name/misc2 *|* platform/bootdevice/by-name/misc2|platform/bootdevice/by-name/misc2", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/boot      0640    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/boot", MODE="0640", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/boot", MODE="0640", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/boot *|platform/bootdevice/by-name/boot *|* platform/bootdevice/by-name/boot|platform/bootdevice/by-name/boot", MODE="0640", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/recovery  0640    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/recovery", MODE="0640", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/recovery", MODE="0640", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/recovery *|platform/bootdevice/by-name/recovery *|* platform/bootdevice/by-name/recovery|platform/bootdevice/by-name/recovery", MODE="0640", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/secro     0640    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/secro", MODE="0640", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/secro", MODE="0640", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/secro *|platform/bootdevice/by-name/secro *|* platform/bootdevice/by-name/secro|platform/bootdevice/by-name/secro", MODE="0640", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/seccfg    0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/seccfg", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/seccfg", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/seccfg *|platform/bootdevice/by-name/seccfg *|* platform/bootdevice/by-name/seccfg|platform/bootdevice/by-name/seccfg", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/proinfo   0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/proinfo", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/proinfo", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/proinfo *|platform/bootdevice/by-name/proinfo *|* platform/bootdevice/by-name/proinfo|platform/bootdevice/by-name/proinfo", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/nvram     0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/nvram", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/nvram", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/nvram *|platform/bootdevice/by-name/nvram *|* platform/bootdevice/by-name/nvram|platform/bootdevice/by-name/nvram", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/para      0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/para", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/para", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/para *|platform/bootdevice/by-name/para *|* platform/bootdevice/by-name/para|platform/bootdevice/by-name/para", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/logo      0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/logo", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/logo", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/logo *|platform/bootdevice/by-name/logo *|* platform/bootdevice/by-name/logo|platform/bootdevice/by-name/logo", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/frp       0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/frp", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/frp", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/frp *|platform/bootdevice/by-name/frp *|* platform/bootdevice/by-name/frp|platform/bootdevice/by-name/frp", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/md1img    0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/md1img", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/md1img", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/md1img *|platform/bootdevice/by-name/md1img *|* platform/bootdevice/by-name/md1img|platform/bootdevice/by-name/md1img", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/md1dsp    0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/md1dsp", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/md1dsp", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/md1dsp *|platform/bootdevice/by-name/md1dsp *|* platform/bootdevice/by-name/md1dsp|platform/bootdevice/by-name/md1dsp", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/md1arm7   0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/md1arm7", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/md1arm7", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/md1arm7 *|platform/bootdevice/by-name/md1arm7 *|* platform/bootdevice/by-name/md1arm7|platform/bootdevice/by-name/md1arm7", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/md3img    0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/md3img", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/md3img", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/md3img *|platform/bootdevice/by-name/md3img *|* platform/bootdevice/by-name/md3img|platform/bootdevice/by-name/md3img", MODE="0660", GROUP="aid_system", OWNER="root"
#:
#:# prize-Solve the problem that CTS can't find fingerprints by brushing Google img-pengzhipeng-20190629-start
#:/dev/focaltech_fp         0660   system     system
KERNEL=="focaltech_fp", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:# prize-Solve the problem that CTS can't find fingerprints by brushing Google img-pengzhipeng-20190629-end
#:# OTP
#:/dev/otp                  0660   system     system
KERNEL=="otp", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:/dev/block/platform/bootdevice/by-name/otp       0660    root    system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/otp", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/otp", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/otp *|platform/bootdevice/by-name/otp *|* platform/bootdevice/by-name/otp|platform/bootdevice/by-name/otp", MODE="0660", GROUP="aid_system", OWNER="root"
#:
#:# Connectivity
#:/dev/stpwmt               0660   system     system
KERNEL=="stpwmt", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:/dev/wmtdetect            0660   system     system
KERNEL=="wmtdetect", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:
#:# BT
#:/dev/stpbt                0660   bluetooth  bluetooth
KERNEL=="stpbt", MODE="0660", GROUP="aid_bluetooth", OWNER="aid_bluetooth"
#:
#:# GPS
#:/dev/stpgps               0660   gps        gps
KERNEL=="stpgps", MODE="0660", GROUP="aid_gps", OWNER="aid_gps"
#:/dev/gps                  0660   gps        system
KERNEL=="aid_gps", MODE="0660", GROUP="aid_system", OWNER="aid_gps"
#:
#:# WIFI
#:/dev/wmtWifi              0660   wifi     wifi
KERNEL=="wmtWifi", MODE="0660", GROUP="aid_wifi", OWNER="aid_wifi"
#:
#:# FMRadio
#:/dev/fm                   0660   media     media
KERNEL=="fm", MODE="0660", GROUP="aid_media", OWNER="aid_media"
#:
#:# NFC
#:/dev/msr3110              0666   root       root
KERNEL=="msr3110", MODE="0666", GROUP="root", OWNER="root"
#:/dev/mt6605               0660   nfc        radio
KERNEL=="mt6605", MODE="0660", GROUP="aid_radio", OWNER="aid_nfc"
#:/dev/st21nfc              0660   nfc        radio
KERNEL=="st21nfc", MODE="0660", GROUP="aid_radio", OWNER="aid_nfc"
#:
#:# MTK BTIF driver
#:/dev/btif                 0600   system     system
KERNEL=="btif", MODE="0600", GROUP="aid_system", OWNER="aid_system"
#:
#:# Trusty driver
#:/dev/trusty-ipc-dev0      0660   system     system
KERNEL=="trusty-ipc-dev0", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:
#:# TrustonicTEE driver
#:/dev/mobicore             0600   system     system
KERNEL=="mobicore", MODE="0600", GROUP="aid_system", OWNER="aid_system"
#:/dev/mobicore-user        0666   system     system
KERNEL=="mobicore-user", MODE="0666", GROUP="aid_system", OWNER="aid_system"
#:/dev/t-base-tui           0666   system     system
KERNEL=="t-base-tui", MODE="0666", GROUP="aid_system", OWNER="aid_system"
#:
#:# add the read write right of ttyUSB*
#:/dev/bus/usb/*     	  0660   root       usb
# usb rule
SUBSYSTEM=="aid_usb", KERNEL=="*", MODE="0660", GROUP="aid_usb", OWNER="root"
#:/dev/ttyUSB0              0660   radio      radio
KERNEL=="ttyUSB0", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ttyUSB1              0660   radio      radio
KERNEL=="ttyUSB1", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ttyUSB2              0660   radio      radio
KERNEL=="ttyUSB2", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ttyUSB3              0660   radio      radio
KERNEL=="ttyUSB3", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ttyUSB4              0660   radio      radio
KERNEL=="ttyUSB4", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:
#:# Anyone can read the logs, but if they're not in the "logs"
#:# group, then they'll only see log entries for their UID.
#:/dev/log/ksystem          0600   root       log
# Mer/hybris renames /dev/log to /dev/alog (handling as a symlink)
SYMLINK=="alog/ksystem", MODE="0600", GROUP="log", OWNER="root"
#:
#:/dev/ccci*                0660   radio      radio
KERNEL=="ccci*", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ttyC*                0660   radio      radio
KERNEL=="ttyC*", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/sys/kernel/ccci          modem_info   0644   radio       radio
# sys rule
DEVPATH=="/kernel/ccci", RUN+="/bin/chmod 0644 /sys/$devpath/modem_info", RUN+="/bin/chown radio:radio /sys/$devpath/modem_info"
#:/sys/kernel/ccci          md1_postfix  0644   radio       radio
# sys rule
DEVPATH=="/kernel/ccci", RUN+="/bin/chmod 0644 /sys/$devpath/md1_postfix", RUN+="/bin/chown radio:radio /sys/$devpath/md1_postfix"
#:/sys/kernel/ccci          md2_postfix  0644   radio       radio
# sys rule
DEVPATH=="/kernel/ccci", RUN+="/bin/chmod 0644 /sys/$devpath/md2_postfix", RUN+="/bin/chown radio:radio /sys/$devpath/md2_postfix"
#:/dev/eemcs*               0660   radio      radio
KERNEL=="eemcs*", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/emd*                 0660   radio      radio
KERNEL=="emd*", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:/dev/ccci_pcm_rx          0660   audio      audio
KERNEL=="ccci_pcm_rx", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/ccci_pcm_tx          0660   audio      audio
KERNEL=="ccci_pcm_tx", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/ccci_aud             0660   audio      audio
KERNEL=="ccci_aud", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/ccci2_aud            0660   audio      audio
KERNEL=="ccci2_aud", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/ccci3_aud            0660   audio      audio
KERNEL=="ccci3_aud", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/ccci_raw_audio       0660   audio      audio
KERNEL=="ccci_raw_audio", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/ccci3_raw_audio      0660   audio      audio
KERNEL=="ccci3_raw_audio", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/eemcs_aud            0660   audio      audio
KERNEL=="eemcs_aud", MODE="0660", GROUP="aid_audio", OWNER="aid_audio"
#:/dev/irtx                 0660   system     system
KERNEL=="irtx", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:/dev/ir-learning          0660   system     system
KERNEL=="ir-learning", MODE="0660", GROUP="aid_system", OWNER="aid_system"
#:# SGX device node
#:/dev/pvrsrvkm             0666   root       root
KERNEL=="pvrsrvkm", MODE="0666", GROUP="root", OWNER="root"
#:/dev/pvr_sync             0666   root       root
KERNEL=="pvr_sync", MODE="0666", GROUP="root", OWNER="root"
#:
#:#prize-added by tangan-add led breathe mode-begin
#:/sys/devices/platform/11014000.i2c/i2c-1/1-0064/leds/green   delay_on      0664  system   system
# sys rule
DEVPATH=="/devices/platform/11014000.i2c/i2c-1/1-0064/leds/green", RUN+="/bin/chmod 0664 /sys/$devpath/delay_on", RUN+="/bin/chown system:system /sys/$devpath/delay_on"
#:/sys/devices/platform/11014000.i2c/i2c-1/1-0064/leds/green   delay_off      0664  system   system
# sys rule
DEVPATH=="/devices/platform/11014000.i2c/i2c-1/1-0064/leds/green", RUN+="/bin/chmod 0664 /sys/$devpath/delay_off", RUN+="/bin/chown system:system /sys/$devpath/delay_off"
#:/sys/devices/platform/11014000.i2c/i2c-1/1-0064/leds/red   delay_on      0664  system   system
# sys rule
DEVPATH=="/devices/platform/11014000.i2c/i2c-1/1-0064/leds/red", RUN+="/bin/chmod 0664 /sys/$devpath/delay_on", RUN+="/bin/chown system:system /sys/$devpath/delay_on"
#:/sys/devices/platform/11014000.i2c/i2c-1/1-0064/leds/red   delay_off      0664  system   system
# sys rule
DEVPATH=="/devices/platform/11014000.i2c/i2c-1/1-0064/leds/red", RUN+="/bin/chmod 0664 /sys/$devpath/delay_off", RUN+="/bin/chown system:system /sys/$devpath/delay_off"
#:/sys/devices/platform/11014000.i2c/i2c-1/1-0064/leds/blue   delay_on      0664  system   system
# sys rule
DEVPATH=="/devices/platform/11014000.i2c/i2c-1/1-0064/leds/blue", RUN+="/bin/chmod 0664 /sys/$devpath/delay_on", RUN+="/bin/chown system:system /sys/$devpath/delay_on"
#:/sys/devices/platform/11014000.i2c/i2c-1/1-0064/leds/blue   delay_off      0664  system   system
# sys rule
DEVPATH=="/devices/platform/11014000.i2c/i2c-1/1-0064/leds/blue", RUN+="/bin/chmod 0664 /sys/$devpath/delay_off", RUN+="/bin/chown system:system /sys/$devpath/delay_off"
#:#prize-added by tangan-add led breathe mode-end
#:
#:#GPIO
#:/dev/mtgpio               0600   radio      root
KERNEL=="mtgpio", MODE="0600", GROUP="root", OWNER="aid_radio"
#:
#:
#:#FOR VIA MODEM
#:/dev/ttySDIO*             0660   radio      sdcard_rw
KERNEL=="ttySDIO*", MODE="0660", GROUP="aid_sdcard_rw", OWNER="aid_radio"
#:/dev/ttyRB*               0660   radio      radio
KERNEL=="ttyRB*", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:
#:# Mali node
#:/dev/mali                 0666   system     graphics
KERNEL=="mali", MODE="0666", GROUP="aid_graphics", OWNER="aid_system"
#:
#:# Change ION driver permission
#:/dev/ion                  0666   system     graphics
KERNEL=="ion", MODE="0666", GROUP="aid_graphics", OWNER="aid_system"
#:
#:#touch
#:/dev/touch                0660   root       system
KERNEL=="touch", MODE="0660", GROUP="aid_system", OWNER="root"
#:/dev/hotknot              0660   root       system
KERNEL=="hotknot", MODE="0660", GROUP="aid_system", OWNER="root"
#:
#:#hang_detect
#:/dev/RT_Monitor           0600   system     system
KERNEL=="RT_Monitor", MODE="0600", GROUP="aid_system", OWNER="aid_system"
#:/dev/kick_powerkey        0600   system     system
KERNEL=="kick_powerkey", MODE="0600", GROUP="aid_system", OWNER="aid_system"
#:
#:#MTK In-House TEE
#:/dev/ttyACM0              0660   radio      radio
KERNEL=="ttyACM0", MODE="0660", GROUP="aid_radio", OWNER="aid_radio"
#:
#:#prize lsw add for trustkernel tee start
#:#TrustKernel TEE
#:/dev/tkcoredrv           0666    root      root
KERNEL=="tkcoredrv", MODE="0666", GROUP="root", OWNER="root"
#:/dev/block/platform/bootdevice/by-name/sdrpmb 0660 root system
# Known droid dir block/ is for subsystem block
SYMLINK=="block/platform/bootdevice/by-name/sdrpmb", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", KERNEL=="platform/bootdevice/by-name/sdrpmb", MODE="0660", GROUP="aid_system", OWNER="root"
SUBSYSTEM=="block", DEVLINKS=="* platform/bootdevice/by-name/sdrpmb *|platform/bootdevice/by-name/sdrpmb *|* platform/bootdevice/by-name/sdrpmb|platform/bootdevice/by-name/sdrpmb", MODE="0660", GROUP="aid_system", OWNER="root"
#:#prize lsw add for trustkernel tee end
