diff options
author | Jenny Ho <hsiufangho@google.com> | 2022-06-19 01:15:36 +0000 |
---|---|---|
committer | Jenny Ho <hsiufangho@google.com> | 2022-06-21 06:33:43 +0000 |
commit | e3a70263b645682240d6095aca3540137b1ff26d (patch) | |
tree | a18edcbc8e5f27a1e69a10332c27f03619757c19 /conf | |
parent | 437f20062268881a242462856e04e32751325d93 (diff) | |
download | gs201-e3a70263b645682240d6095aca3540137b1ff26d.tar.gz |
init.rc: add permission to dump battery debugging data
Bug: 205259954
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6d71cc6fb11e1881d78a81f36162e3d9493654bd
Diffstat (limited to 'conf')
-rw-r--r-- | conf/init.debug.rc | 3 | ||||
-rw-r--r-- | conf/init.gs201.rc | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/conf/init.debug.rc b/conf/init.debug.rc index 88e8a17..cd80ae6 100644 --- a/conf/init.debug.rc +++ b/conf/init.debug.rc @@ -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" diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index e59bb67..1054fed 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -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 |