dump_power: add eeprom path to dump
Bug: 298219364 Change-Id: I233a92e51b215cc712a9344fa369c1a0f7d78d5f Signed-off-by: Jenny Ho <hsiufangho@google.com>
This commit is contained in:
parent
7d55c7a459
commit
d175d70886
2 changed files with 6 additions and 1 deletions
|
@ -240,6 +240,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-5/5-0050/eeprom
|
||||||
chown system system /sys/devices/platform/10970000.hsi2c/i2c-4/4-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 /sys/devices/platform/10da0000.hsi2c/i2c-6/6-0050/eeprom
|
||||||
|
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom
|
||||||
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
|
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
|
||||||
chown system system /dev/battery_history
|
chown system system /dev/battery_history
|
||||||
chmod 0644 /dev/battery_history
|
chmod 0644 /dev/battery_history
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/vendor/bin/sh
|
#!/vendor/bin/sh
|
||||||
build_type="$(getprop ro.build.type)"
|
build_type="$(getprop ro.build.type)"
|
||||||
|
|
||||||
echo "\n------ Power Stats Times ------"
|
echo "\n------ Power Stats Times ------"
|
||||||
echo -n "Boot: " && /vendor/bin/uptime -s && echo -n "Now: " && date;
|
echo -n "Boot: " && /vendor/bin/uptime -s && echo -n "Now: " && date;
|
||||||
|
|
||||||
|
@ -242,6 +241,11 @@ then
|
||||||
xxd /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
|
xxd /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom" ]
|
||||||
|
then
|
||||||
|
xxd /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom
|
||||||
|
fi
|
||||||
|
|
||||||
echo "\n------ Charger Stats ------"
|
echo "\n------ Charger Stats ------"
|
||||||
cat "/sys/class/power_supply/battery/charge_details"
|
cat "/sys/class/power_supply/battery/charge_details"
|
||||||
if [ $build_type = "userdebug" ]
|
if [ $build_type = "userdebug" ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue