How to check the battery consumption of a device's sensors?

3

I'm developing an application for Android, where I'll use embedded sensors (eg GPS and Accelerometer) of mobile devices, but before I need to test the consumption of these sensors, because the energy savings of the devices furniture is my goal. I wonder if there is an application that checks the power consumption of embedded sensors?

    
asked by anonymous 07.07.2016 / 19:32

1 answer

5

Perhaps the best case scenario for you is PowerTutor , it measures battery consumption in detail, including some graphics for analysis.

From Android 5.0 , you can also use an adb command to download all battery usage:

adb shell dumpsys batterystats > dump.txt

This command will generate a dump.txt file with the entire battery usage report.

    
07.07.2016 / 20:08