I’m looking for battery parameter in Ruby that’s tells me the usage while the app is running.
I want to take the battery status snapshot in the beginning of the run, take another snapshot in the end of the run and then calculate the usage.
Battery level status won’t give me the result that I need – the app runs are shorts in my testing and the % won’t change or won’t give me what I need.
I abled to connect to the device wireless for those tests
(the command: adb shell setprop persist.usb.chgdisabled 1
didn’t work).
The command adb shell dumpsys battery
won’t give me anything.
Maybe it is the command adb shell dumpsys batteryinfo
Your thoughts?