yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] slish76:
Hi, I'm trying to understand why my GT-i9100 (Galaxy S2) is draining battery at night even if under Airplane mode (6% in about 8h).

I found out theese 2 processes with the highest rate of wakeups

Alarms: 182, Intent: com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVITY_DETECTION

Alarms: 106, Intent: com.google.android.gms.location.fused.GPS_ALARM_BALANCED_ACCURACY

I guess they might be related to GPS or something similar, but in airplane mode doesn't it should be localization services off?

I attach the whole report.

I use Cm11 Rom (latest nightly)
[BetterBatteryStats] Karpfenhai:
Disable location service and cloud backup, nothing else out of the ordinary, almost no drain, nothing to worry.

Regards
[BetterBatteryStats] kunal1540:
How to get rid of these alarms..

Are they ok.. Cause I have less sot than I used to HAVE. they started appearing recently. Even after greenify in medscape it's showing up in alarms..

Using OPO with cm 12 based BlissPop rom with boeffla kernel for OPO..

Press thanx if i helped you in anyway...
[BetterBatteryStats] chamonix:
The recovery zip from post #3 work on all android versions
[BetterBatteryStats] bombadier:
Thanks was not sure because of the way lollipop uses folders for apps installed
[BetterBatteryStats] chamonix:
lollipop indeed supports separate directories per app in priv-app but the way it was in KitKat (all apps in one dir) also works so I saved the effort of making a different implementation for KitKat as there are no known disadvantages in doing so
[BetterBatteryStats] AF_624:
Hi,

I use your app for a long time with a widget on home screen, Now i know its impossible to use a widget with cm12. I also know that the problem its in cm code, not your app's code, but its not anything you can do for us who uses the widget??

Thanks a lot for your work.
[BetterBatteryStats] Nimueh:
It's been mentioned that CMs update from the 22nd fixes that problem :)

My Rom hasn't updated yet, so I'll just have to wait it out :eek:
[BetterBatteryStats] tonyafc:
Is this working properly on lollipop as gsam shows me to have an android os wakelock but that is not present on better battery stats as i was hoping for more information about the wakelock as battery life is up & down at the moment
[BetterBatteryStats] Wh1t3Rose:
I have used both the zip and the normal APK install but on my Nexus 5 5.0.2 SimpleAOSP setup when I reboot the app is no longer installed. Any suggestions? The app gets installed to Priv-App right? Should I try manually installing to System/App?
[BetterBatteryStats] Traxex_:
Betterbatterystats is not working correctly for me on Android 5.1 and is not showing partial wakelocks.

Already tried to install the zip file but it still don't has access.
[BetterBatteryStats] stijnr:
For me the partial wakelocks appear to be working, but the graphs aren't showing correct data. The first 3 are empty and I suspect the Charging graph shows the wake lock data. I'm also on stock 5.1, rooted, installed with a complete factory reset.
[BetterBatteryStats] xdecoy:
Working fine! :D
[BetterBatteryStats] chamonix:
#679, will be fixed in 2.1 coming soon. I just need to find time to finish the new widget
[BetterBatteryStats] seh6183:
Something strange is going on with 5.1 and google. It seems that Google is forcing the phone to locate itself even with location services completely disabled.

I have been messing around in app ops trying to eliminate wake locks. Ever since 5.1 I have had a TON of wake locks. I have RILJ, GPS, NLP, NFC, and adspd wake locks. I was able to get rid of them all in 5.0. Location services off took care of: RILJ, GPS, and NLP. NFC off took care of NFC locks. Disabling nuplayer in developer options took care of adspd. It seems that in 5.1 none of that is responding and the locks are all there no matter what I try to do. I mean, I am getting fricken NFC wakelocks when NFC is OFF. Doesn't make any sense at all. My phone will not sleep at all anymore.

Anyone have any thoughts on this or have any info regarding changes to 5.1? I don't know if its part of the software or google play services specifically but something is creating these location based wakelocks that can't be killed. Zombielocks lol
[BetterBatteryStats] marknoll:
Wana hear weird. I'm running cm 11 and I installed BBS, and it didn't even ask to install into system. Odd
[BetterBatteryStats] str8str:
You have to go into settings and enable it

---------- Post added at 21:45 ---------- Previous post was at 21:45 ----------

Enable root features
[BetterBatteryStats] marknoll:
Thanks. But I never had to do that before. Right after installing it, I got install to system screen. I just found it odd

---------- Post added at 11:32 AM ---------- Previous post was at 11:30 AM ----------

Yes. I noticed that as well. Its even happening on cm 11. Google is the devil. Haha

---------- Post added at 11:35 AM ---------- Previous post was at 11:32 AM ----------

Did you ever try disable services? That works really well. Just be careful what ya disable. I had a few FCS when I disabled a few google services.
[BetterBatteryStats] Lord_Flaya:
This started a few hours ago, and I do not understand why. Before I had at max 2,2%/h.
[BetterBatteryStats] marknoll:
I'm getting an average of 3.0-5.7% an hour. Not good huh?
[BetterBatteryStats] seh6183:
I have disable service, 3c toolbox, and app ops. I am going to try to use those to shutdown whatever it is that's allowing the wakelocks through. I was using xposed on 5.0 bit with 5.1 that's not possible.
[BetterBatteryStats] xauu:
Same here. Nexus 5 with Android 5.1 Stock. I can see the apk in system/priv-app, but it's not showing in the app drawer.
[BetterBatteryStats] f0xy:
Guys these are my worst drainers while phone has been idle for several hours, would this be normal or can I tweak them?
[BetterBatteryStats] chamonix:
Please provide the full picture of you posting a dumpfile
[BetterBatteryStats] Karpfenhai:
Maybe you should write in big red letters.. "The zip is not the app, it's just a helper, you still need to install the main apk!"

Regards :)
[BetterBatteryStats] f0xy:
Hope this helps,

http://textdump.net/raw/7067/

Spoiler content hidden.
[BetterBatteryStats] W&Man:
No detailed alarms

Hallo, everyone!

Can anybody help me?

I have Galaxy S5 with rooted stock ROM OC7 and i can't see in BBS detailed alarms.

On previous ROM OA3 all was OK.

What happens?
[BetterBatteryStats] chamonix:
The awake to deep sleep ratio is pretty good, as is the drain per hour.

The only thing that you could have a closer look into is the location overhead caused by gms due to wifi being on all the time (gms alarms)
[BetterBatteryStats] smclaughlin3:
Getting entriesrefresh_wakelock from google anyone know what is it? Thanks
[BetterBatteryStats] f0xy:
I think I caught the Google services disease :(
[BetterBatteryStats] v7:
Post the Partial Wakelocks screenshot.

Tapped from my furious ZR ;)
[BetterBatteryStats] vanessaem:
Hello everyone,

Thread cleaned and a general message to all.

1. Please watch the language, on here and stop the name-calling and profanity.

2. Please search the thread, the site and google if you need help. For example, putting your inquiry here may help out a lot. You'd be surprised at the answers you'll find. There are very few questions regarding Android that are unique anymore. 9 out of 10 times others have had the same issues.

3. In the amount of time it took to argue that someone should've searched or when you did your own search you found the answer, you could've easily provided one.

Ignoring those who you think should search for answers on their own will motivate them to do so. Try it instead of arguing with them.

Please be respectful to one another.

Regards
[BetterBatteryStats] 530farm:
TiBu restore

