Skip to content Skip to sidebar Skip to footer

Android App Power Consumption

How to check the power consumption in each applications in Android? At least the power consumption should be relative when compared with different applications and these applicatio

Solution 1:

There is a research paper called “Accurate Online Power Estimation and Automatic Battery Behavior Based Power Model Generation for Smartphones”. For this paper the researchers developed a tool called PowerTutor, the sources of which you can find here. It should be mentioned that your device has to be rooted to use this application.

Solution 2:

First, the powertutor from Google Play is out of date. I've checked the source code of it, and find that the power estimation model is for some old mobile models. The value from power tutor is way smaller than the actual power consumption.

Therefore, I would recommend you to use Battery Historian which is developed by google used to estimate battery consumption of each App. But it's written in Python/Go. It will illustrate the hardware invocation in a html file. And you can find battery consumption of each App in a corresponding text file.

Battery Historian Example

Solution 3:

Check out Powertutor. It is in my experience the best application out there to measure application wise power consumption. It is not 100% accurate but is good enough for estimations.

Solution 4:

You cannot programatically check the battery consumption for each application. Instead you can check the overall consumption like this:

energyLeftInmAh = device battery capacity in mAh * battery level in % * 0.01;

E.g Nexus 5, battery capacity: 2300 mAh

  mBatteryManager = (BatteryManager)MainActivity.this.getSystemService(Context.BATTERY_SERVICE);
  int level = mBatteryManager.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY);
  double mAh = (2300 * level * 0.01);

Solution 5:

(disclaimer: I co-founded the company which built the below mentioned product)

Try Little Eye from Little Eye Labs, that does exactly this. One can track an individual app's power and get the breakdown by CPU/display & Wifi (the upcoming version will support GPS and 3G). It also goes beyond power and tracks data, memory and CPU consumption of an individual app. Note its a desktop tool that you need to download and install from here.

Hope this helps.

Post a Comment for "Android App Power Consumption"