init.rc: add permission to dump battery debugging data
Bug: 205259954 Signed-off-by: Jenny Ho <hsiufangho@google.com> Change-Id: I6d71cc6fb11e1881d78a81f36162e3d9493654bd
This commit is contained in:
parent
437f200622
commit
e3a70263b6
2 changed files with 9 additions and 2 deletions
|
@ -20,6 +20,9 @@ on init
|
|||
chown system system /d/maxfg/fg_model
|
||||
chown system system /d/maxfg/registers
|
||||
chown system system /d/maxfg_base/fg_model
|
||||
chown system system /d/maxfg_base/registers
|
||||
chown system system /d/maxfg_flip/registers
|
||||
chown system system /d/maxfg_flip/nv_registers
|
||||
|
||||
on property:vendor.debug.ramdump.force_crash=true
|
||||
write /sys/kernel/pixel_debug/trigger "null"
|
||||
|
|
|
@ -225,6 +225,7 @@ on init
|
|||
# Dump maxfg
|
||||
chown system system /sys/class/power_supply/maxfg/m5_model_state
|
||||
chown system system /sys/class/power_supply/maxfg_base/m5_model_state
|
||||
chown system system /dev/maxfg_history
|
||||
|
||||
# pca9468 : slider+77729: 6-0057; slider+MW A1: 5-0057
|
||||
chown system system /d/regmap/5-0057-pca9468-mains/registers
|
||||
|
@ -234,8 +235,7 @@ on init
|
|||
chown system system /sys/devices/platform/10970000.hsi2c/i2c-5/5-0050/eeprom
|
||||
chown system system /sys/devices/platform/10970000.hsi2c/i2c-4/4-0050/eeprom
|
||||
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-6/6-0050/eeprom
|
||||
chown system system /dev/battery_history
|
||||
chmod 0644 /dev/battery_history
|
||||
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-7/7-0050/eeprom
|
||||
|
||||
# Modem temperature driver
|
||||
chown radio system /sys/devices/platform/cp-tm1/cp_temp
|
||||
|
@ -483,6 +483,10 @@ on early-boot
|
|||
chown system system /dev/sys/block/bootdevice/slowio_unmap_cnt
|
||||
chown system system /dev/sys/block/bootdevice/slowio_sync_cnt
|
||||
|
||||
# Dump Battery EEPROM history for pixelstats
|
||||
chown system system /dev/battery_history
|
||||
chmod 0644 /dev/battery_history
|
||||
|
||||
on boot
|
||||
|
||||
# Allow to access debugfs for system:system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue