yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
I can't find any dumpfile
[BetterBatteryStats] mag01:
[MENTION=1330150]chamonix[/MENTION]

I've got one idea regarding the loss of application settings after system app uninstall. But take it just as an idea, and it's really something of low priority. There's still a chance Google will revert the battery stats restrictions and the whole system app thing will be unnecessary.

Before uninstalling the system app, you could export the settings to some temporary file and then restore from it at appropriate time (and delete that temporary file of course) - not sure if current settings are deleted immediately or later, if they're deleted immediately it may be even possible to just re-write settings after system app uninstall and that will do it, but I doubt it will be that easy, they're probably tied to the system app at least until the main app is relaunched. :D
[BetterBatteryStats] shadyabhi:
I've edited my original post to add the dump file. http://xdaforums.com/showthread.php?p=47764510&postcount=20879

Additionally, it can be found here: http://pb.abhijeetr.com/hWAj (It's for around 3.5 hours after a device restart)
[BetterBatteryStats] gaich:
I just installed 4.4 ROM, restored my apps+data with Titanium backup, RC8 among them - now it is installed as it was in 4.3 - as user app. And it is working! Showing all stats. Did several reboots, changed dalvic to ART - it still works, refreshes, makes full dump.

BetterBatteryStats-2013-11-24_133747068.txt
[BetterBatteryStats] ihatelolcats:
im having a wakelock from google sync i think. it wont go away after reboot and its labeled as google services in the battery stats. what can i do?

http://pastebin.com/aedtEWEm
[BetterBatteryStats] Shudder123:
Does anybody know what is causing this checkin service?
[BetterBatteryStats] V13w3r:
Stumped on high battery drain for past 2 weeks

Hey all,

Can anybody help me out here with my massive battery drain issue? I have been trying to troubleshoot and read up on forums but to no avail. Attached is the dump file which says my phone is in deep sleep 98.1% of the time. However, I see that there is a massive battery drain of 45% during the course of 7.5 hours.

Here is what I have done to get this log: -

1) Charged phone to 100% before leaving it overnight

2) Disabled Wifi, mobile data, GPS, location services, auto syncing and mobile network connection (used airplane mode)

3) Checked in the morning. it has drained 45% battery without me doing anything!

Would really, really appreciate it if anyone can tell me what is wrong :(
[BetterBatteryStats] chamonix:
If you have root and not installed the system app BBS uses a workaround to get the data, if you install the system app it will get the data from the batterystats service.
[BetterBatteryStats] chamonix:
Release 1.15 is up and gplay rollout will start in a few minutes. Thank you all for your testing and feedback!
[BetterBatteryStats] chamonix:
I will need to spend a few hours merging all the changes caused by the Kitkat debacle to the dev-2.0 branch and will then resume working on 2.0. Depending on how thing go with 1.15 I may do a 1.16 or switch directly to the completely redesigned 2.0 iteration.

For the ones that are curious these are the changes I have to merge into the dev-2.0 branch from release-1.15
[BetterBatteryStats] phanitej:
Please dont bombard with things like search the thread. Tried searching the thread for help. COuld not find (and the thread is so huge now that i just have been reading posts not relevant to my issue since half hour or so).

I keep getting "BatteryInfo service could not be contacted". Someone please help... It works fine on my Nexus 7 with Kitkat on it but not on my Nexus 5(Stock and rooted)

Not sure what might help. Attached these files.
[BetterBatteryStats] mag01:
[MENTION=3154360]phanitej[/MENTION]

You've got: BetterBatteryStats version: 1.14.0.0

That won't fully work at Android 4.4, you need 1.15.0.0 (released today)
[BetterBatteryStats] phanitej:
Thanks for that, dint notice that its still 1.14, Thats strange. I just installed it from play store after checking that it says 1.15 in there.
[BetterBatteryStats] anil2653:
I downloaded v1.5 from play store and in play store it is showing v1.5 but after installing the application is showing v1.14

Which is correct?
[BetterBatteryStats] mag01:
It started as staged update so it isn't available to everybody yet so it seems you aren't amongst the lucky ones... Just relax and hold on for a little longer, it will eventually arrive to you if nothing goes terribly wrong as this release is now reaching large group of users.
[BetterBatteryStats] chamonix:
Sorry for the confusion. I have added a hint that the rollout is hapening in stages as google play will always show the most current changelog, even if the newer version is not available to you yet. I have started withl 20% of the install base and am observing the crash reports. If nothing goes really wrong until tomorrow morning I will enable the update for everyone.
[BetterBatteryStats] Dreadsteel:
I still haven't figured out why I am getting such a high wakelock lock for diagnostics.client.Wakelock?

I am stock and un rooted Galaxy note 3 . Started getting higher wake locks on this out of nowhere.

Please help. Thanks!
[BetterBatteryStats] robindebruin:
Really good app use it every day :thumbup:
[BetterBatteryStats] PIRATA!:
So complete support for Android 4.3 with v1.5?
[BetterBatteryStats] chamonix:
4.3 has always been completely supported, the changes Google made that broke stuff are in 4.4
[BetterBatteryStats] Waldos:
Hello guys, this is my log with Android 4.4 KitKat. 3 hours idle with orbot.

Hope you can help me. :) :)

http://pastebin.com/YXda0zpP
[BetterBatteryStats] chamonix:
Orbot has been using bandwidth in the background. Did you have a download ongoing?
[BetterBatteryStats] chamonix:
You should start by asking a more precise question and read the first posts about how to post a dumpfile
[BetterBatteryStats] caplja:
Tonight i did the test with sync off. Result are better but still really weird:/

There should't be do much activity from google.

Well, at least I know the cause now. Google damn you:)
[BetterBatteryStats] chamonix:
At 0,6%/h there is barely anything that you can optimize: congrats!

There is one last Google account (feed sync) still running and causing some traffic
[BetterBatteryStats] yhrn:
[MENTION=1330150]chamonix[/MENTION] I have a small feature suggestion. When you analyze alarms from a dump file you often state the average interval between alarms, e.g. one wakeup every 5 minutes. Why not include that information in the alarm section, both in the app and in dump files?
[BetterBatteryStats] LikartS:
Great app.
[BetterBatteryStats] :
Disabling gtalk related services within Google services framework using rom toolbox pro does break push services somehow? I see a delay with WhatsApp messages and many times I don't get new messages until I open the app itself.

Any ideas please?

Note 2 N7100 - DN3 ROM [MENTION=353015]240[/MENTION] dpi - MK4
[BetterBatteryStats] ramrastus:
Enable all of them (google service framework) disable gtalk, checkin, subscribed in the title.. & reboot..
[BetterBatteryStats] lionsmatara:
Dear bro, Any Facebook group or tweeter about BBS?
[BetterBatteryStats] Milaneli:
Hi. I have just sold Galaxy Nexus amd bought Nexus4. On both phones are the same factory image, stock kernel...I did have 0.7% p/h drain on Nexus, but now with Nexus 4 I have notice between 1% and 3% (avg 2% ph). First dump represent a normal configuration, and is the best I am manage to achive (no location, no wifi scaning, no chrome, moderate push notifications...). The second one is with wifi sleep settings to never, no weather witdget, no maps, no chrome, no google music, gmagazines, etc)

I have notice that whatever I do, in last 10 iteraton of bbs dumps, suspend_backoff is the bigest and perhaps the sole cause of draining. What can I do? Any idea?

EDIT: if it is helpfull, I have found that wake event 590 from dmesg is system_server. Dont kniw what to do with it...
[BetterBatteryStats] chamonix:
Facebook: no, twitter: yes, see post #1
[BetterBatteryStats] chamonix:
#436
[BetterBatteryStats] xI mEzMeRiZe Ix:
On the Nexus 5.

Seeing "TimedEventQueue" as my biggest partial wakelock (way higher than NLPs) and "PowerManagerService.Wakelocks" as my highest kernel wakelock. Anything I can do to fix these?

Dump: https://dl.dropboxusercontent.com/u/55508534/BetterBatteryStats-2013-11-25_095011817.txt
[BetterBatteryStats] chamonix:
Looking at dumpfile #1 (the second is too short) and at dmesg I see two possible causes:

- suspend backoff is caused by wifi being on and flapping (I see a few dhcp renews so the connection was not stable)

- the reason are alarms

I recommend turning wifi off and taking a representative idle dump so we can look into the causes for wakeups (Facebook is for sure one). Once this was cleaned up we can look how it looks like when wifi is on again. If you are using 4.4 please also make sure that you have turned off the option for android to use wifi even when it's off (for location sniffing)
[BetterBatteryStats] Perseus:
Weather Widget kept hammering. Set a Custom Locating in its settings if it allows. Also change the refresh frequency to 4 hours. Turn the Email Client to Manual Sync. Remove Facebook and use mobile site instead.

Post it here. Happy to take a look. Can't access Dropbox.
[BetterBatteryStats] mehdi_s82:
I have the same issue with my phone. It is so annoying! I did a factory reset it was good for a few hours but this morning again I see the diagnostics.client.wakelock. I believe it is something related to Samsung bloatware or Knox although I have all related apps frozen through titanium backup.
[BetterBatteryStats] itsLYNDZ:
Im finding I have idle battery drain when the phone is just sitting for hours. Can anyone tell me whats draining it?
[BetterBatteryStats] Perseus:
Do you have Google's Anonymous Data Collection Turned off ?

Turn off location Service.
[BetterBatteryStats] itsLYNDZ:
It is off. Access to my location is off. How are people getting such long screen on times? I feel like as soon as i start to use my phone the battery immediately starts to drop. And I feel like I have everything set to save battery on Slimbean 4.3 except the ability to control Google Service Framework in Greenify.
[BetterBatteryStats] xI mEzMeRiZe Ix:
I'd gladly do that, but xda is telling me that the text contains 72 images and that I am limited to only 60. It's a text file with 0 images...

Not sure what to do.
[BetterBatteryStats] henry8668:
Tmobile S3, recently flashed to CM10.1, battery seems drain more than the stock rom. last night it is 1.1%/H, used to be 0.5%/H on stock ROM. same condition: mobile data off, auto sync off, location off.

here is the BBB log last night, I didn't spot anything jump out. could anyone help to see what drain most of battery? Thanks.
[BetterBatteryStats] Perseus:
Rename the Log as .txt then attach.

Remove Hangouts. Tasker is waking your phone a lot. Turn off Location Service.
[BetterBatteryStats] itsLYNDZ:
In regards to my BBS. I thought I had location service off. It is switched off in settings. Is there something else im missing? How are people getting such long screen on times?
[BetterBatteryStats] Perseus:
Post the Text log.
[BetterBatteryStats] itsLYNDZ:
Here it is
[BetterBatteryStats] Perseus:
I still see Location wakelocks. Go to Settings >Wireless > Menu then Advanced > Keep WiFi On During Sleep. Set it to Never. Also while there, uncheck "Scanning Always Avaialble" option. Once done, reboot the phone then let it sit idle for 3-4 hours without any use. After that take a fresh text dump and post it.
[BetterBatteryStats] xI mEzMeRiZe Ix:
Okay, it's attached
[BetterBatteryStats] Perseus:
Turn off Location Service unless navigating. Turn off Google Sync for everything except Contacts.
[BetterBatteryStats] itsLYNDZ:
Scanning always available is already unchecked. Keep wifi on during sleep options are: always, only when plugged in, or never (increases data usage)

Do you know of any other tweaks that can be done on slimbean 4.3 for battery? I know we are running the same rom.
[BetterBatteryStats] Perseus:
As I said, can you set it to Never ?
[BetterBatteryStats] itsLYNDZ:
Ill set it to never and reboot. Anything else I can do for battery on slimbean 4.3?
[BetterBatteryStats] xI mEzMeRiZe Ix:
I'm a little confused. Location wakelocks weren't my biggest issue. It was the TimedEventQueue and PowerManagerWakelock. Are these related to location?
[BetterBatteryStats] Perseus:
Did you read my last post with additional steps ?

You are focussing on Kernel Wakelocks that are culmination of other problem areas. Its not always the biggest that really are the problem. Its the Partial waklocks that appear small but are a bigger problem.
[BetterBatteryStats] itsLYNDZ:
Yeah I did. I rebooted the phone and will let it sit.
[BetterBatteryStats] henry8668:
I will uninstall hangouts.

