how to set battery % in android mobile using adb command?

RVR picture RVR · Apr 23, 2018 · Viewed 6.9k times · Source

If suppose 40% battery is available in my android device, what is the adb command to set the battery % to 30? Using adb command can set battery % only to lower level / higher level also?

Answer

Sagar picture Sagar · Apr 23, 2018

You can use following command:

adb shell dumpsys battery set level 30