dump_power_201: update battery fg dump data
- add battery eeprom dump path - adjusted maxfg names for better readability Bug: 284878175 Change-Id: I162314f580eace926c9cd661d8d1e04dea131fe4 Signed-off-by: Jenny Ho <hsiufangho@google.com>
This commit is contained in:
parent
1c6c8a8c30
commit
8352219e0d
2 changed files with 10 additions and 4 deletions
|
@ -241,6 +241,7 @@ on init
|
|||
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-5/5-0050/eeprom
|
||||
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-6/6-0050/eeprom
|
||||
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-7/7-0050/eeprom
|
||||
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-9/9-0050/eeprom
|
||||
|
||||
# Loading common kernel modules in background
|
||||
start init_display
|
||||
|
|
|
@ -51,7 +51,7 @@ then
|
|||
cat "/sys/class/power_supply/maxfg/m5_model_state"
|
||||
echo "\n------ maxfg ------"
|
||||
cat "/dev/logbuffer_maxfg"
|
||||
echo "\n------ maxfg ------"
|
||||
echo "\n------ maxfg_monitor ------"
|
||||
cat "/dev/logbuffer_maxfg_monitor"
|
||||
else
|
||||
echo "\n------ Power supply property maxfg_base ------"
|
||||
|
@ -64,9 +64,9 @@ else
|
|||
cat "/dev/logbuffer_maxfg_base"
|
||||
echo "\n------ maxfg_secondary ------"
|
||||
cat "/dev/logbuffer_maxfg_secondary"
|
||||
echo "\n------ maxfg_base ------"
|
||||
echo "\n------ maxfg_base_monitor ------"
|
||||
cat "/dev/logbuffer_maxfg_base_monitor"
|
||||
echo "\n------ maxfg_secondary ------"
|
||||
echo "\n------ maxfg_secondary_monitor ------"
|
||||
cat "/dev/logbuffer_maxfg_secondary_monitor"
|
||||
echo "\n------ google_dual_batt ------"
|
||||
cat "/dev/logbuffer_dual_batt"
|
||||
|
@ -75,7 +75,7 @@ fi
|
|||
if [ -e "/dev/maxfg_history" ]
|
||||
then
|
||||
echo "\n------ Maxim FG History ------"
|
||||
cat "/dev/maxfg_history"
|
||||
xxd "/dev/maxfg_history"
|
||||
fi
|
||||
|
||||
if [ -d "/sys/class/power_supply/dock" ]
|
||||
|
@ -243,6 +243,11 @@ then
|
|||
xxd /sys/devices/platform/10da0000.hsi2c/i2c-7/7-0050/eeprom
|
||||
fi
|
||||
|
||||
if [ -e "/sys/devices/platform/10da0000.hsi2c/i2c-9/9-0050/eeprom" ]
|
||||
then
|
||||
xxd /sys/devices/platform/10da0000.hsi2c/i2c-9/9-0050/eeprom
|
||||
fi
|
||||
|
||||
echo "\n------ Charger Stats ------"
|
||||
cat "/sys/class/power_supply/battery/charge_details"
|
||||
if [ $build_type = "userdebug" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue