dumpstate: dump battery eeprom into bugreport
Add coresponse path and permission Bug: 255894697 Change-Id: I597291bba2d17af99825dbe80a8f1436dc73e58f Signed-off-by: Jenny Ho <hsiufangho@google.com>
This commit is contained in:
parent
bb41a6b07f
commit
8ce88826e6
2 changed files with 3 additions and 0 deletions
|
@ -440,6 +440,8 @@ void Dumpstate::dumpPowerSection(int fd) {
|
|||
RunCommandToFd(fd, "Battery EEPROM", {"/vendor/bin/sh", "-c", "xxd /sys/devices/platform/10da0000.hsi2c/i2c-6/6-0050/eeprom"});
|
||||
} else if (!stat("/sys/devices/platform/10da0000.hsi2c/i2c-7/7-0050/eeprom", &buffer)) {
|
||||
RunCommandToFd(fd, "Battery EEPROM", {"/vendor/bin/sh", "-c", "xxd /sys/devices/platform/10da0000.hsi2c/i2c-7/7-0050/eeprom"});
|
||||
} else if (!stat("/sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom", &buffer)) {
|
||||
RunCommandToFd(fd, "Battery EEPROM", {"/vendor/bin/sh", "-c", "xxd /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom"});
|
||||
}
|
||||
|
||||
DumpFileToFd(fd, "Charger Stats", "/sys/class/power_supply/battery/charge_details");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue