yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Nightshadow931:
I've checked that, there is no white pages for lookup provider, its set to 'Google'. The other two are set to WhitePages(US).

I can't seem to find your post about multipdp, can you give me a link ?

I've tried to go back to the stock rom, to see if these three wakelocks(multipdp, l2_hsic, secril_fd interface) would disappear. But they still appear. No apps installed, stock ROM.

Could this be hardware related ?
[BetterBatteryStats] chamonix:
In that log I see (starting 14:14) that BBS is accessed and data retrieved. Obviously that was right after boot as no references except boot where present. Data is retrieved (I see "other" stats as well as processes, network, alarms and wakelock information. Looking at that log my question would be: what were you exepcting to see that didn't happen?
[BetterBatteryStats] Perseus:
Sure here's link. Can you change Stock Firmware (Older or Newer one ) Or at least chaneg your Modem/baseband/radio.
[BetterBatteryStats] chamonix:
This is pretty weird:

06-26 08:39:13.590 I/AlarmsDumpsys(20174): getAlarms: SDK=10, RELEASE=2.3.7
06-26 08:39:14.040 D/StatsProvider(20174): Result [su rights required to access alarms are not available / were not granted [Wakeups: 1 (0.0 / hr.)]]
06-26 08:39:14.060 I/StatsProvider(20174): Trace: Finished root operations2014-06-26

dumpsys alarm fails. I can only imagine two resons for that:

- su is borked

- dumpsys is borked

Could you plese try to open a terminal, run 'su' and then 'dumpsys alarm' to see what the output of that would be?
[BetterBatteryStats] Nightshadow931:
Well, I did try that, I mentioned that here.

I tried with changing modem/ROM/kernel, hell, even a simcard, and it still won't go away.:(
[BetterBatteryStats] Karpfenhai:
Okay, so please provide a full logcat, maybe we will see whats preventing it from going to sleep..

PM: Syncing filesystem,. the alert after that event should be the issue, lets see..

---------- Post added at 11:06 PM ---------- Previous post was at 11:02 PM ----------

Its simply traffic related..

Multidpd, = Traffic

l2_Hsic = Data Transmission betwen Android and the modem Part on Layer 2 ;)

Secril_fd = communication / negotiation with the tower about network speeds, can be decreased by nailing down the speed either to 2G or 3/4G.

At the end, all "issues" are traffic related, bad coverage or chatty services, your setup ;)

Regards

---------- Post added at 11:10 PM ---------- Previous post was at 11:06 PM ----------

Hmm, dont you consider Google Search / Now is maybe able to mess basic android things up since they are deeply embedded into the system (Service Framework) ?

Some people report after reverting to older version issue disappears, i don't have it, since i don't have Google search at all ..

im just saying... enjoy your weekend!!
[BetterBatteryStats] Tommmii:
is any one running Android "L" Preview ? BBS doesn't seem to be working on that rom? confirm please?
[BetterBatteryStats] chamonix:
:-X
[BetterBatteryStats] sahilkhurana:
Required files are attached. Can't pump in enough Amperes from computer's USB port to keep the phone alive :laugh:
[BetterBatteryStats] GermainZ:
That's not a ROM for normal users to install, please do yourself and everyone else a favor and revert back to KitKat or earlier.
[BetterBatteryStats] Perseus:
As [MENTION=4355376]Karpfenhai[/MENTION] said
[BetterBatteryStats] sarveshvaity:
A couple of Stupid/noob questions... How do i generate the logcat and/or dumpfile even if BBS is force closing on me? .. How do I downgrade Google Search to previous version?
[BetterBatteryStats] Ciresamor:
My battery life isn't too bad but I'd still like to optimize it.Something is keeping it on. If I use the data off function in Power Saver mode the awake time is 0 but then I don't get Google Reminders, which I use once or twice a day.

I've attached my greenify screenshot as well and even if I hibernate the Google search it still wakes up AND I my reminders don't get pushed through.
[BetterBatteryStats] dead0:
tried BBS as system app but no luck. when using nova launcher instead of google search/now, the from and to stats show fine.
[BetterBatteryStats] Karpfenhai:
Invalid dumps, lace the phone idle for a certain time,I don't even see an about to reach sleep status..

1 hour should be sufficient in your case.
[BetterBatteryStats] dead0:
I reckon that is whats happening, as the search app is deeply embedded in the OS, its preventing BBS from showing the stats.
[BetterBatteryStats] chamonix:
Again, this is pure coincidence as long as not proven otherwise. Please post a logcat with BBS running as system app.
[BetterBatteryStats] chamonix:
A logcat o it didn't happen
[BetterBatteryStats] chamonix:
You can install both as they have different package names. It may be a little confusing but both can be installed at the same time
[BetterBatteryStats] dead0:
again I had to use catlog as BBS crashes even as a privileged app.
[BetterBatteryStats] chamonix:
New version is up.

XPosed module users: please test. I have made this change blindly as I am not using the Xposed module (it is not needed).

I will start working on RC3 but I really need proper feedback on the changes in RC2

Edit: RC2 will be release to gplay once I have got feedback on the changes related to using the xposed module. As this is a feature and not a bug the changes are larger than typical fixes and need to be handled with care.
[BetterBatteryStats] sarveshvaity:
Could you please tell me how to do it. I am ready to help if i get instructions on how to do it.
[BetterBatteryStats] chamonix:
I have discovered a pattern: all users having FCs when saving logcat/dumpsys also have problems seing stats. All logcats show the same symptoms: all stats are coming from the API but the selected references (from-to) are shown as null even when selected in the spinners. This leads to empty stats on screen.

Fortunately I am able to reproduce on L and will try to fix it there for you guys to test it on your setups.

The fact that this happens on L is pure coincidence, do not expect any release specific for L in the next future. If it works it works but I will not actively start working on L before release 2.0 (the next one after 1.16).
[BetterBatteryStats] chamonix:
Learning logcat is always a good thing. Please check post #1
[BetterBatteryStats] chamonix:
Except the already known FC when tring to save a logcat this logcat does not show any BBS activity so it's useless
[BetterBatteryStats] pikachukaki:
I can't find the specific feature/app/process after installing sdk on my tools folder...anyone knows where i can find it??
[BetterBatteryStats] guido_glx:
RC2 working fine on my i9100 running Android 4.4.4

I'm not using xposed module
[BetterBatteryStats] cmd512:
RC2 + latest Xposed Framework with various modules working perfectly here, S4 i9500 on 4.4.2.

(Also did a reboot just for giggles, Xposed modules loaded with no issues.)
[BetterBatteryStats] sahilkhurana:
Please find them attached now a period of ~1h.
[BetterBatteryStats] animefans:
I just installed RC2, and still see no stat, but at least the dump does not crash

Unfortunately, dump content are all null

For the record, I am running CM11 nightly (0520), with KT kernel 0507, Google Play Service: 5.0.82(1253724-036), Google Search: 3.5.14.1234234.arm

When I was on older Google Play Service and Google Search, and even older BBS (1.14 I think), which was 2 days ago, I had no problem using BBS

The problem all started when I upped both Play Service and Search

BTW, this problem show up with and without xpose framework activated (2.6.0)
[BetterBatteryStats] skivnit:
Can anyone tell me what's happening with my phone? No wake locks yet I'm losing a lot when idle

http://pastebin.ca/2816237
[BetterBatteryStats] chamonix:
the logcat confirms what I wrote last night : the stats are there but the data is not shown. It behaves as if the selected references from the spinners are not found or as if the event of setting the spinner to a certain Reference is not propagated. Fortunately I can debug on L but it looks tricky.

Edit: maybe chasing a ghost
[BetterBatteryStats] chamonix:
Anyone with the problem that BBS stopped showing stats please try:

- go to settings - apps

- stop BBS

- delete data

- reboot

- tell me if it magically started working again (this is what just happened on my L device)
[BetterBatteryStats] Tommmii:
nope, didn't do it for me... sorry.
[BetterBatteryStats] HaTrED_:
With latest version, 1.16RC2, the only way I can get some results is unticking the option "do not detect as system app" (for exposed user, which I am) and enable the module under exposed - "enable battery stats permission ".

But from time to time I have to clear app data and cache to make it work! Kinda weird...

Under RC1 it was exactly the opposite!
[BetterBatteryStats] chamonix:
RC3 is in preparation with a fix for stats not showing. The problem is very weird: the selected references are being nulled as if bbs was removed from memory without the app being notified of that. This is normally not possible as there are events fired before an app gets removed from memory. In the log I see reports of ActivityManager unloading bbs but the event is never called.

The workaround is to detect that state on resume and retrieve the default values for the spinners.

I am doing some testing on L and will release RC3 later today.

Edit: and BTW the limited unrooted feature set of BBS works fine on L. Rooting now to see how the rest goes
[BetterBatteryStats] chamonix:
Not directly but most likely the apps causing the traffic will be listed in partial wakelocks as well (even low times with high counts are what you should look for). If you provide a dump we can have a closer look)
[BetterBatteryStats] chamonix:
well after only 1 hour and roughly a third of that time with screen on that reading may not be very representative. Nevertheless from that log there are a few signs for potential:

- gmail shows a quite heavy activity in terms of wake count

- network location suggests you have latitude / check-in active

I'd suggest that you take another run for a longer period and also make sure that the kernel wakelocks show for that run (you installed the new version after removing your phone from the charger so there was no reference "since unplugged" stored for kernel wakelocks.
[BetterBatteryStats] ponicpool:
Thanks for the reply.

I have attached a dump file with more than 6 hours of running.

Please let me know what I could do to make my battery life better.
[BetterBatteryStats] chamonix:
The second look confirms the first impression but adds potentials. Your awake / screen on ratio is already pretty good though from what your data from this run says.

- backup: if you already do a local backup e.g. with titanium you could disable google's could backup and save a pretty high wake counts

- WhatsApp: pretty much has been said about that App. Keep it if you like it, drop it if you don't need it (the cost in your case is pretty low from what I can see)

- GMail: push has its cost, an alternative client with poll may be less expensive but there is no guarantee on that, a test is the only way to know

I noticed there are still no kernel wakelocks in you data. Was the phone connected to the charger once since you have installed BBS 1.5 / rebooted?
[BetterBatteryStats] ponicpool:
Thanks a lot for pointing out the issues.

Where could I disable google backup?

Edit. Yes I foind to where to stop this. Under Privacy-->Backup and restore

Yes I could drop this

What kind of client with poll? any suggestions?

I installed BBS after disconnected from charger.
[BetterBatteryStats] polska2180o:
Hello, can somebody help me with my log. I'm not sure how to interpret it (what is acceptable and what is not)
[BetterBatteryStats] dmitrynt:
this is what i get from my GN which is VZW

help! battery draining fast! already starred google developer page maybe they get their butts off and fix it.

can some one explain to me which wake/app is causing this in my log?
[BetterBatteryStats] CRXed:
After disabling your suggestions and updating my Email app and disabling Calender sync I have managed to extremely improve my battery usage!

Especially the Calender sync is causing drain in the stock Samsung E-mail app and also Enhanced E-mail app. For more info, take a look here: http://quantumsolutions.us/forum/viewtopic.php?f=6&t=2096

So, now my results are like this!

Only losing 2% overnight, see screenshot:D

The whole time, it was draining 2 or 3mA.

Even cooling down to 18ºC at some point!

2011/12/30|10:12:01|-3mA|99%|4108mV|18.0ºC|0|0

I've added to log, Chamonix, would you be so kind to analyze it, even though it's not really draining anymore?

Now the problem I have is this: All the above info is from after a reboot and not using the phone. But when I wake up and start to use the phone, the drain never goes back down to below 30mA even if the phone is standby for a long time.

Why does it not go back down to 2mA

(like my HD2 did) and how can I find out what is causing this?

Thanks and Happy New Year:cool:
[BetterBatteryStats] Lownita:
I noticed that "wlan_wake / wlan_rx_wake" and "svnet" cause kernelwakelogs for me. I don't see any app in partial wakelogs that cause this. Any conclusions how I could find it out?
[BetterBatteryStats] TKBXPT:
thanks ;);)
[BetterBatteryStats] polska2180o:
Hi I let me phone go all the way down, I don't know if that helps but the two logs have about 8 hrs of it being not used or plugged in and the rest had moderate use.
[BetterBatteryStats] chamonix:
Could you provide a dump for us to study?
[BetterBatteryStats] :
Guys this is what I see on better battery stats. I went to bed with 60% battery and woke up with 36%. Left Wifi on all night but almost nothing is synchronized. As you can see I'm not having many wakelocks (list is long but everything else is less than a bunch of seconds) but either way my battery gets a bit of a beating every night (8 precise hours untouched this night).

What to do about these huge Wifi related wakelocks? Any idea?

I tried to change kernel to no avail.

Let me now if you need further specifications.

Cheers and happy new year!! :)

Sent from my SGS2 - Checkrom Revo 4 | Speedmod k18 | Vertumus ICS Theme |
[BetterBatteryStats] KeesStolk:
A log is better then a screen dump.

When in BBS, click menu > more > Dump to file.

This will create a log.

Then go to My Files and there you can find BetterBatterystats.txt, attach this to a post.
[BetterBatteryStats] chantoine:
Hi everybody,

i used this marvelous application to tweak my Defy, and all was fine until several nights ago... and now i can't figure what's happening, my phone loses 20% during the night (normally, it should be 5-6% as i don't sleep much).

I checked partial wakelocks, nothing surprising.

All seems to be related to kernel wakelocks.

Could anybody help me to clear things ? My mobile seems to lose network several times during the night, which was not the case before. Are the network seek / reconnexion cycles responsible on the battery drain ?

Thanks in advance !

Christophe
[BetterBatteryStats] :
http://db.tt/fv7Nih5u

Here it is folks, uploaded it to my dropbox :)

Thanks is advance

Sent from my SGS2 - Checkrom Revo 4 | Speedmod k18 | Vertumus ICS Theme |
[BetterBatteryStats] KeesStolk:
I'm no expert like Chamonix, but what i see is that your wifi is really present in your wakelock.

You can check for a different kernel that gives a better wifi signal, i'm on DarkKnight 2.5.2 and find it a little better then speedmod, but Speedmod is my next favorite.

I also use the option wifi off when screen is off.

And i unchecked Settings > Privacy > Back up my data and don't use Facebook.

This and some freezing like maps, did helped me a lot to safe battery.

But wait for the master's reply, he really knows this stuff.
[BetterBatteryStats] Hrithan2020:
Would really appreciate if someone could tell what these under partial wakelock stands for:

RILJ (Dialer)

GSM (Dialer)

Do these indicate the time screen was on, but I was on call?

Also :

GTALK_ASYNC_CONN (Google Services)

I have already disabled automatic sign on for google talk and signed out of talk. still seeing this wakelock.

also:

AlarmManager (Android System) -

does it refer to just the alarm app,or some alarm service called by other apps like astrid or others?

EDIT: saw the previous posts and also saw the alarm history, but out would be helpful if someone could cast more light on what this means?

ActivityManager-Launch (Android System) -what does this mean?
[BetterBatteryStats] sam142000:
Can someone please tell me why this graph is going ul and down? Shouldn't it just go down? I'm not charging it again and again.
[BetterBatteryStats] GermainZ:
Task killers, force stopping or LMK can all cause that.
[BetterBatteryStats] chamonix:
Well the issue here is that it looks like the activity gets destroyed but onResume instead of onCreate is called at the next start:

http://developer.android.com/training/basics/activity-lifecycle/stopping.html

I can't really imagine that something broke the activity life cycle but for now as a workaround I have duplicate code in onResume and onCreate to retrieve the from/to references in onResume (should be needed but without that the error occurs, with the change everything is fine).
[BetterBatteryStats] chamonix:
I'll leave this one just there:

[IMG="bbs on l"]http://asksven.net/pictures/bbs_on_l.png[/IMG]
[BetterBatteryStats] Tommmii:
this is a new build of RC2 ?
[BetterBatteryStats] chamonix:
This is the version I am currently running
[BetterBatteryStats] j1gga84:
What about the wakelock in attached Screenshot? Did not have this before I guess.

Regards

Sent from my GT-I9100 using german Tapatalk 4
[BetterBatteryStats] BadFish79:
I'm running a Nexus 5 rooted on 4.4.4 with franco kernel and xposed + gesture navigation.

BBS worked fine till recently. Now when I open the app, I get a toast message that says "Selected 'from' or 'to' reference could not be loaded. Please refresh"

No matter what I do It won't load anything. No stats or change anything. I tried refreshing, uninstalling, clearing caches, even did a full wipe and reinstalled android. I have given BBS root access. The attached pic shows all I get.

