init.rc: add permission to dump battery debugging data am: e3a70263b6

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18984406

Change-Id: Ia5a63a2ab378ed115792fd697486baf91426fb92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jenny Ho 2022-06-21 06:57:26 +00:00 committed by Automerger Merge Worker
commit 43729e921a
2 changed files with 9 additions and 2 deletions

View file

@ -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"

View file

@ -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