potter: add fingerprint and sensors perms
This commit is contained in:
@@ -57,6 +57,9 @@ on post-fs
|
||||
on post-fs-data
|
||||
# AK09912 calibration file directory
|
||||
mkdir /data/misc/akmd 0770 system compass
|
||||
|
||||
#setup folder for WLAN WAPI
|
||||
chmod 0770 /data/wapi_certificate
|
||||
|
||||
# Setup folders for security
|
||||
mkdir /persist/security 02770 mot_tpapi mot_tpapi
|
||||
@@ -158,6 +161,37 @@ on boot
|
||||
# restore default_message_loglevel to KERN_WARNING
|
||||
write /proc/sys/kernel/printk "7 4 1 7"
|
||||
|
||||
# STML0 driver parameter permissions
|
||||
chown root mot_tcmd /sys/module/stml0xx/parameters/irq_disable
|
||||
chmod 0660 /sys/module/stml0xx/parameters/irq_disable
|
||||
|
||||
#STML0 device permissions
|
||||
chown system compass /dev/stml0xx
|
||||
chmod 0660 /dev/stml0xx
|
||||
chown compass compass /dev/stml0xx_as
|
||||
chmod 0660 /dev/stml0xx_as
|
||||
chown compass compass /dev/stml0xx_ms
|
||||
chmod 0660 /dev/stml0xx_ms
|
||||
chown compass compass /dev/stml0xx_akm
|
||||
chmod 0660 /dev/stml0xx_akm
|
||||
|
||||
# Change permission for type C params
|
||||
chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/CC_state
|
||||
chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/enable_vconn
|
||||
# Change ownership and permission for AMPS factory testing
|
||||
chown root mot_tcmd /sys/class/i2c-adapter/i2c-2/2-002d/enable
|
||||
chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/enable
|
||||
chown root mot_tcmd /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd
|
||||
chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd
|
||||
|
||||
# Change permission for fingerprint sensor
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/nav
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/clk_enable
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/dev_enable
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/irq
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/irq_cnt
|
||||
chmod 0440 /sys/bus/spi/devices/spi8.0/irq_cnt
|
||||
|
||||
# Change ownership and permission for backlight
|
||||
chown system system /sys/class/backlight/lcd-backlight:0/brightness
|
||||
chmod 0664 /sys/class/backlight/lcd-backlight:0/brightness
|
||||
|
||||
Reference in New Issue
Block a user