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?
            Asked
            
        
        
            Active
            
        
            Viewed 1.6k times
        
    2 Answers
24
            You can use following command:
adb shell dumpsys battery set level 30
        Sagar
        
- 23,903
 - 4
 - 62
 - 62
 
- 
                    Using adb command can set battery % only to lower level / higher level also? – RVR May 11 '20 at 18:35
 - 
                    Works with Android Terminal emulator, after `su -` inside x86 emulated terminal on Android 9. – Wellington1993 May 21 '21 at 01:03
 
3
            
            
        Use the following command:
adb shell dumpsys battery set level 30
And use this to reset the level:
adb shell dumpsys battery reset
        Mrinmoy Haloi
        
- 143
 - 1
 - 7
 
- 
                    1Thanks I set my battery to 420% and could not figure out how to fix it until I saw your post – Gradyn Wursten Nov 04 '22 at 20:06
 -