1. Download our Official Android App: Forums for Android!

Battery drain & timer

Discussion in 'Android Apps & Games' started by yaxattax, Aug 26, 2011.

  1. yaxattax

    yaxattax Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    13
    Joined:
    Jun 29, 2011

    Jun 29, 2011
    13
    0
    15
    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
     

    Advertisement

  2. chanchan05

    chanchan05 The Doctor
    Rank:
     #25
    Points:
    1,108
    Posts:
    15,147
    Joined:
    Jun 30, 2011

    Jun 30, 2011
    15,147
    4,822
    1,108
    Male
    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.
     
  3. bigbabys

    bigbabys Android Enthusiast
    Rank:
    None
    Points:
    88
    Posts:
    490
    Joined:
    Nov 11, 2009

    Nov 11, 2009
    490
    116
    88
    Personal Account Manager
    Largo, FL
    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.
     
  4. yaxattax

    yaxattax Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    13
    Joined:
    Jun 29, 2011

    Jun 29, 2011
    13
    0
    15
    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
     
  5. yaxattax

    yaxattax Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    13
    Joined:
    Jun 29, 2011

    Jun 29, 2011
    13
    0
    15
    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.
     
  6. bigbabys

    bigbabys Android Enthusiast
    Rank:
    None
    Points:
    88
    Posts:
    490
    Joined:
    Nov 11, 2009

    Nov 11, 2009
    490
    116
    88
    Personal Account Manager
    Largo, FL
    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!
     
  7. yaxattax

    yaxattax Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    13
    Joined:
    Jun 29, 2011

    Jun 29, 2011
    13
    0
    15
    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
     

Share This Page

Loading...