diff options
author | Jenny Ho <hsiufangho@google.com> | 2020-12-10 14:33:16 +0800 |
---|---|---|
committer | Jenny Ho <hsiufangho@google.com> | 2020-12-10 14:33:16 +0800 |
commit | ec6890bdabae6a8f231c1fbb0dd5c0de5c929c17 (patch) | |
tree | 2de57f86090c40bce2a8cb5372e9f05e3c008d1f | |
parent | 2a76dcd035ac86630a1bdb105a9ed1b0c55a46e0 (diff) | |
download | redfin-ec6890bdabae6a8f231c1fbb0dd5c0de5c929c17.tar.gz |
dumpstate: Support dump TEMP/TRICKLE/DWELL-DEFEND setting
Bug: 175172404
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ie41dae64941bdade2f5308ad5a9fb3a47c5d2ca7
-rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 0cdad23..0def50c 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -704,6 +704,9 @@ Return<DumpstateStatus> DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h DumpFileToFd(fd, "TTF details", "/sys/class/power_supply/battery/ttf_details"); DumpFileToFd(fd, "TTF stats", "/sys/class/power_supply/battery/ttf_stats"); 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`\";"}); + 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"}); + RunCommandToFd(fd, "TEMP-DEFEND Config", {"/vendor/bin/sh", "-c", " cd /sys/devices/platform/soc/soc:google,charger/; for f in `ls bd_*` ; do echo \"$f: `cat $f`\" ; done"}); RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1 && cat product && cat bcdDevice; cat descriptors | od -t x1 -w16 -N96"}); RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in `ls /sys/class/power_supply/*/uevent` ; do echo \"------ $f\\n`cat $f`\\n\" ; done"}); RunCommandToFd(fd, "PMIC Votables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/pmic-votable/*/status"}); |