How can I change the battery level (from 50% to 70% and not charging) on emulator in Windows OS? There are some guides, but all of them are for Ubuntu.
If you are using a remote emulator, like android x86 you can use the following:
adb connect
adb shell dumpsys battery set level 90