init.rc: add permission to dump battery debugging data am: e3a70263b6
am: 43729e921a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18984406 Change-Id: Ia37bc9846cccf3195200d3b4abecd4ee5bc5eea6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2d3b0d1523
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
|
||||
|
@ -481,6 +481,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