How to programatically set time of latest full charge on Android?

44 views Asked by At

How, if at all, is it possible to manually alter the timestamp of latest full battery charge a system call on Android? How does the adb command alter the value?

1

There are 1 answers

1
Conny Ostrom On
adb shell dumpsys batterystats --reset

That will reset the battery stats. Its files are found in /data/system, but those are not accessable unless you are rooted.