diff options
author | Jenny Ho <hsiufangho@google.com> | 2022-03-28 16:59:26 +0800 |
---|---|---|
committer | Jenny Ho <hsiufangho@google.com> | 2022-03-28 16:59:26 +0800 |
commit | bfc4164afca350575a5daca8425c50be20e4fa74 (patch) | |
tree | 7809fc16bfddb8410883068df22e4255a91cd29b | |
parent | 2beae2d783418db737b7d5159a6ce76807c15092 (diff) | |
download | redfin-bfc4164afca350575a5daca8425c50be20e4fa74.tar.gz |
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
-rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 62f6379..85f8ed0 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -685,6 +685,7 @@ Return<DumpstateStatus> DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h DumpFileToFd(fd, "TTF", "/dev/logbuffer_ttf"); DumpFileToFd(fd, "TTF details", "/sys/class/power_supply/battery/ttf_details"); DumpFileToFd(fd, "TTF stats", "/sys/class/power_supply/battery/ttf_stats"); + DumpFileToFd(fd, "aacr_state", "/sys/class/power_supply/battery/aacr_state"); DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports"); RunCommandToFd(fd, "TRICKLE-DEFEND Config", {"/vendor/bin/sh", "-c", " cd /sys/devices/platform/soc/soc:google,battery/power_supply/battery/; echo \"bd_trickle_enable: `cat bd_trickle_enable`\"; echo \"bd_trickle_cnt: `cat bd_trickle_cnt`\"; echo \"bd_trickle_recharge_soc: `cat bd_trickle_recharge_soc`\"; echo \"bd_trickle_dry_run: `cat bd_trickle_dry_run`\"; echo \"bd_trickle_reset_sec: `cat bd_trickle_reset_sec`\""}); RunCommandToFd(fd, "DWELL-DEFEND Config", {"/vendor/bin/sh", "-c", " cd /sys/devices/platform/soc/soc:google,charger/; for f in `ls charge_s*` ; do echo \"$f: `cat $f`\" ; done"}); @@ -696,6 +697,7 @@ Return<DumpstateStatus> DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h if (!PropertiesHelper::IsUserBuild()) { RunCommandToFd(fd, "Google Charger", {"/vendor/bin/sh", "-c", "cd /d/google_charger/; for f in `ls pps_*` ; do echo \"$f: `cat $f`\" ; done"}); RunCommandToFd(fd, "Google Battery", {"/vendor/bin/sh", "-c", "cd /d/google_battery/; for f in `ls ssoc_*` ; do echo \"$f: `cat $f`\" ; done"}); + DumpFileToFd(fd, "Charging table dump", "/d/google_battery/chg_raw_profile"); } RunCommandToFd(fd, "Battery EEPROM", {"/vendor/bin/sh", "-c", "xxd /sys/devices/platform/soc/98c000.i2c/i2c-1/1-0050/1-00500/nvmem"}); |