Merge "dump_power: add eeprom path to dump" into udc-qpr-dev
This commit is contained in:
commit
511a4e9bda
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