Location was already turn off (menu->location access->access my location set to OFF. Is there anywhere else I need to turn off? which items in the BBS log is from location service?
[BetterBatteryStats] Waldos:
Not in that moment, it was on background
[BetterBatteryStats] chamonix:
Then you should observe what orbot does: it showed a little too much traffic for just "sitting there"
[BetterBatteryStats] Perseus:
Turn Off Media Scanner and Google Sync for Gmail.

Please attach Text Dump of the BBS.

Turn off Google Sync.

Most likely hangouts.

Weather Widget access the Location Determined by Wireless Location. Its located under advanced Wireless Settings.
[BetterBatteryStats] henry8668:
I am using HD widget for weather, and already set the location to static location (not discover location automatically).

checked wireless advanced setting, but could not see anything related to location by weather etc (cm10.1)

in the lock screen setting, the location is also seems to set static instead of determined by wireless or GPS.
[BetterBatteryStats] Perseus:
What do you See in

Settings >Wireless > Menu then Advanced > Keep WiFi On During Sleep ?
[BetterBatteryStats] henry8668:
that's set to 'never'
[BetterBatteryStats] spartanhooah:
Why would it be that I can very rarely view data "since charged"? Most of the time I can only see since boot or since unplugged. What is making the "since charged" option inaccessible?
[BetterBatteryStats] skivnit:
Guys this is driving me nuts. I'm using three phones on some network (wlan and mobile) yet 2 are fine whilst the s4 is draining overnight https://www.dropbox.com/s/x803ea81kkgqu5i/BetterBatteryStats-2013-11-26_072348092.txt

Sent from my Perseus powered octa
[BetterBatteryStats] GermainZ:
Charged until 100% and no reboots after charging.

You can try changing your S4's "Keep Wi-Fi on during sleep" setting (WiFi > Advanced). Not sure what "sec-battery-monitor" is for, but it's keeping your phone awake as well.

I can't say much more than that because you used your phone for about 10 minutes so the other wakelocks/network usage may be caused by your usage.
[BetterBatteryStats] skivnit:
I have wifi set to keep on sleep. Android os shows 3hrs awake time which i assume is wlan wakelocks and sec battery. I have no idea what causes the latter

Sent from my GT-I9500
[BetterBatteryStats] mag01:
[MENTION=1330150]chamonix[/MENTION]

I see your issue #435 [bug] on kitkat accessing appops from package view causes an FC

One Japanese guy has discovered a way how to access App Ops in KitKat as well: http://brightechno.com/blog/archives/211

old way at 4.3 was like:

final Intent intent = new Intent();
intent.setClassName("com.android.settings", "com.android.settings.Settings$AppOpsSummaryActivity");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
intent.putExtra(":android:show_fragment", "com.android.settings.applications.AppOpsSummary");
this.startActivity(intent);

while new way at 4.4 (and it's supposed to work at 4.3 as well) is:

final Intent intent = new Intent();
intent.setClassName("com.android.settings", "com.android.settings.Settings");
intent.setAction("android.intent.action.MAIN");
intent.addCategory("android.intent.category.DEFAULT");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
intent.putExtra(":android:show_fragment", "com.android.settings.applications.AppOpsSummary");
this.startActivity(intent);
[BetterBatteryStats] brunek:
I am satisfied with my deep sleep, more or less.. It is in 90+% so its ok.. But I was wondering, what does "com.google.android.intent.action.gcm_reconnect" under "com.google.android.gms" means?? As you can see in my dump it has a lot of wakelocks.. I know that it is related to google play but I never had so much wakelocks from it..
[BetterBatteryStats] chamonix:
Do you reboot often? References are delete at boot time and re-created as event occur. 'charged' will when your phone was unplugged after being fully charged
[BetterBatteryStats] chamonix:
Incoming Wi-Fi multi-task traffic is what keeps waking up your phone, battery monitor is the consequence of it so other in sum caused about 3 hours of awake. You need to turn off Wi-Fi when your phone is sleeping to avoid those
[BetterBatteryStats] V13w3r:
Guys any help on this one? I have also tried taking out the battery and using it on another phone. The battery life is normal on the other phone though :confused:
[BetterBatteryStats] Milaneli:
Thanks. Chamonix, as you suggested I disabled wifi and take a bbs test on mobile network. No big draining while on 3g (0.6-1.0%ph), tell me it is wifi issue.

So,then, I have tried to freeze or disable all services, proc, etc, like fb, hangout, weather widget, IM. With little success, no big change. Afterwards I have tried to change WiFi encryption from wpa psk2 to wpa psk and wep. No luck. Next I have tried to chang settings on two Win7 notebook (IP helper, IP6, shell detection, media network detection...). No change. Than I changed wifi to b/g instead of b/g/n, and everything has changed, as you can see from the bbs files. No problem at all, and batery behave like it does before with GNex. Why 802.11n doesnt work as it should, I have no idea, but I can live with it at the moment. Will see later, what could be a reason.

Thank you lads. Chamonix, your answer lead me to answer, so thanks again.
[BetterBatteryStats] skivnit:
The kernel in using is supposedly disabling multi cast so i don't understand what's causing this

Sent from my GT-I9500
[BetterBatteryStats] fndpena:
hello guys... I had this wakelock when I was on CM10.2 and it disappeared after some update. But now it's back with CM11 4.4.

I can't find useful information about it. Is that ROM related? Any way to fix?
[BetterBatteryStats] spartanhooah:
That's what I thought, but yesterday I didn't reboot at all after unplugging it, and I still couldn't view the "since charged" stats. I can right now (~75 minutes after unplugging), but who knows if I'll be able to by the end of the day (when it's actually useful). I have a Nexus 4 running 4.4 stock.
[BetterBatteryStats] lionsmatara:
Dear brothers. ..

Please check my text file and... please tell me how I improve my battery life.

Thanks.

https://www.dropbox.com/s/g4arheja663w5u6/BetterBatteryStats-2013-11-26_190703705.txt
[BetterBatteryStats] jerome38:
Hi,

I have wifi running 100%. My wifi is off.

Anyone could explain me what's happening?

Thanks in advance
[BetterBatteryStats] chamonix:
Well from what I see the filtering is not active
[BetterBatteryStats] henry8668:
this is last night's BBS log, mobile data off, wifi off, auto sync off, location service off.

anything we can do about this?

CPU, since it is middle night and it is siting stand-by, is it possible to set the CPU always use 384 MHz (), and restore it back to normal in the morning? if yes how to do it(I am using tasker)?

below is complete log, any advice is appreicated!
[BetterBatteryStats] AXP:
Nice! Thanks!

I've implemented it in my little app: https://play.google.com/store/apps/details?id=axp.tools.appops

(sources on github: https://github.com/axxapy/android.tools.app-ops)
[BetterBatteryStats] Perseus:
Good of you to List. [MENTION=1330150]chamonix[/MENTION], Would it be a good Idea to Qote [MENTION=5543250]mag01[/MENTION]'s post in your OP Post 4 ?

In that case, please reboot and spend 3-4 hours of complete idle time and then provide a log.

Do you have Google Cloud Messenger ? Its a known battery hog.

I also see Torch on for 6 Minutes. That will surely kill battery like never before. Do you play music in any form ? I see Audio Out Wakelocks. If not music then you need to turn off all extraneous usage of phone speaker.

[/COLOR]

Light Flow used up a lot of battery.So did Facebook.Remove both and then provide another log.

Can you turn off Location Service completely and then set your Router to give out IP Addresses with 24 hour lease.

May not be Rom. Check your APNs

Please post Text Dump file.

If you want to Control CPU, use Kernel based control for Screen Off frequency. Your log shows Google Cloud Messenger waking incessantly.
[BetterBatteryStats] itsLYNDZ:
Anything for mine? Getting idle drain...
[BetterBatteryStats] Perseus:
You should have turned off Location Service completely before letting it sit idle. Do completely turn off. Also follow [MENTION=5543250]mag01[/MENTION]'s settings list from his last post (previous page) and make sure you have all those done. Also freeze Google Search.
[BetterBatteryStats] itsLYNDZ:
I did turn location service off completely like you said yesterday with the wifi. I did that. What am I missing? What would freezing google search do?
[BetterBatteryStats] brunek:
I dont have Google Cloud Messenger.. I did use my torch for a couple of minutes and i listened to music.. So is that the reason of such high .gms, exactly .gcm_reconnect, counts? I never seen that before so high, it was usually at 100-150 wakeup counts..
[BetterBatteryStats] Perseus:
Did you follow Mag01's setting list ?

I saw Location wakelocks in this log.

What is the Exact Rom Version and Android Version ? Also the Kernel please.

gcm_reconnect is Google Cloud Messenger Re Connect Receiver within Google Shared Framework. Follow this thread please.
[BetterBatteryStats] itsLYNDZ:
I did and everything was already switched off. With Disable Service app, if I disable those will I be able to use apps that require my location? Will it come on automatically or what?
[BetterBatteryStats] brunek:
Vanir 4.3.1.112013 with Vanir`s stock kernel..

EDIT: I turned google play services into user app... Whe I rebooted my phone it said "google play services stopped working". I clicked ok, greenifyed it and now will see..
[BetterBatteryStats] fndpena:
It's not APN's fault. I don't touch those settings since ever... It just reappeared after flashing cm11 :/
[BetterBatteryStats] itsLYNDZ:
[/COLOR]

I feel like as soon as I start using my phone the battery starts to drop. Like I just sent 2 texts messages and checked the web for maybe 3 minutes and it dropped 3%. Im using Slimbean 4.3 like you said you were and im not getting the great battery life I had hoped for.

Slim-4.3.build.2-official-1349 and the kernel it came with. Version 4.3.1
[BetterBatteryStats] njfoses:
I have been a bbs user for a while to help diagnose rouge apps and really think its an awesome app. It seems all the advice to save battery is to turn off location, turn off sync etc. Whats the point of having a smartphone and turning these features off? Any device nowadays will get you through the day on a single charge without crippling your phone. Just doesn't make sense to me.
[BetterBatteryStats] chamonix:
I absolutely agree: the decision of turning things off should be made by the user if he does not accept the cost; bbs is just a tool that make the cost transparent. I do not turn anything off using autostart, have one single app greenified, control my Wi-Fi with bwof and have only turned off location tracking. This brings my drain down to 1.5%/h auf With normal use and I am happy with that. I could reach more and have a dumbphone but that is not what I want