yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] timby:
Great app. It allowed me to quickly find that StartingAlertService (Calendar) was causing problems. After a quick search I found that this is a common problem on the SGS2. I have frozen the TouchWiz calendar app and widget (which I don't use) using Titanium which will hopefully resolve the problem. Not sure if I should freeze CalendarProvider.apk...I can't seem to find out if it's needed for sync and required by other calendars such as Business Calendar.
[BetterBatteryStats] jeremysherriff:
Sorry dude, your stats didn't collect properly, that dump is useless I think. I get the same, also on MIUI. You'll see the same empty stats on the BBS GUI too. When you get this, exit BBS and go back in a few minutes later, the stats usually display correctly then.

Re: your screenshot, did you know you can touch the graph to zoom in and get lots of stats?

Also, have a read of this: http://xdaforums.com/showthread.php?t=871051

about what your battery dives off after being unplugged - it's expected behaviour. So based on that you screenshot showing drop isn't an issue.

---------- Post added at 08:56 AM ---------- Previous post was at 08:52 AM ----------

I believe the GTALK_ASYNC stuff is actually the transport used by other Google services, like checking market for updates on your apps etc? 30min may not be an issue, it depends on the tieframe. 30min in an hour is a problem, 30min over 8 days - because that's the last time you fully charged - isn't. Post a log (as an attachment) if you can't get anywhere.
[BetterBatteryStats] ManUtd07:
Man, I can't get these dump files for the life of me! When I pulled that last one, I had a list of stats within the BBS GUI so I thought it would pull correctly. Is there a way I can know if they pull? There's information in the .txt file so I just assumed it did. I will keep trying and I really appreciate your help/advice.

I have not read that but will definitely check it out. Yea, I knew you could get more detailed information on those graphs but honestly don't know what it all says. I try to read up and get as much information as I can but work prevents me from really taking the time to understand it all.
[BetterBatteryStats] jazzboyrules:
A quick look tells that you have Titanium Backup running a lot in the background. First of all, remove all auto background processes like auto backup and see the difference.

Then add only the auto processes that you require and set their execution times to when you know that your phone is more likely to be plugged in for charging.

---------- Post added at 05:16 PM ---------- Previous post was at 05:13 PM ----------

I seem to have solved the problem by freezing Calendar.apk. My work and gmail calendars still sync well. I use Jorte as my primary calendar app.

One drawback is that the phone won't show event notifications any more. But the events will still be visible in Jorte app.
[BetterBatteryStats] ybres:
I just installed version 1.5.1.0, previously had 1.4 and I noticed that the app now has a service -> Running services -> BetterBatteryStatsService running since I powered my phone.

Why does this new version need this? Can I disable it somehow, or just a simple Stop service won't do any harm?

By the way, great app ;)
[BetterBatteryStats] M@31:
Thanks so much for this app! I really appreciate it!

For some reason though, I have just recently been receiving the Partial Wakelock log for the following process

SMSreceive

com.skt.skaf.0A00199800.SmartPush

That is the biggest Partial Wakelock on my phone and pretty much the only thing keeping my phone in that state. This never happened before.

SmartPush is affecting my battery life when I look at the bar graph.

The other one that is over a minute is the ActivityManager-Launch

Any help and fixing these problems would be great!

Im not too sure if it is the new ROM that I installed or not.....but these are the only 2 things.

Thanks for your recommendations
[BetterBatteryStats] ntc3freak:
Hey guys, it's me again! :D

So I charged my phone fully last night, then rebooted and went to sleep. I went to bed at about 12:55 AM and woke up about 7:40 AM and here is my dump file. I should point out that I left the WIFI and OpenVPN on throughout the night. The battery went from 100% to 88% this morning.

So, lets find the culprit! :p
[BetterBatteryStats] yhrn:
The service is there so BBS can hold state even if the app is unloaded. Custom ref and all kernel wakelock references depend on that. In BBS 1.4 you lost your Custom ref if exiting the app with the back button and there were no references for kernel wakelocks so you'll break that if you stop the service. It will not wake your phone up.

In general you should not stop services as they will re-initialize and drain battery when doing so instead of just sitting there idling. You should worry about wakelocks not services, unless, maybe if you have an old phone with very little RAM but even then it's probably a bad idea to stop services.
[BetterBatteryStats] M@31:
I cant seem to figure out the SMSRecieve wake lock.

I do not get many texts and it shouldn't be working when the screen is off.

It should only be working when I get a message and that isn't very often, as I use IM for most of my messaging needs......

it is keeping my phone awake and not allowing it to go into deep sleep mode

any suggestions?
[BetterBatteryStats] jeremysherriff:
You've got quite a few things running there, have you killed off everything you don't use? Specifically;

Samsung social hub

Google Check in

Google backup

market notifications

Facebook sync

I'm going but on a limb here but I'm guessing the high wlan_rx_wake count is due to the vpn (keep-alives?). Hoping someone else can comment/confirm.

Seems this thread would be a good reference for you: http://xdaforums.com/showthread.php?t=1308030

Do you control your wifi network? Are you able to assign yourself a static ip address and enter that in your phone, rather than be assigned an address via DHCP? It would be worth trying.

In general, given the wlan_rx_wake and svnet kernel counts, you're facing a networking issue of some sort. Use that thread I posted to go through the process with Shark (on the first post). Also, try repeating the same charge/sleep/dump stats cycle with openvpn disconnected and contrast them..

Good luck ;)
[BetterBatteryStats] sohebq:
can i use this app without rooting? if yes, then why it asked for super user permission while creating a dump.
[BetterBatteryStats] yhrn:
Yes you should be able to. It asks for root when creating a dump to be able to include alarms in the dump but it should work without it.
[BetterBatteryStats] blackangel10:
im running Pure nexus with elementalx kernel and im here for asking if someone can help me about unusual drain of my battery.

i was with the 6% remaining and 3h31mins of sot, and as you can see its not a huge usage (no gaming, no maps, or something, no nfc, no adaptive display, no display ambient).... can someone see something weird on these screens? most of the ppl here do around 4-5h of sot... except mine that at best can do 3h30min....

help me!!:)
[BetterBatteryStats] .hEiMDaLL.:
You have a high awake time at screen off... I guess the drain is related to facebook and facebook messenger. Those might be the cause for google gms wakelocks, too. If you don't need the "original" FB apps, I'd suggest to try a replacement or simply use the mobile site in browser. I use Metal for FB and I'm quite happy with it. It's worth a try at least.
[BetterBatteryStats] Primokorn:
I had a weird battery drain so I saved an idle dumpfile of only 30m but it's enough I think (Awake (Screen Off) (): 29 m 46 s 99.3%)

I have a

lot

of wakelocks but I don't understand what is the reason. I don't use GApps and it's not a problem that can be fixed through Amplify or a similar app.
[BetterBatteryStats] Portgas D. Ace:
PowerManagerService.WakeLocks (): 29 m 58 s Cnt:(c/wc/ec)0/0/0 100.0%

This is the only issue I can see from your log :confused: No alarms, no wakelocks (at least none that would correspond to your wake-time). Maybe an issue with microG? Check the in-build battery stats of your device.
[BetterBatteryStats] Primokorn:
PowerManagerService.WakeLocks is a global information that doesn't help. It could be caused by microG but I didn't update the package for a while. I'm charging my phone to do more tests. Unfortunately, it seems the dumpfile can't help in this situation.
[BetterBatteryStats] Portgas D. Ace:
This. Therefore I got confused about your stats and drain. I guess you didn't change anything in the last few hours/days, right?
[BetterBatteryStats] Primokorn:
I change a lot of things everyday lol That's why I'm a bit lost now. Let's see if the drain happens again and I'll start "from scratch". Thanks anyway ;)

EDIT [MENTION=5901790]orville87[/MENTION]