I flash roms pretty often and get tired of having to install BBS on it's own and then having to make it a system app and rebooting. Have people had success restoring BBS system app via TiBu?
[BetterBatteryStats] f0xy:
Get the flashable recovery that's in the op?
[BetterBatteryStats] 530farm:
Flashing that zip in recovery will install it as a system app?
[BetterBatteryStats] f0xy:
I've not tried it personally, but that would be the only reason it's in a recovery zip
[BetterBatteryStats] 530farm:
Just tried. Seems it's kind of a companion app to install the system app portion. You would still need to install BBS.apk, but then after granting it root it would already be a system app.

Thanks
[BetterBatteryStats] f0xy:
Don't know how feasible it would be, but you could side load the apk
[BetterBatteryStats] shaggyskunk:
...... Or - You could download the apk - Copy it to System Priv-App - Fix Permissions - Reboot - Open BBS - Grant Root when SuperSU pop-up appears - Done

"Bye bye Sweet Canadian Moonshine"

Sent from my SM-N910W8 Running SlimLP
[BetterBatteryStats] wimstefan:
Hmmm .... my stats show the same symptoms :-/

How did you cure that disease?
[BetterBatteryStats] Karpfenhai:
Or you start being an advanced user and get used to your backup script.

Don't worry about the name, I was to lazy to adjust, so I renamed the apk instead.

Regards
[BetterBatteryStats] f0xy:
It's a test phone. I just reflashed :)
[BetterBatteryStats] wizzent:
Hello is anyone having the same app behavior? I am experiencing this when i installed the app using the zip file through TWRP recovery. After first re-boot the app was listed in the app drawer but I had to manually install the apk in order to get the app working as expected. The app then worked as expected but each time I reboot the system the app is no longer installed, but i have the companion app still available in the drawer.

As of today the only workaround for using the app is to manually install the APK each time I reboot the system.

Any suggestion about this?

By the way I am running Oneplus One, CM11S Stock, Unlocked bootloader, Root with SuperSu, SeLinux permissive

Thx Wizzent
[BetterBatteryStats] aikhome:
Samsung Galaxy Nexus S draining battery

Fighting a ghost draining the battery. I disabled bunch of things (like waking up for google play services, etc) but nothing helped. Here is the dump from last night:

http://pastebin.com/GGzHKpCT No suspicious kernelwakeups.

40% of battery just gone because of "Wifi On", no other details. "Keep wi-fi on during sleep" is set to "only when plugged in", "wi-fi optimization" on (tried "off" - no change), all other wifi settings do not affect the drain which happens always. Same issue was before I flashed the phone with CM12, it was running stok 4.2.

Any idea? Thanks....
[BetterBatteryStats] LiL_Assassin:
I have the exact same problem and I have no idea how to fix it. Dont even use my device and it drains at 4%p/h with no severe wakelocks
[BetterBatteryStats] W&Man:
Hi!

Please help me with my issue.

I can't see detailed alarms.

Here is my logcat.

View attachment logcat-2015-04-01_084540421.txt
[BetterBatteryStats] Karpfenhai:
Does it behave in flight mode?

If yes, could be modem then...
[BetterBatteryStats] aikhome:
Same thing happens in flight mode - 8% in 1 hour.
[BetterBatteryStats] mdaamir1989:
Nexus 4 battery drain

Hi Guys ,

If anyone could have a look at the log and let me know whats draining my battery it would be very helpful.

Charged the phone and left it overnight .

BBS Log - http://pastebin.com/cuDgpG0x

Lost almost 20% in about 8 hours .

Also attached the text file.

View attachment BetterBatteryStats-2015-04-01_091942923.txt
[BetterBatteryStats] karan.mangtani:
This paste has removed
[BetterBatteryStats] mdaamir1989:
Re uploaded the link
[BetterBatteryStats] Tylonhh:
Why you all don't spoiler the log? It's extremely more easy to read then.

I'll never ever download attached logs.
[BetterBatteryStats] Karpfenhai:
That's a had thing then, if you are sure it's not the Rom, depending on the age I would consider a new battery then.
[BetterBatteryStats] aikhome:
I tried stock 4.2 and 4.3 ROM, no apps, discharging fast. I also wiped all partitions (in clock recovery I just did format every partition). The battery is new and it is good - I have an USB charge tester, the battery claims it is 1800mAh and charging from 2% to 98% took 1600mAh according to that tester so it is not that bad.

