Tool: Analyse your battery drain. - Android Software Development

Hello all,
Here is my 2 cents contribution to all the people that are wondering why their batteries are out in 10 hours!
I would like to share my tool, and maybe get help with my code if people are interested.
This goal of this app is to help you to detect what is going wrong with your battery by displaying values of the drain. It will never analyse or detect an app!
MARKET LINK: https://market.android.com/details?id=com.WazaBe.android.BatteryDrain
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

This is pretty cool.
I was getting tired of calculating battery per time.
Maybe it would be better if it record battery usage per time.
(ex , partial wakelock)

just downloading and testing
thanks

Downloading, will give it a shot

Useful app and a good start.

cool i will give it a whirl and see how it goes..

Cool app, will test it and see, if I can help with ideas.

Great. I wanted to compare battery drains in using different kernel or different cpu scaling governor. I think your app will come in handy. Thanks...
Sent from my SK17i using XDA App

OP, can you attach the apk to this thread. Market says its not compatible with my HD2 that is running 4.0.3 (IceCream Tosti v0.5 ROM with tytung kernel)
BTW, does anyone know if there is a workaround for this market issue?
TIA

Will try.. thanks.

Thanks!
Will give it a try!
Sent from my GT-I9100 using xda premium

amc1274 said:
OP, can you attach the apk to this thread. Market says its not compatible with my HD2 that is running 4.0.3 (IceCream Tosti v0.5 ROM with tytung kernel)
BTW, does anyone know if there is a workaround for this market issue?
TIA
Click to expand...
Click to collapse
I probably have the wrong end of the stick, but when I searched for it by application title, it didn't appear. So instead I searched for it using Waze_Be and found it in the list.

Downloading and will give it a test.

Thanks for sharing this useful tool!

Gonna try it thanks
Sent from my HTC_Amaze_4G using xda premium

Awesome app!
This is really useful man. Good job.thanks

Curious as to what this app offers over this one I have used for years: https://market.android.com/details?...ch_result#?t=W251bGwsMSwxLDEsImNjYzcxLmJtdyJd
Thanks

Looks nice. Could we have an alarm that warns you when battery draw is higher than normal (only when the screen is off)?
My phone sometimes starts sucking power when my Exchange connection goes haywire. I'd love to be warned that it's in a high-draw situation instead of it just going dead.

I installed it on my Transformer Prime. So far, so good. Around 2/3 of the time under 1%/hr of battery usage.
Would be nice, if you would add a "min/mean/max" CPU usage for the time period of possible. Basically, instead of only collecting time/battery percentage, you could collect other system useful data.
And why not, trying to figure the "charging speed". This would also be nice, I suspect some of my USB chargers to be less efficient/fast.
And... It might be possible to detect batteries that will soon die! Above average %hr... I have a lot of ideas for you.

profete162 said:
Hello all,
Here is my 2 cents contribution to all the people that are wondering why their batteries are out in 10 hours!
I would like to share my tool, and maybe get help with my code if people are interested.
This goal of this app is to help you to detect what is going wrong with your battery by displaying values of the drain. It will never analyse or detect an app!
MARKET LINK: https://market.android.com/details?id=com.WazaBe.android.BatteryDrain
Click to expand...
Click to collapse
i will add your app to my battery saving tips if you dont mind, please do send me a pm to confirm

Related

Hardware version and kernel results!

Post what hardware version and your kernel results.
Current rom is optional but not required
I believe there is a pattern to our battery life depending on what hardware type we have and that we can figure out how to get the best battery life we can if we can chart what kernels act/behave better with the hardware.
posted from a Myn EVOlved device powered by Android
Im running hardware version 002 and the modded HTC #15
Batter life is about 8 1/2 to 9 hours light use
posted from a Myn EVOlved device powered by Android
HW 0003
Currently HTC 15 modded and tweaked by Caulkin
Previously HTC 17
Both get similar results with 5 - 6 hours up time and battery will go 20 - 24 hours if I leave Angry Birds alone.
I want to add that nothing worked well for me until I downgraded my pri from 1.90 back to 1.77.
I tried all of of the Ziggy and Netarchy kernels and they never came close to the 2 I use.
Sent from my Warmed up Evo
This won't work unless you require a lot more information.
You would need to define your usages, firstly. This is very important, as your "light" usage might not compare with other people's.
Also, this would be a little more empirical if you required screens.
Biofall said:
This won't work unless you require a lot more information.
You would need to define your usages, firstly. This is very important, as your "light" usage might not compare with other people's.
Also, this would be a little more empirical if you required screens.
Click to expand...
Click to collapse
already been done. I would suggest adding your results here:
http://forum.xda-developers.com/showthread.php?t=924311
Biofall said:
This won't work unless you require a lot more information.
You would need to define your usages, firstly. This is very important, as your "light" usage might not compare with other people's.
Also, this would be a little more empirical if you required screens.
Click to expand...
Click to collapse
That's a great idea and your right light usage for me on a adverage work day might not be the same for everyone but that's horrible battery life for me.
Wifi is off (my job doesn't have wifi) bluetooth off, no phone calls, about 5mins of xda app, and 15mins of general searching the web on lunch when im connected to a wifi hotspot my battery life doubles I get about 14hours with the same usage.
posted from a Myn EVOlved device powered by Android
H/W 0002, RLS5, old radios/PRI (09.01/1.77). The screenie below was taken while using Net's 4.3.1-cfs-havs-nosbc. I recently switched to Net's 4.3.2-cfs-havs-less-nosbc and am seeing very similar, excellent battery life.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my PC36100 using XDA App
Version 2 snap 7.6 Turbo in use...text. all day and about 20 mins talk with 5 mins web... 10 hours and half battery
Sent from my PC36100 using XDA App
0004 Evo novatec screen, myn rls5 running stable kernel 4.3.1 cfs havs-SBC build, im getting about 6-7 hours moderate use at school, phone goes 8am to 6pm if I'm texting all day and browsing web no wifi or gps. Its a lot better than any other combo I've tried. I used to get like barely 4 or 5 .
Sent from my Evo in your sisters closet using Tapatalk

increased battery drain with no reason

I know this has posted a million times.
Without a warning my stock KH1 with CF-root started to have bad battery. According to battery usage it's the android system. Around 40 - 60% sometimes.
I usually had it around 10 - 20%
Also the better battery stats says its caused by "suspend" and "events/0"
Now I've have read this bug over and over by tons of people but I never had it. Always stayed on stock with cf-Root. Didn't have a problem and BAM! there it was
As soon I noticed this I flashed stock back, first to KH1 and then KG6. No difference. And no I didn't just wait half a day to see if it worked with each other firmware or ROM I gave it at least 3 days or at least 3 battery charges.
And so it went on. Stock KH1 with CF-ROOT -> KH1 -> KG6 -> Cognition S2 1.51 -> Exynos 5.4. No difference.
Again I'm sorry of bringing this up. I wouldn't post this thread if I had this from the beginning. I just find it weird that it just appeared.
Maybe it's from my apps but wouldn't the battery usage say anything?
Just saying as well that my phone sleeps when my screen if off and goes awake when I turn it on. No odd awakes while my screen is off.
With regards,
Sven
EDIT: Now with screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is the Android OS bug. I doubt it will get fixed before Ice Cream Sandwich, and even then, it's not sure. Welcome to the club of ****ty battery.
lol, battery is not so bad, anyway, which is the most actual firmware file version??
svenerator said:
EDIT: Now with screenshots
View attachment 712833 View attachment 712834
Click to expand...
Click to collapse
Did you refresh BatterBatteryStats? Sometimes it doesn't update. If it's updated, then it's not nearly that bad. For me I've noticed that 1m of CPU time is about 1% of battery lost. So for you in that screen it's about 12% lost due to the suspend and events/0 activities. And if battery is at 34% (can't see correctly, too small), then you don't have it nearly as bad as some others.
Here's what I get sometimes when it escalates: (20h lifetime, complete idle)
@OP- You are on the same group with me. I always stay on CF root with Stock ROM and I also never had that AOS bug until last week it suddenly appeared! I posted about it on the BBS thread but got no response usually. The thing is you can't stop it, once it there you just have to live with it. And gradually it will disappear again. Just wait till then.
Regards.
Sent from my GT-I9100 using XDA App
I've never believed in the AOS battery drain bug until I got it myself. And indeed like the others have said, there is no permanent way to fix it.
the best you can do is to try flashing different ROMs or kernels and see which one gives you the best battery life, with or without the drain bug. For starters, you might want to check out the Speedmod kernel
Sent from my non-Apple device via XDA App
Double post, sorry.
cr0wnest said:
I've never believed in the AOS battery drain bug until I got it myself. And indeed like the others have said, there is no permanent way to fix it.
the best you can do is to try flashing different ROMs or kernels and see which one gives you the best battery life, with or without the drain bug. For starters, you might want to check out the Speedmod kernel
Sent from my non-Apple device via XDA App
Click to expand...
Click to collapse
No, there are ways to fix the bug at times, just depends on what causes it. Day one when I received my phone, I had the android os bug. Used to be up in the high 50%+ for Android OS, but then I found out my router caused the issue and now it's always below 10%. I'm also on stock btw, no root or anything.

ICS 4.0.3 OTA halted by Google

http://androidheadlines.com/2011/12...e-to-high-cpu-usage-and-battery-life-bug.html
google stopped the ota
i just wanted to have a confirm of what i 've read in a italian forum.. it seems that google decided to stop the ota because of an excessive usage of the cpu and a battery bug in the ics for nexus s.. is it real??
Yes due to high CPU usage and battery drain. Hopefully the CPU usage is contributing to the poor app drawer performance. If not then hopefully it is on the list. The app drawer on my S is TERRIBLE compared to friend's Galaxy Nexus.
Sent from my Nexus S using XDA App
Ok so probably they will release another ota i hope.. the battery goes down in 9 hours
Nice can look forward to me rom
Don't understand why they didn't notice in first place
Sent from my Nexus S using xda premium
They were probably under pressure to keep their promise to release a from within weeks of the GN release. Hell idk
Sent from my Nexus S using XDA App
I have a ns4g and for those that received the ics update on the ns, Google will fix it. I'm sure within a week(s) because they are admitting fault and pulling it so more people aren't disappointed. I on the other hand have an extended battery and would gladly take that ics update lol
I dont think this is happening to everyone, I am using 4.0.3 and cpu usage is low and battery is great. Same with 2 friends that installed it. Maybe something related to specific networks or sinals.
Sad to see Google break because of a deadline.. There is no possible way anyone involved in the development and testing of ICS on the Nexus S line didn't notice the problems with it on this phone. This is something I'd expect out of Samsung.. It's ok though, thanks to devs my phone is finally stable enough..
New ICS build at the horizon? (4.0.4? 4.1?)
Ha. Thanks for the link, "Instigator".
duped topic merged
juliano_q said:
I dont think this is happening to everyone, I am using 4.0.3 and cpu usage is low and battery is great. Same with 2 friends that installed it. Maybe something related to specific networks or sinals.
Click to expand...
Click to collapse
I agree..I haven't had a problem with it yet.
Sent from my Nexus S using xda premium
No wonder the i9020a hasn't seen the update yet. I hope they can resolve this bug quickly. Like before Christmas.
It will take a few builds for Google to get all the bugs ironed out. Same happened with the Nexus One and GB.
Sent from my Nexus S
it;s a kernel issue...use a custom kernel, and it should be fine
I'm having this problem. The phone stays awake while I don't use it. And when I check the stats Android OS' is eating most of my battery and keeps the phone from sleeping. I have stock ICS with stock kernel.
Sent from my Nexus S using XDA App
So where is the official statement from Google that the OTA has stopped?
There hasn't been one (EDIT: that I've seen). The updates are still live on Google's servers, so until there is official word or the update is pulled, there is no reason to assume the OTA is ending.
Very strange, 4.0.3 is much better for me than 2.3. What we can expect?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is my battery usage today, it is quite nice, note that there is no drain during inactivity.
Sent from my Nexus S using Tapatalk

my new app is getting no love

hey guys .. review my app and i'll gladly review yours also. it's just a simple app to get my feet wet.
Code:
play.google.com/store/apps/details?id=com.bamhost.simpletipcalculator.simpletipcalculator
on a side note .. do you have any suggestions for driving traffic to your apps? should i use something like appflood? .. thanks for any tips
bamhost said:
hey guys .. review my app and i'll gladly review yours also. it's just a simple app to get my feet wet.
play.google.com/store/apps/details?id=com.bamhost.simpletipcalculator.simpletipcalculator
on a side note .. do you have any suggestions for driving traffic to your apps? should i use something like appflood? .. thanks for any tips
Click to expand...
Click to collapse
Correct your link - Simple Tip Calculator - FREE. If you don't love your app, no one will love it, be a bit precise....
.... and
Review this game - God Toys
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
yup that would help, lol ... the forum put a space in there no matter what i did .. the "thanks" button worked great for me tho
bamhost said:
hey guys .. review my app and i'll gladly review yours also. it's just a simple app to get my feet wet.
Code:
play.google.com/store/apps/details?id=com.bamhost.simpletipcalculator.simpletipcalculator
on a side note .. do you have any suggestions for driving traffic to your apps? should i use something like appflood? .. thanks for any tips
Click to expand...
Click to collapse
My app too has very low downloads. Please help me out. I had put my best effort in developing an Innovative App. It's for Minimizing the work of people for changing the settings of their mobile just through SHAKES. It's the FIRST APP on GOOGLE PLAY with such options
Please review it: http://goo.gl/oypfFt
I have reviewed your app
+1 and gave your app a five star review (As Aaron Turner)!
I have two apps, and I'm hoping you can do both, if you want I'll review another app of yours
My Apps:
https://play.google.com/store/apps/details?id=com.torch2424.featherfree
https://play.google.com/store/apps/details?id=com.torch2424.statsmonitorwidgetFree
Also, to anyone else who sees this, if you'd like to do a review for review dont be afraid to PM me, I check my XDA almost everyday, so I'd get back to you soon!
torch2424 said:
+1 and gave your app a five star review (As Aaron Turner)!
I have two apps, and I'm hoping you can do both, if you want I'll review another app of yours
My Apps:
Also, to anyone else who sees this, if you'd like to do a review for review dont be afraid to PM me, I check my XDA almost everyday, so I'd get back to you soon!
Click to expand...
Click to collapse
you links don't work :x
ExoticHamster said:
you links don't work :x
Click to expand...
Click to collapse
Thanks for letting me know, I fixed it!
Hi guys Rate Mine...
ill rate yours...
https://play.google.com/store/apps/details?id=com.machoman.FTR
hello,
i have couple games that could use some review and rating, and just let me know if you also need the same.
here they are :
U_BO - 3 IN 1 : https://play.google.com/store/apps/details?id=com.k2.u_bo_x_ads or http://www.indiedb.com/games/ubo3in1.
JOLT : https://play.google.com/store/apps/details?id=com.k2.u_jolt_x_ads or http://www.indiedb.com/games/jolt.
i need some honest opinion, please.
thank you.
Sorry folks, trading reviews is not very honest and not in the spirit of true development, where free exchange of ideas and respectful contributions should be made. Using XDA to create this exchange is not very honest in that those who do not know XDA exists will get a false sense that all these apps are all 5.0....Let's be fair here, creating these "exchanges" is not really what XDA is for..
These threads will be summarily closed. So, use this thread and all the others here at XDA for their true intentions.
Thanks

[Got what i needed..thanks!]Looking for a helper for about a half hour.

Used to have a one plus one. I jump phones so I left. Hey...its what I do. What I am hoping for is to prove a point on why my one plus one got way better battery life then my G3 does. Virtually the same specs. Same carrier...same apps. Now. Here is where someone with a 1+1 comes in. Using this app https://play.google.com/store/apps/details?id=com.iattilagy.usemon you can monitor the GPU usage if you scroll down a bit. Would prefer a relatively stock like setup. It doesn't even require root. Just run this app for about a half hour using no games or anything just oh idk. Texting, hangouts, Tapatalk, no gaming. I want to see what the GPU freq it runs at most often in that 30 min. Then snap a screen shot and PM or post it here.
Hopefully someone will help me out with this.
Sent from my LG-D850 using Tapatalk
I can probably do it for you sometime after tomorrow, I'm currently running AK's kernel so I can't do it atm. Whenever I flash the next nighly I'll wait on flashing AK's kernel, and then I can do it for you as I don't use my phone too much during the week, if no one else has done it by Monday just PM me, and I'll do it for you.
Also, any particular reason you jumped to the G3?
EDIT: I run a very stock setup , running CM12 nightlies. No background apps like skype or whatever, either. Should be perfect for a comparison.
MilesDerp said:
I can probably do it for you sometime after tomorrow, I'm currently running AK's kernel so I can't do it atm. Whenever I flash the next nighly I'll wait on flashing AK's kernel, and then I can do it for you as I don't use my phone too much during the week, if no one else has done it by Monday just PM me, and I'll do it for you.
Also, any particular reason you jumped to the G3?
EDIT: I run a very stock setup , running CM12 nightlies. No background apps like skype or whatever, either. Should be perfect for a comparison.
Click to expand...
Click to collapse
Perfect! Not really any particular reason besides same specs and slightly smaller bezel. Never figured the difference would be night and day. 1+1 wins in my book.
G3 battery life is horrid imho. I got 7-8hrs screen on almost daily. With he g3 only about 3 give or take. Got a 9000 mah battery now. Things a brick but I get 11-12 hrs screen on. Its sad. With this battery and my old 1+1 I'd feel comfortable in saying 20hrs screen on min probably 24
Sent from my LG-D850 using Tapatalk
I think it's because the screen resolution on the g3 is much higher.
Sent from my A0001 using XDA Free mobile app
Ran it for about an hour, hopefully the screenshots upload
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yep the GPUs are working about the same. Has to be the screen it self that makes it such a hog whether it be the QHD since they both IPS displays.
Thanks for the help. I'll be watching for the 1+2 in the future. I had a very good 1+1 experience... Its far better then the G3 IMHO.
Thanks again!
Sent from my LG-D850 using Tapatalk
michaeldepotter said:
I think it's because the screen resolution on the g3 is much higher.
Sent from my A0001 using XDA Free mobile app
Click to expand...
Click to collapse
Try and tell them that once lol....doesn't go over well.
Sent from my LG-D850 using Tapatalk

Categories

Resources