Android adb shell dumpsys battery reset

user1563001 picture user1563001 · Nov 10, 2016 · Viewed 8k times · Source

What does this command do in Android headset?

adb shell dumpsys battery reset

Do I need to do anything else after executing this command against a handset?

Answer

Alex P. picture Alex P. · Nov 10, 2016

adb shell dumpsys battery prints out battery service state. For testing purposes you might want to mock some battery state properties with adb shell dumpsys battery set [property] [value] command.

The adb shell dumpsys battery reset gets the device out of the simulation mode back to reporting actual state.