dumpstate: dump AACR related data

Add charging table and capacity dump for
Age Adjusted Charge Rate (AACR) feature

Bug: 209987670
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ic9dd435557bf4e941fcbdb48fb134c938dd5be83
(cherry picked from commit 5b71630967)
This commit is contained in:
Jenny Ho 2022-02-14 09:51:58 +08:00
parent 31d519c4b4
commit 95c0f5c498

View file

@ -383,6 +383,7 @@ void DumpstateDevice::dumpPowerSection(int fd) {
DumpFileToFd(fd, "TTF details", "/sys/class/power_supply/battery/ttf_details");
DumpFileToFd(fd, "TTF stats", "/sys/class/power_supply/battery/ttf_stats");
DumpFileToFd(fd, "maxq", "/dev/logbuffer_maxq");
DumpFileToFd(fd, "aacr_state", "/sys/class/power_supply/battery/aacr_state");
RunCommandToFd(fd, "TRICKLE-DEFEND Config", {"/vendor/bin/sh", "-c",
" cd /sys/devices/platform/google,battery/power_supply/battery/;"
@ -398,6 +399,7 @@ void DumpstateDevice::dumpPowerSection(int fd) {
if (!PropertiesHelper::IsUserBuild()) {
DumpFileToFd(fd, "DC_registers dump", "/sys/class/power_supply/pca9468-mains/device/registers_dump");
DumpFileToFd(fd, "Charging table dump", "/d/google_battery/chg_raw_profile");
RunCommandToFd(fd, "fg_model", {"/vendor/bin/sh", "-c",