Thank you
[BetterBatteryStats] WettbackMartyr:
Read last page and this page. Issue is with new Google now launcher/ Google search 3.5 for some weird reason. A fix is being worked on since the Dev was able to recreate the issue on the L Preview
[BetterBatteryStats] sofia-captivate:
can someone please check my stats? but my screen was on dim when i left it on idle to do this test im attaching the file. no matter what i do on my galaxy s5 i cant get over 2h30 screentime and i see people with 6 hours + i dont know what else to do? i rooted my phone to get this app, wakelock detector and few more apps still nothing :( im also confused that why this bbs app require to do the test on idle? isnt it usually u use your phone from 100% to 10% to determine? Thanks
[BetterBatteryStats] chamonix:
After hours of debugging and reading I finally have found the error related to the references / stats being lost on some devices / configurations.

And guess what?

It is not related to google search or google launcher

The root cause is a bug in BBS that always has been there......

In a nutshell: when BBS is started (onCreate) the references to be displayed are retrieved from the settings. After that there is a check to see if BBS was called from another place (e.g. from the widget) and passed parameters on the references (from/to) to display. The mechanism use for that is called an intent "extra". Now here starts the trouble. With most launchers this extra was null so BBS retrieved the settings, checked if extras were passed, didn't find anything and all was good.

Now with some launchers (google launcher) the extra is not null anymore so BBS read the references to be shown from the extra. Unfortunately the extra not being null does not mean that there are any references passed (in fact there are none) so BBS read from/to as null/null from the extra, causing the weird error messages and behavior.

The fix is:

- read values from settings

- if there is an extra

- check if the extra contains reference data

- if yes use then, if not discard <------ that was added

In other words, 8 hours of work to fix 3 lines of code.

TBH I have not checked yet if the launcher is allowed to pass an empty extra or if BBS is wrong..... the most important thing is that I found and removed the cause. RC3 coming in a few minutes
[BetterBatteryStats] mdamaged:
That sounds like it explains a bug I experienced in the past when launching BBS from a custom made Zooper widget, when I would have it launch BBS on touch, it would never work, so I just bound the widget to launch the stock battery app, I never reported it because I wasn't sure if it was a BBS bug or Zooper bug. Thanks for your hard work!
[BetterBatteryStats] chamonix:
RC3 is up, hopefully fixing the problem certain users have had with references (and stats) being lost.

The update to the new SDK has broken my build workflow (new ant tools) and it will take me a while to fix that in order to build RC3 for gplay. Once you guys test I will fix it and release RC3 to the beta channel on gplay for testing the update process.

Edit: Build workflow fixed
[BetterBatteryStats] mdamaged:
Yup, that was it! Now when I use the zooper widget, stats are there! You are the man!
[BetterBatteryStats] chamonix:
Looks like the partial wakelocks have changed unit from microseconds to milliseconds on the L preview
[BetterBatteryStats] mdamaged:
Not sure if it just needs more time, but so far nothing shows up under Alarms (Android L) Definitely have root, as the other stats show up. will install some apps that I know should create them and let it sit for a bit longer, see what happens.
[BetterBatteryStats] chamonix:
Working on alarms currently: the format has changed so I need to adapt the parser accordingly
[BetterBatteryStats] mdamaged:
Oh, lol I should have known you were on top of it already, sorry about that!
[BetterBatteryStats] chamonix:
No worries. Alarms and partial wakelocks are fixed and will go into RC4.
[BetterBatteryStats] animefans:
Yay! RC3 work!

Thanks for the fix
[BetterBatteryStats] sofia-captivate:
Anyone?
[BetterBatteryStats] pjadec:
Idle log have no problems and battery drain was good. Do another usage log
[BetterBatteryStats] sofia-captivate:
how do i do the usage log? use the phone till its 10%?
[BetterBatteryStats] Perseus:
Your Wireless is always On. Can you check to see if in Wireless, there are advanced settings allowing you to set "Keep Wireless On during Sleep" to Never ? I know you have stock Samsung firmware so your setting may not look like this but look if there's something similar. Typically if you hit menu button on the list of wireless networks, you'd get something.

Your home wireless is chatty. Please set a static IP on your Home Router. Please remove or disable Instagram and Swiftkey. Please stack yourself against [BATTERY] Post your Galaxy S5 stats!

You can freeze many of the Samsung apps that you don't use with Titanium Backup app. If they are frozen, they won't be running in background.
[BetterBatteryStats] jadellah177:
I have a i9100 with slimkat ans slom kernel that it comez Wirth

Thé phone is working perfectly bit battery is draining fast heres the dp file after 6hr sleep

View attachment BetterBatteryStats-2014-06-29_071320203.txt

Help mee
[BetterBatteryStats] Deni_NS:
Read this again.
[BetterBatteryStats] godlesplay:
here they are
[BetterBatteryStats] chamonix:
The logcat and the dumpfile are consistent. There were no unplug events detect during that whole time.
[BetterBatteryStats] godlesplay:
I made them ~1 minute after full charge/unpluged
[BetterBatteryStats] chamonix:
RC4 is up with a few fixes for L preview
[BetterBatteryStats] mdamaged:
Everything seems to be working perfect in L. Thanks!
[BetterBatteryStats] pjadec:
Maybe.
[BetterBatteryStats] HaTrED_:
As soon as I tick "do not detect as system app" I can't get any readings which seems to be inconsistent with this option?! Am I seeing this right or... Not really?