potter: update ramdisk
This commit is contained in:
@@ -55,7 +55,9 @@ on post-fs
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
|
||||
on post-fs-data
|
||||
|
||||
# AK09912 calibration file directory
|
||||
mkdir /data/misc/akmd 0770 system compass
|
||||
|
||||
# Setup folders for security
|
||||
mkdir /persist/security 02770 mot_tpapi mot_tpapi
|
||||
mkdir /data/local/dbvc 0750 mot_tcmd shell
|
||||
@@ -103,6 +105,9 @@ on post-fs-data
|
||||
# Create directory for cutback
|
||||
mkdir /data/misc/cutback 0770 radio wifi
|
||||
|
||||
# Create directory for fm_radio
|
||||
mkdir /data/misc/fm_radio 0770 system system
|
||||
|
||||
#setup folder for WLAN WAPI
|
||||
mkdir /data/wapi_certificate 0750 system wifi
|
||||
chown system wifi /data/wapi_certificate
|
||||
@@ -159,11 +164,13 @@ on boot
|
||||
chown system system /sys/class/backlight/lcd-backlight:0/max_brightness
|
||||
chmod 0664 /sys/class/backlight/lcd-backlight:0/max_brightness
|
||||
chmod 0664 /sys/class/leds/lcd-backlight/brightness
|
||||
chown system system /sys/class/leds/white/brightness
|
||||
chmod 0664 /sys/class/leds/white/brightness
|
||||
chown system system /sys/class/leds/charging/brightness
|
||||
chmod 0664 /sys/class/leds/charging/brightness
|
||||
|
||||
# Change ownership for Dynamic-CABC feature
|
||||
chown system system /sys/class/graphics/fb0/cabc_mode
|
||||
# Change ownership for for HBM feature
|
||||
chown system system /sys/class/graphics/fb0/hbm
|
||||
# Change ownership for for ACL feature
|
||||
chown system system /sys/class/graphics/fb0/acl_mode
|
||||
|
||||
@@ -179,57 +186,35 @@ on boot
|
||||
chown system system /sys/kernel/range/near
|
||||
chmod 0660 /sys/kernel/range/near
|
||||
|
||||
# Change the ownership of display TE files for tcmds
|
||||
# Change ownership and permission for rear_sensor
|
||||
chown system system /sys/class/i2c-dev/i2c-2/device/2-0049/enable_sar
|
||||
chmod 0660 /sys/class/i2c-dev/i2c-2/device/2-0049/enable_sar
|
||||
chown system system /sys/class/i2c-dev/i2c-2/device/2-0049/set_delay_ms
|
||||
chmod 0660 /sys/class/i2c-dev/i2c-2/device/2-0049/set_delay_ms
|
||||
chown system system /sys/class/i2c-dev/i2c-6/device/6-0049/enable_sar
|
||||
chmod 0660 /sys/class/i2c-dev/i2c-6/device/6-0049/enable_sar
|
||||
chown system system /sys/class/i2c-dev/i2c-6/device/6-0049/set_delay_ms
|
||||
chmod 0660 /sys/class/i2c-dev/i2c-6/device/6-0049/set_delay_ms
|
||||
|
||||
# Change the ownership of display TE files for tcmds
|
||||
chown root mot_tcmd /sys/class/graphics/fb0/te_enable
|
||||
chown root mot_tcmd /sys/class/graphics/fb0/frame_counter
|
||||
|
||||
# Change ownership of aov related sysfs entries
|
||||
|
||||
# FPC device parameter permissions
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi12.0/nav
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi12.0/clk_enable
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi12.0/dev_enable
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi12.0/irq
|
||||
chown system mot_tcmd /sys/bus/spi/devices/spi12.0/irq_cnt
|
||||
chmod 0440 /sys/bus/spi/devices/spi12.0/irq_cnt
|
||||
|
||||
# Change ownership of aov related sysfs entries
|
||||
wait /sys/kernel/aov/event
|
||||
chown audio audio /sys/kernel/aov/trigger
|
||||
chown audio audio /sys/kernel/aov/register
|
||||
chown audio audio /sys/kernel/aov/event
|
||||
|
||||
# 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
|
||||
|
||||
# STML4 driver parameter permissions
|
||||
chown root mot_tcmd /sys/module/motosh/parameters/irq_disable
|
||||
chmod 0660 /sys/module/motosh/parameters/irq_disable
|
||||
|
||||
#STML4 device permissions
|
||||
chown system compass /dev/motosh
|
||||
chmod 0660 /dev/motosh
|
||||
chown compass compass /dev/motosh_as
|
||||
chmod 0660 /dev/motosh_as
|
||||
chown compass compass /dev/motosh_ms
|
||||
chmod 0660 /dev/motosh_ms
|
||||
chown compass compass /sys/devices/virtual/motosh/motosh_as/timestamp_time_ns
|
||||
chmod 0440 /sys/devices/virtual/motosh/motosh_as/timestamp_time_ns
|
||||
chown compass compass /sys/devices/virtual/motosh/motosh_as/rv_6axis_update_rate
|
||||
chmod 0660 /sys/devices/virtual/motosh/motosh_as/rv_6axis_update_rate
|
||||
chown compass compass /sys/devices/virtual/motosh/motosh_as/rv_9axis_update_rate
|
||||
chmod 0660 /sys/devices/virtual/motosh/motosh_as/rv_9axis_update_rate
|
||||
chown compass compass /sys/devices/virtual/motosh/motosh_as/game_rv_update_rate
|
||||
chmod 0660 /sys/devices/virtual/motosh/motosh_as/game_rv_update_rate
|
||||
chown compass compass /sys/devices/virtual/motosh/motosh_as/gravity_update_rate
|
||||
chmod 0660 /sys/devices/virtual/motosh/motosh_as/gravity_update_rate
|
||||
chown compass compass /sys/devices/virtual/motosh/motosh_as/linear_accel_update_rate
|
||||
chmod 0660 /sys/devices/virtual/motosh/motosh_as/linear_accel_update_rate
|
||||
|
||||
# Quiet binder logs
|
||||
write /sys/module/binder/parameters/debug_mask 0x5
|
||||
|
||||
@@ -315,3 +300,6 @@ on property:sys.wifi.tethering=true
|
||||
|
||||
on property:sys.wifi.tethering=false
|
||||
write /sys/class/net/rmnet_data0/queues/rx-0/rps_cpus ${sys.rmnet_vnd.rps_mask}
|
||||
|
||||
on property:ro.bootmode=normal
|
||||
write /sys/module/usb3813_hub/parameters/boost_val 3
|
||||
|
||||
Reference in New Issue
Block a user