No need to worry lol Wakelocks are gone. Problem solved? Maybe...
[BetterBatteryStats] blackangel10:
I always knew that fb and messenger kills the battery and increase the drain of it... but i've read that many ppl in here use the official apps having with many roms around 4-5h of sot... that's why im wondering there's another problem with my configuration or something??:eek:
[BetterBatteryStats] .hEiMDaLL.:
There are several things that affect battery drain more or less. It could be releated to cell reception, mobile data usage, gps, bluetooth, rogue apps or background processes... Every device is different and everyone has his/her personal usage habits. I'd suggest to post a dump file here as recommended in the OP. I don't see anything suspicious on your your BBS screenshots besides FB and a bit long time of max/high freq for the usage scenario you described.
[BetterBatteryStats] Portgas D. Ace:
Random drain is the best drain :p
[BetterBatteryStats] blackangel10:
excuse me for my noobness.. but what is the dump file?? :))
[BetterBatteryStats] Portgas D. Ace:
Dump file = BBS idle log file (log file of a period during which you didn't use your phone). Best to do so is over night while you sleep.
[BetterBatteryStats] BreadTM:
Hi,

First post on XDA. I can't track down this drain I've been having and was hoping someone here could help me out. It's possible that my battery is weak and needs to be replaced though.

I can't attach files, so here's my log. Charged phone to 92% or so, took a 3-4 hour nap, woke up at 86%. Android System was the only thing in the default battery stats (1%, 31 mAh, 10 mins 29 secs CPU total (1 second foreground), 3 minutes keep awake).

drive.google.com/file/d/0BwzvSahjGBR5VDdScnRDbGNPSDA/view?usp=docslist_api

(Can't post links directly, sorry)

Normally overnight while I'm sleeping I lose about 15, 20, sometimes 25% over 7-9 hours. Let me know if you need anything else, thanks.
[BetterBatteryStats] Portgas D. Ace:
Alarms: 104, Intent: com.android.providers.calendar.intent.CalendarProvider2

Alarms: 40, Intent: kik.android/.net.communicator.CommunicatorService

Alarms: 16, Intent: com.facebook.rti.b.e.i.ACTION_INEXACT_ALARM.FBNS.com.instagram.android

Those are the three major battery drainers. You can check this thread for information about how to stop the CalendarProvider2 alarm.

The other two alarms are related to Kik Messenger and Instagram. I wouldn't limit anything related to Kik Messenger if you rely on instant push notifications. If you are okay with Instagram notifications once per hour, you can use Amplify (as described in the above linked thread) to limit this alarm to 3600 seconds, so it will only occur once per hour and thus reducing your battery drain.
[BetterBatteryStats] BreadTM:
That was fast! I have tried Amplify previously, but it didn't help. I probably should have also mentioned that this drain occurs even when I have nothing but a fresh ROM (have tried multiple ROMs) install and Pico Open GApps. If I put airplane mode on overnight I lose roughly 4/5% still.

Possible it is just the battery on its way out like I am suspecting?
[BetterBatteryStats] Portgas D. Ace:
Well, if you experience Airplane Mode drain, than it would be good if you can provide an idle dump file with Airplane Mode on the whole time. This way we can see what is causing the drain when your device is in its "base state" without network/mobile signal at all.
[BetterBatteryStats] mydonose:
Battery Consumption

Hi Guys, thank you for your help. Now I have created logfiles and dumps. I hope you can help me to solve my issue.

Last night I went to bed 11pm. My Phone was fully charged. I woke up 6am and my phone had only 48% battery

I´m getting crazy

please help me
[BetterBatteryStats] BreadTM:
Here's my Airplane Mode log

drive.google.com/file/d/0BwzvSahjGBR5QXRvZ0Fvd016ZkE/view?usp=docslist_api
[BetterBatteryStats] drstereos:
hi everyone I can't find the dumpfile already checked write file to /sdcard/Android/data/com.asksven.better battery stats/files/download. no such file in the directory!! I'm running latest XDA version am I missing something here??
[BetterBatteryStats] Primokorn:
/storage/emulated/0/ aka sdcard/
[BetterBatteryStats] lucianus_luciferus:
no way to make this work without root right? :(
[BetterBatteryStats] suku_patel_22:
You can. Just flash the system app zip in recovery. Root isn't mandatory.
[BetterBatteryStats] lucianus_luciferus:
ok. but will that not trigger knox? or change status to custom?
[BetterBatteryStats] freonchill:
I looked and a couple people have had this problem in the past and asked, but I didn't see a response / fix

The kernel locks tab shows "file could not be read"

See attached picture.

I tried removing the app, deleting all the data. Rebooting / installing / rebooting to recovery to install via zip / update from app store and it still shows unreadable.

I went to bed with my phone at 97% and woke up to 20% after about 8hrs. Typical for the day is 60%, but that is for 1-2hrs of screentime, work email, etc. Was checking in BBB and noticed this after it took 3x time to charge 2 days ago.

Sgh-i337 (S4) running AOSP 5.1.1, rooted

BBB 2.1.0.0
[BetterBatteryStats] LoverBoy2415:
Yup I too was getting this, can't able to retrieve kernel wakelocks ..Posted about this ..but no Correct Fix or Response For this Still Now .. Don't know what actually the real Problem is Regarding Kernel Wakelocks..
[BetterBatteryStats] FernBch:
I have seen this behavior in the past. Both times it was because the kernel did not support reporting of wakelocks. Possibly the same cause for you.
[BetterBatteryStats] LoverBoy2415:
May be you are right but.. I was using stock ROM 4.4.2 before ... It was able to retrieve kernel Wakelocks .. Now using CM12.1 it's not able to..the only difference in this is..in 4.4.2 its been installed as system app by default(because it should be then only it will work on KitKat) ..in CM12.1 its an user app(installed it like every app)..may be installing BBS as System app will able to make it work fully or not.. I really don't know ..may be I could give it a try ..
[BetterBatteryStats] kRel:
Uninstall BBS: serious problem on LG G2 LL Cloudy G2 3.3

I have a G2 with LL 5:02 CloudyG2 3.3. I BetterBatteryStats, installed as system files: if I uninstall, I get a lot of errors that make it unusable, and G2 are forced to restart the device.

To reboot the system can not boot and I have to restore from TWRP.

What can I do to uninstall BBS without any problems?
[BetterBatteryStats] TNSMANI:
Use the uninstaller zip.
[BetterBatteryStats] in4ra3d:
Just getting 3 hrs of Screen time on Oneplus 2, dump file attached. Is som

Since I am a new user, they won't allow me to upload an attachment yet. So here is the link to the dumpfiledump file.

I have been using it for 2 months now and I have been getting just 3 hrs screen time, I did a factory reset and then installed all the apps I use. Rooted the phone, Greenfied FB & MESSENGER, WHATSAPP, QQ, yet I still manage about 3hrs on LTE even on WIFI. I tried going through the stats but it's beyond my comprehension. I'I'd really appreciate if someone can tell me what's wrong with my devicedevice. :rolleyes:

Since I am not allowed to post links, here pastebin.com/7iTBLsfk
[BetterBatteryStats] J.L.C.:
Are there any known issues with the Nexus 6p and sensors?

I'm getting good doze numbers overnight, but Sensors is reported as 93%.

I turned auto brightness off, turned off smart lock, ambient display is off, location is on device only.

Could it be the fingerprint sensor?
[BetterBatteryStats] BreadTM:
Can anyone take a look at this, please?

I'm at a loss, between this log in airplane mode and my other non airplane mode log (page 3041), I don't see anything that would be causing such random drains. I went on a hunch and recently replaced my battery and it doesn't seem to have changed anything.
[BetterBatteryStats] samuraix21:
Logs available

Hi. Thanks for the reply back. I very much don't want to do micro-manage that much as this phone should be able to figure out how to stop searching.

However, I have removed all connections except my Android Wear watch and I assume it's safe to say there is something very wrong with my LG G4 if it starts staying away from me simply being out of range of my smartwatch or when I wirelessly charge my phone and it's RIGHT next to my smartwatch. I was able to get a bunch of logs so I hope you or someone out there can solve this mystery. I took a look at some of the logs myself to see if there's anything that stands out like an app or something but all I can read is the bluetooth_pm wakelocks going in and out checking a variable to see if it's ok to sleep or not which fails all the damn time.

The (4) just happened 2 hours ago.
[BetterBatteryStats] G1Master:
Same with mine
[BetterBatteryStats] Perseus:
I took a look at the 4 logs. (For future reference, please only attach the files BetterBatteryStatsxxxxxxxxx.txt )

You're right., Bluetooth is causing a drain. You'd have to figure out either on the Android Wear or its app on the G4, a way to reduce the sync frequency. Even my Smartwatch tends to hog Bluetooth connection a lot of times. I am afraid, I'd chalk it up to cost of using a Smartwatch.
[BetterBatteryStats] Ok_Kaleidoscope5109:
Any idea what is causing this GOOGLE_C2DM wakelock? I understand it's legacy implementation of push notifications prior to GCM but what's causing this? Why can't I see which app is causing this?

This does not show up in Wakelock Detector at all.
[BetterBatteryStats] samuraix21:
:( hmmmm, ok cool. I take it the logs can't tell me which app it is then, bummer. If that's the case, I'm going to disconnect and live without any bluetooth-related for either 2 weeks or a month and just hope to deduce the app that's wrecking my battery. Thanks for the reply back.

This would be a massive bummer if it's Android Wear / the smartwatch; Google or LG (I own a LG G Watch R) would need look into this if this is the case.
[BetterBatteryStats] drewski_1:
Read & cry. BT battery suck issues have been on Google's radar for like 1.5 yes.

Low priority. . . Like getting Enterprise wifi access for Android Wear. . .

https://code.google.com/p/android/issues/detail?id=87778
[BetterBatteryStats] pikachukaki:
Can someone else help me here... Whats system process and sh?

Something running and keeping my little cluster cores to full speed... Alarms and partially wakelocks are normal.
[BetterBatteryStats] Bishopandme:
here we go...

In test now!

Ths

B
[BetterBatteryStats] suku_patel_22:
[MENTION=1330150]chamonix[/MENTION] Watch dog reported 100% awake since screen off while the app doesn't.
[BetterBatteryStats] Perseus:
This is precisely why BT 4.0 with Low Energy footprint was designed. I don't know if it has made it to mainstream Android Wear devices.
[BetterBatteryStats] in4ra3d:
Can someone suggest me whether My s battery is fine coz I keep getting 3-3:30hr30hrs screen on time in a period of 10 hrs at 50% brightness and Greenfied apps.

I am at a loss, How do I optimize the battery performance even after keeping my phone at less than 50% brightness, Greenfied FB n other apps, 3g on one sim?
[BetterBatteryStats] Perseus:
The Goal of the Analysis here is to reduce background drain. In other words analyze and reduce background apps chewing up battery. We can't very well do that with the phone in use. The 2 logs you posted, show that you were using the phone actively. It would help if you can post a log from leaving the phone alone for at least 5 hours. Preferably overnight. More instructions on this are in op.
[BetterBatteryStats] in4ra3d:
Hi here's an updated log where I used my phone sparingly and without turning on data after 70% battery

I still managed just 3.5 hours with 2.5 hrs Awake time even without turning on data or using social media apps, even though I Greenified FB, MESSENGER, WeChat, still I found some wakelock s of Messenger, I am clueless as to why I still see these wakelocks

[MENTION=596697]perse[/MENTION]ues
[BetterBatteryStats] TNSMANI:
Providing only in-use dump will not help you. As already stated, first provide an idle dump so that people can read that and help you.
[BetterBatteryStats] in4ra3d:
My bad :(

Actually, I have habit of fiddling with the phone every few minutes even whole studying. Coz its the only way for me to access the Internet.

But, I managed to keep my phone idle for 5 hours straight last night. There seems to be a 8% drop even though I didn't use it a bit. The phone was awake for 30 minutes.

I hope you guys take a look at it and suggest me some improvements.

I had Greenfied most apps, yet there seems to be few wakelocks for messenger. Any ideas why it happens?
[BetterBatteryStats] in4ra3d:
[MENTION=3639717] Perseus[/MENTION]

My bad :(

Actually, I have habit of fiddling with the phone every few minutes even whole studying. Coz its the only way for me to access the Internet.

But, I managed to keep my phone idle for 5 hours straight last night. There seems to be a 8% drop even though I didn't use it a bit. The phone was awake for 30 minutes.

I hope you guys take a look at it and suggest me some improvements.

I had Greenfied most apps, yet there seems to be few wakelocks for messenger. Any ideas why it happens?
[BetterBatteryStats] Portgas D. Ace:
ALARMS:

com.google.android.gms*api* (): Wakeups: 78 (9.1 / h)

com.mi.global.shop*api* (): Wakeups: 72 (8.4 / h)

com.google.android.gms*api* (): Wakeups: 68 (7.9 / h)

com.facebook.orca*api* (): Wakeups: 36 (4.2 / h) -> related to FB Messenger

com.facebook.katana*api* (): Wakeups: 32 (3.7 / h) -> related to FB app

com.google.android.gms*api* (): Wakeups: 26 (3.0 / h)

com.whatsapp*api* (): Wakeups: 24 (2.8 / h) -> related to Whatsapp

WAKELOCKS:

*job*/com.android.launcher3/.quickpage.weather.WeatherService (Android System): 2 m 54 s Count:29 0.8% -> related to a weather app (update service)

Those are the main drainers. Unfortunately, your alarm stats are incomplete as no further details are shown. Could you please update to latest BBS version (v 2.2.0.0B6) and post another idle dump file? This way we might help you with your issues.
[BetterBatteryStats] TNSMANI:
[MENTION=7337320]in4ra3d[/MENTION]

The ideal is not to greenify most of the apps but to greenify only those that run in the background eating your battery. By greenifying your browser for example, if you constantly use it, it will lead to more battery consumption. So greenify only those which you don't frequently use but which run in the background.

The easiest way to take an idle dump is to charge the device before going to bed and to save the dump first thing in the morning.
[BetterBatteryStats] Dan33185:
What the heck is going on here? 80% of the time it's awake with the screen off, and Wi-Fi has been running the whole time the phone's been unplugged even though I turned Wi-Fi off.
[BetterBatteryStats] Perseus:
Sorry this line in your latest report.

Screen On (): 3 h 29 m 5 s 23.1%

Says your phone was in use. The report is not of help. Perhaps you should have rebooted before leaving alone.

1 hour is very VERY Short time to do proper analysis. Can you freeze Facebook and G+(if you have that)? Also since you have trouble locking onto the tower, can you please toggle airplane mode briefly before leaving alone, so it latches on ?
[BetterBatteryStats] patlun:
battery drain T315LTE

Hello

Can you chek this log file to was is draning oure battery on samsung galaxy tab t315

please report to gr8nole or me

Thanks