Can anyone tell me how can I simulate low battery in my rooted device?
I gone through this question but did not find much information on this.
Use the following commands
To simulate the device being unplugged:
adb shell dumpsys battery unplug
To test how the device behaves under low power conditions:
adb shell settings put global low_power 1
Once you have finished your testing, you can undo your manual device settings with this command:
adb shell dumpsys battery reset