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?
how to set battery % in android mobile using adb command?
Asked Answered
You can use following command:
adb shell dumpsys battery set level 30
Using adb command can set battery % only to lower level / higher level also? –
Fletafletch
Works with Android Terminal emulator, after
su -
inside x86 emulated terminal on Android 9. –
Forgo Use the following command:
adb shell dumpsys battery set level 30
And use this to reset the level:
adb shell dumpsys battery reset
Thanks I set my battery to 420% and could not figure out how to fix it until I saw your post –
Bloodmobile
Love to hear that –
Incorporable
© 2022 - 2024 — McMap. All rights reserved.