It is either a hardware bug OR there is something left which format cannot fix - I saw that there is some extra way of resetting partitions (trip? ftrim? forgot the name of the tool) which I still can do and this might help. Any idea what it might be? :)
[BetterBatteryStats] LiL_Assassin:
Hey bro, you have the exact same problem I have.. It happens sometimes. Glad I'm not the only one. I only fixed it once by installing a stock rom with a different kernel and Odin pc. But I can't fix it as I have no access to a Pc, if you fix it please let me know.
[BetterBatteryStats] Wh1t3Rose:
Because it clogs the thread and causes headache for mobile app users. Imagine the amount of scrolling just to get past a post you aren't interested in. Attached logs keeps the thread tidy.

Also formatting can get messed up when you copy a log onto a post. Random emoticons in the middle of a log because of site reformatting isn't uncommon.
[BetterBatteryStats] Tylonhh:
[MENTION=4828464]Sandman-007[/MENTION]

That's why you spoiler it. I always read with my mobile, and I get more headache when I have to download a file, search it, open it, give a feedback, delete the file, ....

In a other German forum we only give feedback to spoiled logs.

Yeah the formatting is a little problem sometimes, but just if it's a one line log. I don't care about smiles. The formatting depends on the editor from where the "customers" copy the log.

Example

Spoiler content hidden.
[BetterBatteryStats] Tylonhh:
You shouldn't hide, you should spoiler.

[ SPOILER ] log [ / SPOILER ]

Try it, and copy your direct here, let's see if the smiles are still there.

---------- Post added at 09:58 AM ---------- Previous post was at 09:50 AM ----------

Ok, I don't care about smilies in a log.
[BetterBatteryStats] dorwoo:
Is so frustrating that I lose 20% battery over night without any apparent reason. Any suggestions?
[BetterBatteryStats] LiL_Assassin:
What are your wakelocks?
[BetterBatteryStats] dorwoo:
Nothing much at all, that's why it's frustrating.
[BetterBatteryStats] LiL_Assassin:
Try a different battery, also have you changed cpu settings?
[BetterBatteryStats] dorwoo:
Battery is fine,i have a moto g. I think it's a wakelock that isn't displayed by bbs.
[BetterBatteryStats] rpr69:
This one looks suspicious: qcom_rx_wakelock

Found this thread: http://www.reddit.com/r/nexus4/comments/1oclgy/qcom_rx_wakelock_hoping_someone_could_help_me/
[BetterBatteryStats] Wh1t3Rose:
Spoilers are great but there are a few problems I've noticed over the years.

1. Many new users sign up for XDA just simply to solve battery issues. So many people do not know how to use spoilers. So what we often get is a long post that is stupid long.

2. When using spoiler tags from Tapatalk you have to do the spoiler twice. Meaning you Have to post then edit your post to have the spoilers. This is due to how Tapatalk works with the site. The tags never work the first time around. But people do not know this so the spoilers end up being broken so we still get a long post not a hidden one.

3. Also the issue with the smiles everywhere has nothing to do with the text editor. It is simply the fact that there are a lot of colons and parenthesis next to each other in the log. Thus the site interprets this as an emoticon. It's that simple.

I'm not blaming you or anything of that nature. I can tell you are pretty intelligent and you had some great ideas that should work. The site just doesn't work quite well with Tapatalk and so these issues are still around (probably Tapatalk's fault (especially #2). But I don't think you should be biased and not help a user just simply because they attached a log instead of using a spoiler. That's a bit weak. But this is my opinion of course and you may do as you wish. :)
[BetterBatteryStats] devsk:
Sorry for being a pest, but is 2.0.0.0 the latest version? That's the only 2.0 version that I see. But then, the subject says 2.1+. Is that the android version supported?
[BetterBatteryStats] Aiakio:
I use Gentle Alarm... 2 Alarms active here, with 0,2% :D
[BetterBatteryStats] carlos67:
Yeah....mine is only 0.2% also with stock alarm app but just very curious why it's waking the phone at all when both alarms are disabled?

I know it's only 0.2% but I always like to know "why"
[BetterBatteryStats] nobnut:
Alarm manager has little to do with alarm clocks... read all about it. It is related to Android holding a process in state until it is either needed again or exited fully.

I have said it before in this thread and I am sure I will have to say it again... make sure you exit apps you no longer want by using the back button before you put your device to sleep. Do not use the Home button to exit apps.
[BetterBatteryStats] chamonix:
Fix version 0.6.1 is out. I hope the state save/restore is working fine and without side effects now. Fixed a few cosmetic bugs while I was at it.

Enjoy
[BetterBatteryStats] nobnut:
Thank you Chamonix!

EDIT: Just had a quick play with it and all looks good. I will report back tomorrow.

Excellent work... nearly time to hit the Market I think ;)
[BetterBatteryStats] carlos67:
Jeez, just installed v0.6.0! Oh well latest version here I come.

Thanks Chamonix :)

Ready steady, MARKET!!!!

(but keep it free for us XDA boys ;))
[BetterBatteryStats] LuffyPSP:
Guys previously i always use social hub and have no problems whatsoever. Then my internet always stuck and unresposive so i enabled fast dormancy which is my 3g connection are kinda working fine. I full charged and sleep for awhile and see that my phone was awake for almost 2 hours straight with 90% left. I think its kinda good but could be better if my phone are not awake. Any help i can to solve the social hub trouble? I'm thinking to freeze it using TB but afraid my email, IM's and linked contacts account wont work anymore cuz it is related to SNS acount.

I would upload the image but damn incorrect file type using xda app. Wtf....

Nuked from Samsung Galaxy S2 GT i9100 using XDA Premium app
[BetterBatteryStats] carlos67:
Boys, had a play with 0.6.1 and it's f**king excellent. Loving it.

Love the custom reference point BIGTIME!

No more FC either :)

Respect. ;)

Feature request for next release - Notification when an app or process goes over a certain wakelock threshold e.g. when xyz app goes above 5 wakelocks

or

2%. That would be cool.
[BetterBatteryStats] Kurre:
Thanks chamonix. This app has been very helpful to me :) keep on the excellent work :D

btw, the downloadlink isn't working..takes me to "http:/" :o
[BetterBatteryStats] desean:
same with me. see screenshot: http://imageshack.us/f/803/crich.png/

had this when v.0.6.0.0 was released too but alright after a few hours.
[BetterBatteryStats] Szczepanik:
Version 0.6.1

Version 0.6.1 is good, state save/restore is working fine and without side effects now on my HTC HD2 running Android from SD and the download link works.

Thank you

Cheers

Tom
[BetterBatteryStats] nobnut:
I have removed all of the Samsung junk. Emails work fine without the Hubs present. I don't use any IM stuff, so I can't comment on that.

Don't forget, the beauty about freezing is that if you lose functionality that you need, you only need to 'defrost' the apps with Titanium to get the functionality back.

Give it a try and see how you go :)
[BetterBatteryStats] mi3x:
Noob alert!

Ok, so I'm using the CM7 nightlies on my SGS2, is this better/in addition to SpareParts? Or if I have the SpareParts (which come preinstalled in CM7) I don't need this app?

Thanks for clarifying and thank you for the app as well :)
[BetterBatteryStats] Testraindrop:
I'm not sure if it was asked here before, if so im sorry :)

My biggest wakelog problem seems to be gtalk_async_conn, but I already frozen GTalk App, what is this service still doing there?
[BetterBatteryStats] carlos67:
+1

I too have GTalk frozen but it still produces wakelocks (gtalk_async_conn). Anyone know why?
[BetterBatteryStats] LuffyPSP:
thanks. will give it a go then. :D
[BetterBatteryStats] LuffyPSP:
if the spare parts in cm7 i know is the same when i use cm7 on desire. yes you dont need it. but this one will get updated over time so i think this one will be the better choice.
[BetterBatteryStats] chamonix:
Thanks for the feedback. About your request there is a little problem: there is no way of doing this without consuming resources and generating wakelocks. As I consider BBS as a non intrusive tool this is a problem. Possible solution: bbs does not need to run as stats come from the system. A service only running when display is on and creating those notification would be an option but again, it's just a tool, the expertise is sitting at the other end of your arms ;-) maybe I'm missing your usecase so if you like you could elaborate and maybe convince me

Cheers

PS: those graph bars look hmmmmm
[BetterBatteryStats] chamonix:
You have my word
[BetterBatteryStats] Isadora:
Erm... :rolleyes:... Anyway... great app Chamonix, thanks :)
[BetterBatteryStats] superbobup:
I do have market notifications disabled and i also disabled auto backup in settings and apps. I actually deleted GoogleBackupTransport.apk as it seems to be strictly related to backup which I never use. The only GAPP that I have is calendar, gmail, market and the search bar. All of these are not synced and do not have notifications.

For the KWORKER process, I have recently updated to the latest kernel (#13) from Franco and will try to look at a dump for this. I'll try a different kernel also, just to make sure.
[BetterBatteryStats] jeremysherriff:
Exit and go back into BBS several times, usually works on the second but can sometimes be the third. I don't know why, but at least it doesn't FC.
[BetterBatteryStats] xuxuzao:
ive done that a few times

nothing =(
[BetterBatteryStats] jeremysherriff:
I note that in between exiting and retrying, I often go into the battery info part of the MIUI config and check the setting and graphs... not sure if that helps?

I'm currently restoring back to CM7.1 this MIUI thing has too many quirks for my liking. Gave it two weeks, love the speed and look, but too many weird things! lol
[BetterBatteryStats] polobreaka:
what kind of weird things are you experiencing? im running miui and its been running perfectly fine.

only thing is the BBS doesnt work right. same for me that im not getting anything to show up in BBS and would have to go in and out of the app for it to work.
[BetterBatteryStats] jeremysherriff:
Difference is that MIUI is official for you, where-as mine is a "beta" build (maybe even a KANG build, not too sure!). I have the Huawei X5 u8800. "Weird" is phone reboots / turns off, app icons will move pages during a reboot and then double-up on each other, can't create shortcuts to things like alarms using AnyCut, charges super-quick (from 20% to full in 30 min) etc. I think the root problem is the lack of a kernel specificly designed or tweaked for MIUI on this phone. Overall, CM is a better fit for me on this hardware. I'd really like to put MIUI on my wife's P500 but... not available.
[BetterBatteryStats] polobreaka:
oh man that sounds terrible. thats a bummer. hopefully miui's weekly will get better for your phone.
[BetterBatteryStats] Tommmii:
I think I've resolved my Miui issues on the LG O2x.

BBS wasn't populating the screens consistently, i had to switch back & forth between screens, even exit & re-open the app...

Anyway, I did a "wpe battery stats" from CWM, and waddayaknow BBS is now doing it's thing as normal.

Some one on Miui please try it & report?
[BetterBatteryStats] mmm286:
Hi

Sometimes gives me FC with MIUI in galaxy s2

Any help?
[BetterBatteryStats] Tommmii:
which version of the rom are you on?
[BetterBatteryStats] mmm286:
MIUI 2.1.6

v. 2.3.7
[BetterBatteryStats] Tommmii:
as posted here MIUI 2.1.13 seems to cooperate better than previous versions.

Perhaps you should try to update?