mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 05:38:17 +00:00
dumpstate: Mitigation logger readout am: fb6e5cf647
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18605334 Change-Id: Ie8edfc727da3b1af94952485643b0553cd9afad7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -453,6 +453,7 @@ void Dumpstate::dumpPowerSection(int fd) {
|
||||
if (!PropertiesHelper::IsUserBuild()) {
|
||||
RunCommandToFd(fd, "gvotables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/gvotables/*/status"});
|
||||
}
|
||||
DumpFileToFd(fd, "Lastmeal", "/data/vendor/mitigation/lastmeal.txt");
|
||||
RunCommandToFd(fd, "Mitigation Stats", {"/vendor/bin/sh", "-c", "echo \"Source\\t\\tCount\\tSOC\\tTime\\tVoltage\"; "
|
||||
"for f in `ls /sys/devices/virtual/pmic/mitigation/last_triggered_count/*` ; "
|
||||
"do count=`cat $f`; "
|
||||
|
||||
Reference in New Issue
Block a user