• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Battery drain & timer

yaxattax

Newbie
Jun 29, 2011
13
0
Hi all,

I am looking for an application that can put the phone under stress (do things that consume battery) and measure how long it took to drain the battery. I ask for this as I have a second battery and I would like to measure how it compares to the original one.

If there are alternative ways to determine the amount of energy stored within the phone battery (without hooking up some circuitry), I would also like to know.

Regards
 
Usually battery tests differ, the most common battery life test for both laptops and cellphones that does not require apps or external circuitry is a video playback test. Slap on a 720p video in mkv format with heavy graphics (transformers 3, avatar, etc) (if phone supports it, or whatever is the best video quality it can take) as that would push the CPU and GPU to quite some stress, and see how long it goes. Make sure to play the exact same video on both runs.
 
Upvote 0
Surprised an app like this doesn't exist. A battery benchmark of sorts. Would be great for comparing custom roms and android phones to each other!! Could even have it poll running processes to keep the results accurate (phone A had 100 processes running while phone b only had 50). Someone code this up!

In a comical side note, I remember a "hand warmer" app that presumeably stressed your cpu out in order to heat the phone up. Maybe find that app, let it run, and time it with a stopwatch? lol.
 
Upvote 0
Surprised an app like this doesn't exist. A battery benchmark of sorts. Would be great for comparing custom roms and android phones to each other!! Could even have it poll running processes to keep the results accurate (phone A had 100 processes running while phone b only had 50). Someone code this up!

In a comical side note, I remember a "hand warmer" app that presumeably stressed your cpu out in order to heat the phone up. Maybe find that app, let it run, and time it with a stopwatch? lol.

Ideally I'd like to be relieved of the burden of timing myself ... I'll see if I can hunt down that handwarmer app and possibly its source - if I can modify it to time how long it takes till shutdown that would be fine for me.

I'm quite surprised an app like this doesn't appear to exist as well. I can code, but I'm quite lazy. I'll try to hunt down that handwarmer app and post any updates.

Edit:
Currently I'm trying a combination of PortableHeater and StopWatch & Timer apps
 
Upvote 0
Okay so the handwarmer thing is frustrating me, since it doesn't discharge the battery fast enough (even though the battery will take ages to charge).

My phone is rooted and has busybox installed, and busybox has wget, so I'm going to make a little shell script to spam the internet (cell radio, 3g eats battery), and try to find out which one of the system files contains battery info, and from there try to make a shell script that will time how long it takes to discharge the battery. Needless to say, root is required. I'm going to do it this way because I can't be bothered to learn java and the android stuff.
 
Upvote 0
Okay so the handwarmer thing is frustrating me, since it doesn't discharge the battery fast enough (even though the battery will take ages to charge).

My phone is rooted and has busybox installed, and busybox has wget, so I'm going to make a little shell script to spam the internet (cell radio, 3g eats battery), and try to find out which one of the system files contains battery info, and from there try to make a shell script that will time how long it takes to discharge the battery. Needless to say, root is required. I'm going to do it this way because I can't be bothered to learn java and the android stuff.

Good luck man ;) Maybe one day someone will make an app for this purpose. Seems silly that it wouldn't exist. Battery life is more important to me than quadrant scores but people love to flash those around... lol. A battery life benchmark would make choosing a custom rom much easier!
 
Upvote 0
I've written a pair of scripts. Both of them try to waste the battery via the cell radio (turn on 3g for better effect :D). One is slightly more bandwidth heavy than the other.

The requirements for these scripts are:
Root
Busybox (usually comes with root)
A terminal emulator

Contact me if interested.

Regards
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones