yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Karpfenhai:
Your dump is useless, see the op for a guide, hint *idle* ..

You've accidentally installed apple products on a cyanogenmod device, this will cause unforeseen issues, get rid of them! [emoji14] [emoji41]
[BetterBatteryStats] SuRPasser:
got it, thx for reply. What kind of an apple product did you mean :D
[BetterBatteryStats] Karpfenhai:
That was more intended as a joke, but this itunes stuff... [emoji12]
[BetterBatteryStats] cartman_73:
I'll try to answer your request to test my skill on BBS :), sorry for my wrong english

the primary wakelock is refered to "android.media.MediaPlayer (com.itunestoppodcastplayer.app.Podcast Republic): 1 h 35 m 52 s (5752 s) Count:35 10,0%" I suppose this is a podcast from itunes or whatever else, this is

also the prymary consumer of Network traffic

The second wakelocks are from bam_dmux_wakelock to refere to 3G /LTE, do you have a good signal?

Your wifi is Wifi On and running for 13 h 30

This (and others) thread have said...turn off wifi if you don't use, keep alive only if connected, turn off Sync and location.

I'll hope that it helps you.

regards
[BetterBatteryStats] seanpr123:
Ya... That's decent with 3hrs of screen time & >150MB data transfer (streaming uses a lot more battery), but need an idle dump of at least 4 hours.

Whatsapp did appear to keep your phone awake quite a bit, but no idea how much you were actually using.
[BetterBatteryStats] mj_godam:
hi everyone

i am using samsung SGH I9500, unroot, and with latest stock rom, and i have some problem with my battery life

it's just so quick to dry, it consume 9,9%/h. it's crazy isn't

i've attached the dump file and logcat file

i hope it'll helps you to find the culprit

thanks in advance
[BetterBatteryStats] Schabadaba:
Hello guys,

the batterydrain from my phone is since the last weeks very high. i havnt change anything

with this app i detect, that my phone doesnt go into the deep sleep mode.

but i dont know, why :crying:

can anyone help me?
[BetterBatteryStats] cartman_73:
you should probably disable fast dormancy if your carrier does not support
[BetterBatteryStats] Wh1t3Rose:
[MENTION=4528105]Schabadaba[/MENTION] please put those screenshots n a spoiler. And next time just post logs :), thank you
[BetterBatteryStats] Perseus:
1 Hour log under use condition is not of much help. Please post an IDLE Log preferably Overnight.
[BetterBatteryStats] spanish33:
Can anyone help me figure out the suspend_backoff wakelock? The wakelock deos not happen every night.
[BetterBatteryStats] Perseus:
A reboot should clear the wakelock.
[BetterBatteryStats] Schabadaba:
Can anyone help me?

Reboots dont solve the problem..
[BetterBatteryStats] andee39:
Battery drain

Hi,

Attached is my idle log from last night. Would really appreciate if someone could take a look to see if there is room for improvement. I have sync and location services turned off and uninstalled Facebook. I barely make it through the day without having to charge and I have an extended battery. I did notice at the top of the alarms list is com.google.android.gms. Is that something I can change?

Thanks.
[BetterBatteryStats] mj_godam:
thank you for your kind reply

so the main reason my battery darain so fast is the fast dormancy?

is there any other app or activiy that drain my battery?

and how to disable fast dormancy on SGH I9500?
[BetterBatteryStats] cartman_73:
so the main reason my battery darain so fast is the fast dormancy?

It should be

is there any other app or activiy that drain my battery?

turn off geo-localization from google services

and how to disable fast dormancy on SGH I9500?

I'm in Italy, I've a LG e975 and my carrier doesn't support FD, only solution was edited dcm_settings database of telephony apk with aSQLManager, I've inserted a row for my carrier with FD disabled, any others method does not work for me.

insert in /data/data/com.android.provider.telephony/databases/telephony.db then restart.

Regards
[BetterBatteryStats] Stefan0vic:
Hello everyone,

I came here from the S4 forums since I have a very bad battery drain when my phone is idle and I cannot seem to find the cause. Ive tried numberous resets.

This is a screenshot of the process draining my battery when idle: https://www.dropbox.com/s/8uz34hblyl1hwwz/Screenshot_2014-08-28-10-13-06.png?dl=0

ANY advice would be more than welcome!! Im about to reset it for the 5th time if this doesnt work..

Thanks in advance.
[BetterBatteryStats] swat4samp:
If you read the OP, you will post appropriate logs and screenshots and that will help us to resolve it.
[BetterBatteryStats] cartman_73:
Hi

I believe this screenshot is useless, use share (on up right corner) and export to file all tab.

The best practise is share your dump after idle night in airplane mode
[BetterBatteryStats] Stefan0vic:
Thank you, I will reflash firmware and install BBS and share the dump file you mentioned.
[BetterBatteryStats] mj_godam:
i'm sorry but could you make the explanation easier to understand even for beginner like me?

thanks in advance
[BetterBatteryStats] Stefan0vic:
To my surprise my phone only drained 3%!! this night while on flight mode. I was trying to see if I could get a log of the drainage, but in idle mode on flight mode it's no longer draining.

Would any of you be able to find out what the culprit is if I leave wifi/3g on overnight? Because if I leave that on 25% of my battery drains overnight.
[BetterBatteryStats] cartman_73:
Do you have BBMessenger autosync?

The first alarm is com.bbm.BBMService.HealthCheck.

Try to disable autosync or BBM services

Try to disable Chceckin Receiver for Google Play Service, it's the second alarms

Reads few post ago
[BetterBatteryStats] cartman_73:
I'm on PACMAN rom and this procedure it does not necessary but in my Stock ROM (LG) was mandatory for me.

If you don't have the table below in dmc_setting DB it's impossible to disable fast dormancy with this method.

So, I've downloaded aSQLiteManager from the Play Store, after it installed I've opened the file in path that I wrote and I've imported the csv file that contains the data below

Then successfully imported I quit to app through back key to commit the SQL transaction then I restarted my phone, that's all.

The value that I imported was copied from other carrier's existing row, be careful, before import I've modified the column for Fast Dormancy in "0" (that's means disabled).

Good luck

This one is a sample for my case, you don't use it as is, you must use your existsing configuration.

NEW DCM ROW

"97","22288","","","0","1500","1","4096,87380,110208,4096,16384,110208","524288,1048576,2097152,262144,524288,1048576","4094,87380,110208,4096,16384,110208","4094,87380,262144,4096,16384,262144","4094,87380,262144,4096,16384,262144","4094,87380,262144,4096,16384,262144","null","4093,26280,35040,4096,16384,35040","4092,8760,11680,4096,8760,11680","4094,87380,262144,4096,16384,262144","null","null","null"

You must modify the second column with your MCC e MNC value (from APN settings), in my case MCC=222 and MNC=88 that's means WIND carrier in ITALY.
[BetterBatteryStats] cartman_73:
:(

I don't know BBMessenger but I suppose that exists any setting to sync anything that creates a wakelocks reported in Alarm's tab or could be a process that checks the push connection from server:

I don't know System_Servet process, try to google it.
[BetterBatteryStats] Sir_gpm:
Could you guys, advice me how to decrease the drain of my batt is about .5% in deep sleep. Here is my log: http://pastebin.com/RAxpZ6pk
[BetterBatteryStats] mj_godam:
thanks cartman for your explanation

i will give it a try, i hepe it'll works
[BetterBatteryStats] kulitkayu:
I was trying to google it before but I got nothing to solve it..

there some threats that ask about it but some people just said it was one of android system and didnt said about how to decrease that process activity...

but thank for your respons...:D
[BetterBatteryStats] AndroidDeveloperLB:
I have a question:

How does this app work?

Does it read from some files, or does it do polling and make heuristics about the battery stats?

I ask this since I can't find any API of how much battery an app consumes, and I wanted to add such a feature for my own app (to order apps by battery usage).

Why does it need to be a system app?
[BetterBatteryStats] Perseus:
Think you are doing ok. you will loose a lot of features if you continued to reduce the drain.

If anything go to Phone App > Settings > Reverse Lookup Uncheck it.
[BetterBatteryStats] CM17X:
In order to get 0.0% on sleep, turn off the Phone.
[BetterBatteryStats] Wh1t3Rose:
Lol actually I get 0.0% drain overnight. Phone on. Lol

#StayParanoid
[BetterBatteryStats] CM17X:
Me too, and without airplane mode.

I was jocking :P
[BetterBatteryStats] Sir_gpm:
Can you guys teach us how to reach that amazing drain.
[BetterBatteryStats] CM17X:
This is what i did: https://www.youtube.com/watch?v=_dEwsckIa9E

Inspired of course by this thread: http://xdaforums.com/showthread.php?t=2357417 | But with my extra tweaks. No greenify, by the way,.
[BetterBatteryStats] mdamaged:
Chances are, it's the battery re-calibrating. 0.0%/hr is impossible if a device is on.
[BetterBatteryStats] swat4samp:
Yeah, I still don't get it how would people achieve 0% drain overnight. I tried almost all of the known setups, still end up losing 2-3% for 8-9hrs. Not had a single wakelock, tried with airplane mode, disabled services which usually wakes device, greenified and lot more.
[BetterBatteryStats] Blackey008:
Only 3% drain overnight without wakelocks.
[BetterBatteryStats] swat4samp:
That's common drain which is observed in almost all of the devices.

Sent from my Nexus 5
[BetterBatteryStats] 12Fully:
Is there a way to tone down these wake locks? Or are they not really that big of a deal? Also, my phone battery seems to drop pretty fast while actually using the phone. Can anyone think of why this might be?
[BetterBatteryStats] Schabadaba:
guys... please help me. i dont know, what this screenshots means.. :(
[BetterBatteryStats] FondoComun:
Thank you for this huge job. It has saved my life many times while developing my apps.
[BetterBatteryStats] Darke5tShad0w:
It means you haven't read the OP and got us a proper dump to look at.

Screenshots are useless.
[BetterBatteryStats] atrix4nag:
Hi, This is the dump file of my another phone. I know its not idle log, but I want to know what the main culprit is. As per the log Event Log and Checkin handoff are main culprits.. I already disabled these services using disable services app. Can you suggest me, what should I do to avoid this wakelock...

If this log is not useful to find the actual problem, i will get the idle log, tomorrow morning...

TIA.
[BetterBatteryStats] swat4samp:
Use android tuner app and disable receivers related to checkin and event handoff for play services. Also disable those services in Google services framework too.

Sent from my Nexus 5
[BetterBatteryStats] idCyber:
On my Nexus 7 2013 Wi-Fi , I have 0% battery drain over night (8 hour) . I have Mahdi ROM and ElementalX kernel. All the "tweaks" I've made on the ROM (not the kernel as it has it's own setup wizard using aroma fm) is disable google location reporting and Wi-Fi scanning always available.
[BetterBatteryStats] trashchomper:
Wow, this is perfect. My htc one has little to no battery stats out the box (thanks htc sense), this is more than enough data to keep me occupied for days
[BetterBatteryStats] atrix4nag:
These services already disabled. And also I observed that this phone not receiving emails from Gmail immediately. I am receiving only when I open the app, but on my other phone I am getting emails as soon as I receive them.
[BetterBatteryStats] swat4samp:
Did you disable gcm related services too? If you did, then gcm won't work. Also, don't greenify play services. If you didn't do those, then it might be gapps problem, a fresh flash is recommended if you find any problems
[BetterBatteryStats] Kaikkivaltias:
My mothers two-year-old Samsung Galaxy S2 (i9100) has suddenly started acting strange, draining the whole battery in 4 hours despite being in airplane mode. The phone itself gets really hot even though it's sitting in deep sleep. 1 Ampere Chargers have a hard time keeping up with the battery drain and cannot load the battery. She bought a new battery for it, which had no effect.

I just flashed CM11 over the stock rom and swapped the kernel as well, whitout any effect. I'm no professional in analyzing these logs but I cannot figure out the culprit. I'm starting to think it's hardware based... I've attached a log to this post, could someone take a look at it?
[BetterBatteryStats] kelly66:
This happened to me too when I unchecked them using Disable Service app. Tick both Checkin and Event log and they should go away. It worked for me.Hope it helps.
[BetterBatteryStats] dylansmith:
hi guys, would really appreciate some guidance here!
[BetterBatteryStats] atrix4nag:
I didn't disable gcm, also my play services are system app so I didn't greenify them. I did re enabled and then disabled checkin n event log services, still I am having more than 90% of awake time from these 2 services, may be I will do a fresh install once I am back home.

Thanks for your suggestions. Let me know if you have any other openion other than reflash.
[BetterBatteryStats] andee39:
Battery drain

Hi,

Can someone pls take a look at my log? I lost 13% in a few hrs while idle.

Thanks!
[BetterBatteryStats] swat4samp:
Did you uncheck checkin receivers (not services) of play services using android tuner app which i mentioned earlier? If you did that too, then there is absolutely no chance of those waking up your device. If all else fails, clean flash rom.

---------- Post added at 12:36 AM ---------- Previous post was at 12:33 AM ----------

Disable checkin services using disable services app. And clock app is waking up your device for updating it's widget. Disable automatic update of weather. That would reduce the drain to some extent.
[BetterBatteryStats] andee39:
Thank you for responding. Do I need to disable checkin services in several locations? At first I looked for checkin services as standalone under system apps and didn't see it. I saw something in red next to google services framework so I selected that and there was a choice for checkin service there but it was already unchecked. I also see checkin service under google play services. Do I disable it there also and am I missing it anywhere else? Weird thing about the weather issue is that I don't get weather on lockscreen or anywhere else but I will check the settings.

Appreciate your help!!! :good:
[BetterBatteryStats] :
Which other services and receiver to block in Google play services package to slim it down? I, for instance, disabled all "android wear" things (until I'll own a smartwatch ofc!!).. Shouldn't bring any side effect.

I also unchecked (using Rom toolbox pro) every entry related to g+ (i don't use and don't want it to mess with my phone). Can I disable something about ads and analytics too to spare battery (and maybe increase privacy too)? I don't want to bork any functionality that I need though... Only the ones that I don't need for sure. Is there some kind of guide about what does what in Google play services, and about what can be safely disabled??

Cheers and keep up the good work!!

N7100 - Paranoid Android 4.4.4 [MENTION=353015]240[/MENTION] dpi
[BetterBatteryStats] jukyO:
Hey, why don't you use Banks minimal gapps? It has only basic google stuff inside. Playstore and syncs.

That way you can avoid other s**t suck up your system and battery.
[BetterBatteryStats] wilkster:
Either the battery is failing or it is grossly miscalibrated. The OS/Software/wakelocks look fine.
[BetterBatteryStats] chamonix:
in a nutahell: BBS does passive monitoring as all info already is available using the (hidden) API. For more info look into the source code (BatteryStatsProxy in AndroidCommon).

The reason for the system app is simple: starting in KitKat Google did not want devs to access that info anymore. See here for all the details: https://plus.google.com/110567671203524092843/posts/ReLvz6KJwG5
[BetterBatteryStats] atrix4nag:
Thanks mate disabling checkin receivers worked thanks a lot.
[BetterBatteryStats] AndroidDeveloperLB:
I see.

Have you tried using "adb shell dumpsys batterystats" (or "adb shell dumpsys batteryinfo" for pre-kitkat) ?

I've tried reading its output but it has huge amount of data, and I can't find the appropriate thing to read from there. I've noticed "Time on battery" and "Total run time", but when I calculated the percentage (using the total time), it doesn't match the numbers of the official battery management screen of Android.

Also, there is a battery info file on "data/system" called "batterystats.bin" , but I have no idea how to read from it (it's in binary).
[BetterBatteryStats] :
Thank you for your help, I don't want to delete Google play services altogether though, just the non essential (for me) parts. Google play has become a behemoth of a package, managing many things and in a non customizable way... Very inefficient structure imho. It would be best if single services could be enabled or disabled by the user. Why should I keep android wear stuff running if I don't even own a smartwatch!! What did you do Google...!

N7100 - Paranoid Android 4.4.4 [MENTION=353015]240[/MENTION] dpi
[BetterBatteryStats] chamonix:
dumpsys will require root so there is no real benefit. Besides parsing adb instead of relying on an API will break more often (believe me, I was there and eg for alarms it's the way bbs works).
[BetterBatteryStats] CM17X:
Is not.

To get 0.0 aftter a proper tweak applied, you have to charge your phone and then leave it alone for some hours. Then you'll see how good sleep it had.

This picture show 0.5 just because after a partial charge I used the phone for 12 minutes, and the time since unplugged and holding it again wasnt enought time to get the 0.0 or 0.1 I get while sleeping. That said, I got 12 minutes of screen On with just 3% of battery, which is pretty cool considering that I use to get 30min for every 10%
[BetterBatteryStats] irish-sid:
Could you take a look at mine and tell me what I need to do to stop this battery drain? This is over night, but during the day when I'm using it it's killing me. It used to be 2 day battery and I don't know what's going on.
[BetterBatteryStats] Sir_gpm:
Is there something I can improve with your help guys?.

http://pastebin.com/kGNZnyLF
[BetterBatteryStats] CM17X:
Do you use location service in a daily basis? I can see a lot of wakelocks because of it, like NIP wakelocks and related.

Also, some google+ service are running as well. Look for the Insanely batter battery while idle thread, and apply the mods you'll see there, also, if you find my video there are some others services/stuff you can disable and improve it.

I don't use any location service, so I have no problem disabling those.

Eventlog is another hogger.

---------- Post added at 12:45 PM ---------- Previous post was at 12:40 PM ----------

For me, your log is okay, maybe others have another apreciation.

Only thing bugging me there is the awake time vs the screen on, which is probably cause by the auto 3g switcher or whatever.
[BetterBatteryStats] irish-sid:
I don't think I do. Just the weather I think which I don't care about. Is there any other things location might need? I'll turn it on manually for navigation.

I've just turned off notifications for g+ which I don't use for social media anyway and I've set auto upload to only when on charger. Hopefully this helps.

Thank you.
[BetterBatteryStats] CM17X:
You need to be aggressive with location services and Plus. Take a look to this: http://xdaforums.com/showthread.php?t=2357417

[GUIDE] Insanely Better Battery Life When Idle - Battery Life Thread
[BetterBatteryStats] wilkster:
If you run xposed you can try NLPUnbounce to reduce the NLP wakelocks. Also, you seem to be on a chatty network with probably lots of broadcasts that may be contributing to your wlan_rx_wake kernel wakelocks. You can troubleshoot that with Network Log in the playstore.
[BetterBatteryStats] mdamaged:
I respectfully disagree. The only tweak to produce 0% discharge, is the off switch (even then, the battery still drains to some extent).
[BetterBatteryStats] swat4samp:
Just disable them in play services. Also, use android tuner app to disable checkin receivers in play services too. That is enough. Don't disable anything other than that.
[BetterBatteryStats] irish-sid:
Awesome, I've installed greeify and nlpunbounce. Gonna check out the network thing now.

Thanks a ton!

Edit: there's no maps or Samsung apps in greenify?
[BetterBatteryStats] CM17X:
I will snap a picture as soon I can leave alone ny phone and you could help me out to determine whats that 0.0%, even if it is false positive.
[BetterBatteryStats] andee39:
Did you disable all checkin receivers? I see several of them.

---------- Post added at 09:27 AM ---------- Previous post was at 09:26 AM ----------

Thanks so much. Just asked the question again - had missed your response.
[BetterBatteryStats] mdamaged:
Snapping a picture will not show the affect of battery recalibration. Don't waste the time.
[BetterBatteryStats] Ftheccat:
Help

Hey guys, first I wanna thank you all, specially Chamonix, for the work you do in helping the XDA community with not only great apps like BBS, but also by taking your time to help others. I really appreciate it.

That being said, I need your help. I've already applied the Google Pay Services and GSF mods and I practically have no issues with them, but something is keeping my phone awake. As you can see in my idle dump attached, I get 14m awake, with few seconds screen on, and I can't determine why.

Also, I would like to ask you why could it be that I get several android sync alarms even though I've turned syncing off?

Finally, in both the app and the dump, I can never see Kernel Wakelocks. Is it related to my hardware? Being Mediatek soc's closed and all that?

Thanks in advance
[BetterBatteryStats] henry8668:
need help on battery. phone was running ok for long time, but last night it went nuts. charged to full and used about 10-20 minutes before bed. then this morning it only has 41%, the phone was warm. bbs log attached. battery usage attached.

Thanks!!
[BetterBatteryStats] mdamaged:
Your dump is fine, of course there will be wakelocks, but wakelocks do not always mean drain, you have a .2% loss per hour, that's as good as it gets.

14 minutes of waketime out of 6 hours is excellent. You're done, you're good, no need to do anything more.
[BetterBatteryStats] CM17X:
Whatever.
[BetterBatteryStats] swat4samp:
Turn of location reporting and history and disable auto syncs. Use greenify app to hibernate those apps which wakes your device.
[BetterBatteryStats] AndroidDeveloperLB:
converting your app also requires root, no?

Never tried it on a non-rooted device, using ADB though...

About parsing, I know it's problematic, but converting the app to a system app is asking too much from the user.

I really don't get why Google made this decision of making the battery permission become a system permission. They say it's for privacy, but I don't see how getting battery statistics is about privacy (or getting which apps were recently launched). You can already get all of the installed apps anyway, and that's without any permission...

They also deprecated the GET_TASKS permission (starting with Android L) , and now it barely does anything useful. :(

I don't get the part of "for alarms it's the way bbs works" .
[BetterBatteryStats] mark_sa:
3.5% battery drain per hour over-night

Hi,

I have a fresh installation of NeatROM on my galaxy S3 I9300 (Based on Samsung stock 4.3)

Although it is the least battery-consuming 4.3 rom I've found, it still consumes lot of battery when no use.

I've attached an overnight log of BBS.

Can someone please help pinpointing the draining app/apps?

Thanks!

Mark