blob: 7a00d0d3e71e1a1d75942fc3fa5a76778d686bd5 [file] [log] [blame]
#change partition permission
# eMMC only
/dev/block/mmcblk0 0660 root system
/dev/block/mmcblk0boot0 0660 root system
/dev/block/mmcblk0boot1 0660 root system
/dev/misc-sd 0660 root system
# UFS only
/dev/block/sda 0660 root system
/dev/block/sdb 0660 root system
/dev/block/sdc 0660 root system
# eMMC/UFS common
/dev/block/platform/bootdevice/by-name/misc2 0660 root system
/dev/block/platform/bootdevice/by-name/boot 0640 root system
/dev/block/platform/bootdevice/by-name/recovery 0640 root system
/dev/block/platform/bootdevice/by-name/secro 0640 root system
/dev/block/platform/bootdevice/by-name/seccfg 0660 root system
/dev/block/platform/bootdevice/by-name/proinfo 0660 root system
/dev/block/platform/bootdevice/by-name/nvram 0660 root system
/dev/block/platform/bootdevice/by-name/para 0660 root system
/dev/block/platform/bootdevice/by-name/logo 0660 root system
/dev/block/platform/bootdevice/by-name/frp 0660 root system
/dev/block/platform/bootdevice/by-name/md1img 0640 root system
/dev/block/platform/bootdevice/by-name/md1img_a 0640 root system
/dev/block/platform/bootdevice/by-name/md1img_b 0640 root system
/dev/block/platform/bootdevice/by-name/md1dsp 0660 root system
/dev/block/platform/bootdevice/by-name/boot_para 0640 root system
# OTP
/dev/otp 0660 system system
/dev/block/platform/bootdevice/by-name/otp 0660 root system
# Connectivity
/dev/stpwmt 0660 system system
/dev/wmtdetect 0660 system system
/dev/fw_log_wmt 0660 system system
# BT
/dev/stpbt 0660 bluetooth bluetooth
/dev/fw_log_bt 0660 bluetooth bluetooth
# GPS
/dev/stpgps 0660 gps gps
/dev/gps 0660 gps system
/dev/fw_log_gps 0660 gps gps
/dev/gps_emi 0660 gps gps
# ANT
/dev/stpant 0660 system system
# WIFI
/dev/wmtWifi 0660 wifi wifi
/dev/fw_log_wifi 0660 wifi wifi
# FMRadio
/dev/fm 0660 media media
# NFC
/dev/msr3110 0666 root root
/dev/mt6605 0660 nfc radio
/dev/st21nfc 0660 nfc radio
# MTK BTIF driver
/dev/btif 0600 system system
# Trusty driver
/dev/trusty-ipc-dev0 0660 system system
# RPMB (for Trusty)
/dev/block/mmcblk0rpmb 0660 root system
# TrustonicTEE driver
/dev/mobicore 0600 system system
/dev/mobicore-user 0666 system system
/dev/t-base-tui 0666 system system
# add the read write right of ttyUSB*
/dev/bus/usb/* 0660 root usb
/dev/ttyUSB0 0660 radio radio
/dev/ttyUSB1 0660 radio radio
/dev/ttyUSB2 0660 radio radio
/dev/ttyUSB3 0660 radio radio
/dev/ttyUSB4 0660 radio 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
/dev/ccci* 0660 radio radio
/dev/ttyC* 0660 radio radio
/sys/kernel/ccci modem_info 0644 radio radio
/sys/kernel/ccci md1_postfix 0644 radio radio
/sys/kernel/ccci md2_postfix 0644 radio radio
/dev/eemcs* 0660 radio radio
/dev/emd* 0660 radio radio
/dev/ccci_pcm_rx 0660 audio audio
/dev/ccci_pcm_tx 0660 audio audio
/dev/ccci_aud 0660 audio audio
/dev/ccci2_aud 0660 audio audio
/dev/ccci3_aud 0660 audio audio
/dev/ccci_raw_audio 0660 audio audio
/dev/ccci3_raw_audio 0660 audio audio
/dev/eemcs_aud 0660 audio audio
/dev/irtx 0660 system system
/dev/ir-learning 0660 system system
# SGX device node
/dev/pvrsrvkm 0666 root root
/dev/pvr_sync 0666 root root
#ifdef VENDOR_EDIT
#Qingwen.Liu@RM.BSP.Fingerprint.Basic. 2019/09/29, add for goodix device policy start
/dev/goodix_fp 0666 system system
#Qingwen.Liu@RM.BSP.Fingerprint.Basic. 2019/09/29, add for goodix device policy end
#endif VENDOR_EDIT
#ifdef VENDOR_EDIT
#Qingwen.Liu@RM.BSP.Fingerprint.Basic. 2019/09/29, add for fpc device policy start
/sys/bus/platform/devices/fpc_interrupt clk_enable 0660 system system
/sys/bus/platform/devices/fpc_interrupt irq 0660 system system
/sys/bus/platform/devices/fpc_interrupt irq_enable 0660 system system
/sys/bus/platform/devices/fpc_interrupt wakelock_enable 0660 system system
#Qingwen.Liu@RM.BSP.Fingerprint.Basic. 2019/09/29, add for fpc device policy end
#endif VENDOR_EDIT
/sys/devices/platform/leds-mt65xx/leds/green delay_on 0664 system system
/sys/devices/platform/leds-mt65xx/leds/green delay_off 0664 system system
/sys/devices/platform/leds-mt65xx/leds/red delay_on 0664 system system
/sys/devices/platform/leds-mt65xx/leds/red delay_off 0664 system system
/sys/devices/platform/leds-mt65xx/leds/blue delay_on 0664 system system
/sys/devices/platform/leds-mt65xx/leds/blue delay_off 0664 system system
/sys/class/leds/green delay_on 0664 system system
/sys/class/leds/green delay_off 0664 system system
/sys/class/leds/red delay_on 0664 system system
/sys/class/leds/red delay_off 0664 system system
/sys/class/leds/blue delay_on 0664 system system
/sys/class/leds/blue delay_off 0664 system system
#GPIO
/dev/mtgpio 0600 radio root
#FOR VIA MODEM
/dev/ttySDIO* 0660 radio sdcard_rw
/dev/ttyRB* 0660 radio radio
# Mali node
/dev/mali 0666 system graphics
# Change ION driver permission
/dev/ion 0666 system graphics
#touch
/dev/touch 0660 root system
/dev/hotknot 0660 root system
#hang_detect
/dev/RT_Monitor 0600 system system
/dev/kick_powerkey 0600 system system
#MTK In-House TEE
/dev/ttyACM0 0660 radio radio