yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] CRXed:
You can add attachment if you have more posts I think.

Best time for a log is when you wake up in the morning after you let your phone sleep for hours.

---------- Post added at 09:18 PM ---------- Previous post was at 09:13 PM ----------

You can easily see for yourself:

-Gmail

-Google Talk / Google services

-Facebook

---------- Post added at 09:23 PM ---------- Previous post was at 09:18 PM ----------

First big problem is your Kernel Wakelocks

"deleted_wake_locks" (): 3 h 53 m 3 s (13983 s) Cnt:(c/wc/ec)-57039/0/5709 -29.7%

It's Wifi related, read this:

http://xdaforums.com/showthread.php?t=1179809&page=182
[BetterBatteryStats] chamonix:
Well spotted: https://github.com/asksven/BetterBatteryStats/issues/91

Will be mixed in next maintenance
[BetterBatteryStats] 93Akkord:
Not sure if this is the right place to post this. Please correct me if I'm wrong.

I've been getting this GCM_LIB wakelock since I updated to Lollipop, and my phone does not go into deep sleep anymore. My stats always read 100% awake.

I've been Googling this wakelock for two days now and I haven't been able to find much at all. Would anyone happen to have any insight? Something tells me it might be a app misbehaving with the GCM services.. maybe(?), but how would I know which app is to blame?
[BetterBatteryStats] Znorfi:
Thx for the answer :) You're right, apparently I'm on 1.16. Where can I find the gplay recovery .zip? I only see two xdaedition CWM .zips and one REMOVE .zip in the OP (3rd post). I get no link in the app when it asks me to install as system-app if that is what you mean with "following the link on the dialog". Is there a possibility that installing as system-app will work once I upgrade to 2.0, without having to do the recovery .zip method?
[BetterBatteryStats] chamonix:
Sorry, the link on the dialog is in 2.0 :)

You'll find it here: http://better.asksven.org/bbs-systemapp/ (for the gplay version only. Both are identical but have different package names so mixing won't work)
[BetterBatteryStats] Znorfi:
Thank you. I will probably wait to dabble with it until I get the 2.0 update though :)
[BetterBatteryStats] nmlssit:
Why is BBS disappearing from the phone at every restart?

Like i wrote some pages ago in this thread, the "install as system app" option in 2.0 doesn't work for me, so i opted for the flashable zip. Now at every reboot the 2.0 apk disappear from the app list and only remains the system app i flashed (version 1.1.0.0).

How is this happening?
[BetterBatteryStats] Karpfenhai:
I recommend to clear app data for Google play service, did you flash a version for lp?

If so, uninstall it's updated, and reboot, it will self upgrade in an instance, mostly these issues settle then.

Regards.
[BetterBatteryStats] amjath:
Anyone help what caused this over night drain.

http://pastebin.com/yxwdJp9e
[BetterBatteryStats] 93Akkord:
Yeah, I installed the latest beta gapps from lollipop from PA. I just tried to uninstall updates but I don't even see the button to do so. Does that mean I have the latest version? If so, would reflashing gapps have the same effect?
[BetterBatteryStats] spenson89:
Link for APK?

Sorry guys, I can't find the link to download the apk... im new at this whole thing but I paid for the version in the play store but 2.0 hasn't hit for my device yet...
[BetterBatteryStats] martinoff:
Have you read the first page?
[BetterBatteryStats] henry8668:
first page, second post
[BetterBatteryStats] chamonix:
Could you please provide a logcat after a boot causing deletion?
[BetterBatteryStats] nmlssit:
Actually I fixed using the Play Store version, that one doesn't get deleted, strange.
[BetterBatteryStats] Beat_Slayer:
0.6% per hour it's not bad for an overnight drain.
[BetterBatteryStats] Karpfenhai:
Go for delete data then, do it also for Google service framework and Playstore, reboot and see what happens, also get rid of Facebook, use mobile website instead.

Regards
[BetterBatteryStats] 93Akkord:
I ended up reflashing, that didn't work. Just tried what you suggested. That didn't work either. Still at a loss.
[BetterBatteryStats] rfilipoiu:
Bug report ?

The widgets do not refresh at screen unlock.

21:14 see the figures.

21:21 after lock/wait/unlock, same figures.

Touching 2*2 refreshes it.

8 seconds later, after the print screen, touching 2*1, refreshes this too.

1*1 does not refresh either, I hope you believe me or test yourself :)

XDA Free mobile app
[BetterBatteryStats] Karpfenhai:
Take another idle reading, post the full dump, weird.. but you didn't try to adjust/ deny services?

Regards
[BetterBatteryStats] 93Akkord:
I ended up doing a clean install. No GCM_LIB wakelock anymore. Gonna slowing install apps as I go to see if things change.
[BetterBatteryStats] Nomad1600:
BBS Widget causing Nova Launcher to stop - help!

Hope someone can help. Running Screw'd lollipop and Nova Launcher on my Nexus 7 2013. I just tried to set a "Better Battery Stats" widget on the screen (after having used Better Battery Stats app for a while). I immediately got an error message saying "Unfortunately, Nova Launcher has stopped". I can switch to Launcher3 without a problem, but I like Nova (Prime).

Is there something I can do? Should I uninstall Better Battery Stats (the app)? Should I uninstall Nova launcher and reinstall? Or should I reflash the ROM?

Update, I was able to uninstall then reinstall Nova.
[BetterBatteryStats] nielsbrakel1998:
I have a bug, it says that my screen on time is over the time my phone is on.. How can I help you to fix this?
[BetterBatteryStats] Karpfenhai:
...by providing a logcat ... also did you reboot ?

regards
[BetterBatteryStats] Rimher:
Ok guys, as you can see from the screenshots, the number of wakeups I get from gms is ridiculous. Or is it?? I'm curious at this point to understand if this is normal.

I have to admit that my battery is OK, but from what I've seen around it could be MUCH better, and this to me seems the most obvious culprit.

What can I do?? Is there something recommended beside disabling any core system setting such as Location Reporting?
[BetterBatteryStats] wilkster:
2 alarms/minute is pretty high for the NLP alarms. You can try turning off location reporting/history and Google now if you don't need it Also, make sure you have WiFi scanning always available disabled. You can also try to use the Amplify xposed module to curtail the alarm frequency of these two alarms. The free version will do that by default. Also, Whatsapp and Facebook have a fairly high alarm rate on you phone. There may be a setting to reduce these as well. If not, the paid version of Amplify will let you reduce those as well. Posting a full text dump from BBS after having your phone sleep for a number of hours will provide more insight for folks to help you with.
[BetterBatteryStats] Rimher:
Thanks a lot for your suggestions, but I'm trying to find the culprit, not disabling core OS functionality; I fear that apps such as greenify and amplify, which I'm sure have been built with all the best intentions, are more harmful than anything, and eventually happen to cause apps to misbehave.

I've now tried to remove Facebook, and will try and see what happens. But I use Google Now and have a Moto 360, so disabling location reporting is not one of the options atm.

Moreover I'm on Lollipop right now, so no XPosed modules for me...

I'll try to post a dump tomorrow, maybe after a night off the charger.
[BetterBatteryStats] chamonix:
new widget is next on my list for features for 2.1
[BetterBatteryStats] chamonix:
Well I guess this is the (far too high) price to pay for location services. You should ask yourself:

- do I need location tracking

- do I need high accuracy location

- do I need Google now

- do I need location in g+

if all answers are no, turn off all Google Apps location features, set location to coarse (cell), make sure wifi is not allowed to sniff for location tracking, turn off Google now and enjoy more battery.

Of course there are other ways to proceed at service level of not all answers are no, check for posts by Karpfenhai on that, it's not my specialty
[BetterBatteryStats] rfilipoiu:
OK, so it is a known issue, good to know!

Also a more complete help would be great. Maybe more and more folks will be able to solve their own issues instead of posting them here.

Have a great weekend !
[BetterBatteryStats] Rimher:
Alright, I was just curious if this was the case or if my particular number of alarms was out of the ordinary. But I guess that leaving all the location features enabled, this is normal..? Definitely not cool from on the google side of things...
[BetterBatteryStats] xsteven77x:
When you gonna go into your developer panel and up the play store roll out to 100%? Im still waiting for 2.0 from the play store! I have the apk installed from here but I want it to be linked to the play store. :)
[BetterBatteryStats] migadeath:
App opps crash

Hi, im geting Unforunately, Settings has stoped error when trying to show app opps clicking on app icon in BBS and than tap on app opps button. In BBS 1.15 it works well. Is it known problem? I'm on CM 11 M11 maguro. Thank you.
[BetterBatteryStats] t3chwizard:
For some reason all my launchers crash whenever I install the latest version of this app and add a widget to any launcher. It only started recently though.
[BetterBatteryStats] Karpfenhai:
Cm11 doesn't contain app ops anymore out of the box, you need xposed framework for that.

Afaik afaik... Regards
[BetterBatteryStats] The-Droidster:
Great app?

Hammered from my Hammerhead!
[BetterBatteryStats] migadeath:
That's not true.

It IS working in BBS 1.15 (rechecked few times) and all previous BBS versions, it stopped to work in BBS 1.16 and 2.0. Tested on CM10, 10.1, 11. Never installed xposed framework and clinking on app icon in BBS and than on app opps button let mi adjust app opps.

Regards Milan
[BetterBatteryStats] Karpfenhai:
Then we are obviously facing a bug, let see if [MENTION=1330150]chamonix[/MENTION] is aware, I was under the impression it's Rom related since it had stopped back in August..

Thx for clarifying, therefore I wrote afaik :)

[MENTION=1330150]chamonix[/MENTION] it seems the way you call is the issue, maybe you can change the way how bbs is starting app ops, have a look into the apps from ps, they can pull it easily, this one -> ovmobile appopslauncher does start the inbuilt iteration, others seems to install additional files, couldn't find a source yet.

regards
[BetterBatteryStats] devilsdouble:
Guys I am having serious wake locks causing by this service called AudioIn. I am guessing it has something to do with Google Search app and the settings I set for it. I have set it to English UK language and "OK Google" Detection is on for both from the app and from any screen. Are the settings causing this? What to do to make it go away?

I also have an Xposed module called GoogleOfflineVoice installed, however I am unsure if its related with my problem.

Please help.

Thanks in advance.
[BetterBatteryStats] migadeath:
:) We can still access apps opps from privacy guards advanced settings, but it is more comfortable to go direct eg. from alarm page in BBS to check what is causing those alarms. Hopefully can Chamonix find out what happens between 1.15 and 1.16.

Regards Milan
[BetterBatteryStats] MaLiXs:
Android need to keep the microphone on to detect the hot word... Totally normal behavior

Sent from my touchwiz lolipop SM-G900W8
[BetterBatteryStats] devilsdouble:
Okay, but it's causing a lot of wakelocks, thus more battery drain!
[BetterBatteryStats] chamonix:
#671

edit: weird though, I changed the code in 1.16 for more compatibility, not less. Will revert back for 2.1
[BetterBatteryStats] chamonix:
I assume you are on 1.16. In that case update to 2.0
[BetterBatteryStats] chamonix:
I can not control the speed of staged rollouts.... and have no intention of pushing it to 100000 devices at once
[BetterBatteryStats] t3chwizard:
I have the exact same issue in all my launchers. It is really weird.
[BetterBatteryStats] zeppelinmad4:
I thought I downloaded 2.0 but I guess I didn't. Thanks for the reply.
[BetterBatteryStats] migadeath:
Thank You!
[BetterBatteryStats] pw1nce:
guys how can i stop ''timedeventqueue'' wakelock please? thnx
[BetterBatteryStats] Dan33185:
Can anyone tell me what's causing the following wakelocks?

I've attached the entire log as well.
[BetterBatteryStats] Soufiansky:
Hi all , can someone explain to me please why i have no signal on 100 % ? I have a very good reception ...

I need help pleaaaase :(
[BetterBatteryStats] zhukoz:
I've just installed BBS on a rooted kitkat Nexus 4 running Xposed module, and I think there might have been some features missing from my install. I don't seem to have any references available (which I think is the whole point!)

when I click on 'Set Custom ref' it doesn't do anything...see below for screenshot

I'm presuming I should get some sort of menu like this

Any suggestions as to what might have happened, or what I did wrong?

cheers zhukoz

Edit: Think I might have sorted it...give it a full charge and other options seem to be accessible now, though the 'custom refs' still does nothing and I don't know how to access what that second screenshot relates to. Noobs, huh! lol
[BetterBatteryStats] stanley08:
Hey guys, the magnetic dock of my phone is damaged and 'StartingdockService' wakelock is trolling my phone badly. Lose 11% in about 7 hrs to this wakelock. Anyone has experience with this? Phone is Xperia Z2. Any ideas?
[BetterBatteryStats] haplehn:
I have the same problem.

Logcat error message is something like

F/libc ( 9863): Fatal signal 11 (SIGSEGV), code 2, fault addr 0xbe78dff0 in tid 9863 (enmod.trebuchet)
[BetterBatteryStats] Karpfenhai:
For both (or 3) of you, if you don't mind do the following:

Install 1.16 to ensure it's not crashing (no need for stats)

Then install 2.0 rc1

Verify the crash, if it's not happening, upgrade rc by rc until it crashes, get a logcat and post it here.

Thx for your collaboration!

Regards.
[BetterBatteryStats] haplehn:
Actually, I had 1.16 installed when I reported the problem. It persists with 2.0. For me it first occurred with one of the betas of [ROM][CM12][Lollipop][Android 5.0.2] NightOwl for the GT-N7000. Logcat error messages are

F/libc ( 2814): Fatal signal 11 (SIGSEGV), code 2, fault addr 0xbe3c9ff0 in tid 2814 (enmod.trebuchet)

E/SharedPreferencesImpl( 2280): Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml

E/InputDispatcher( 2280): channel '29f4a3c0 com.cyanogenmod.trebuchet/com.android.launcher3.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed!

E/AppWidgetServiceImpl( 2280): Widget host dead: HostId{user:0, app:10015, hostId:1024, pkg:com.cyanogenmod.trebuchet}

E/AppWidgetServiceImpl( 2280): android.os.DeadObjectException

E/AppWidgetServiceImpl( 2280): at android.os.BinderProxy.transactNative(Native Method)

E/AppWidgetServiceImpl( 2280): at android.os.BinderProxy.transact(Binder.java:496)

E/AppWidgetServiceImpl( 2280): at com.android.internal.appwidget.IAppWidgetHost$Stub$Proxy.updateAppWidget(IAppWidgetHost.java:123)

E/AppWidgetServiceImpl( 2280): at com.android.server.appwidget.AppWidgetServiceImpl.handleNotifyUpdateAppWidget(AppWidgetServiceImpl.java:1640)

E/AppWidgetServiceImpl( 2280): at com.android.server.appwidget.AppWidgetServiceImpl.access$1200(AppWidgetServiceImpl.java:107)

E/AppWidgetServiceImpl( 2280): at com.android.server.appwidget.AppWidgetServiceImpl$CallbackHandler.handleMessage(AppWidgetServiceImpl.java:2967)

E/AppWidgetServiceImpl( 2280): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AppWidgetServiceImpl( 2280): at android.os.Looper.loop(Looper.java:135)

E/AppWidgetServiceImpl( 2280): at com.android.server.SystemServer.run(SystemServer.java:297)

E/AppWidgetServiceImpl( 2280): at com.android.server.SystemServer.main(SystemServer.java:185)

E/AppWidgetServiceImpl( 2280): at java.lang.reflect.Method.invoke(Native Method)

E/AppWidgetServiceImpl( 2280): at java.lang.reflect.Method.invoke(Method.java:372)

E/AppWidgetServiceImpl( 2280): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)

E/AppWidgetServiceImpl( 2280): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)

E/AppsCustomizePagedView( 5233): Create Res Apk Failed

E/ ( 5233): Device driver API match

E/ ( 5233): Device driver API version: 23

E/ ( 5233): User space API version: 23

E/ ( 5233): mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 9 21:05:57 KST 2013

Problem might very well be caused by the CM12 beta. BBS ist the only application with a widget problem, though.
[BetterBatteryStats] silentkiller33:
Been looking for an app like this a long time. Awesome app.
[BetterBatteryStats] chamonix:
the only really weird part of the log is the error writing (at the beginning). The callstack itself does not contain any BBS code but it would be interesting to see (sorry at have no test device) if setting the perms to bbs' shared prefs would solve the problem: that would be a good hint in the direction of a root cause.

Anyone willing to try tampering with /data/data/com. asksven. betterbatterstats ?
[BetterBatteryStats] mafsi:
Hi,

Is any option in BBS to see if i had poor signal from tower?

Thanks in advanced!
[BetterBatteryStats] Karpfenhai:
Hmm, did you had a closer look?

Assuming Wi-Fi was off.. regards
[BetterBatteryStats] mafsi:
I dont have those options on JB. Here is my screenshot of what i have. Thanks
[BetterBatteryStats] oxfordia:
Have to say: I like the new look and added features. Thanks again.
[BetterBatteryStats] Karpfenhai:
Really? Hmm jb is long gone for me.. maybe I took an older screenshot..

What about raw stats? Remain empty too?

Edit: seems you're right, which device? Go for kitkat.... [emoji3]

Regards
[BetterBatteryStats] mafsi:
The same on raw stats.. Maybe the option is not available for JB although i use bbs 2.0..

Thanks
[BetterBatteryStats] Dan33185:
Anyone?
[BetterBatteryStats] JohnnyG_69:
File could not be read

I searched the thread and only found one partial reference to this with no solution.

I recently installed BetterBatteryStats 2.0.0.0 on my Verizon Samsung Galaxy Note 4. When attempting to look at the Kernel Wakelock, I get an error stating "File could not be read". I Force closed the app, cleared the cache, and cleared the app data. Then restarted, but still the same result.

Any help would be appreciated, as my "Android System" and "Android OS" are rapidly killing my battery and the phone appears to be Awake much of the time that the screen is off. Oddly enough, lately my Wi-Fi appears to be on solid all the the time, even though I have it off.

Thanks for your help.
[BetterBatteryStats] wilkster:
These are network location alarms/wakelocks that Google uses to monitor your location to enhance their ability to provide location aware ads and enhance their own services. You can disable location reporting/history to reduce them a bit (but not eliminate). More extreme measures require xposed module + Amplify or Wakelock Terminator. I would recommend you use Amplify using the default settings (for the free version). This should prevent these wakelocks/alarms from happening more often than every four minutes. You can adjust as needed as well. Wakelock terminator will help by preventing the wakelocks (which keep the phone awake) but not the alarms (which wake up the phone), it is a bit tricker to use.
[BetterBatteryStats] guido_glx:
I'm willing to try, I just need you to tell me what to do...

Enviado desde mi GT-I9300 mediante Tapatalk
[BetterBatteryStats] Beat_Slayer:
I've asked the same thing some time ago. :)

If you've already tried install as system app, SE Linux permissive mode and the option to read wakelocks through the API and none worked, then it means your kernel doesn't provide wakelocks info.

As for your drainage problem a dump attached as txt can help provide some insight.
[BetterBatteryStats] Karpfenhai:
^^ this.. plus check your Advanced Wi-Fi settings and disable scanning always active...

... you did reboot after bbs installation?

Regards.
[BetterBatteryStats] haplehn:
I'd be willing to, but would need some hints at what to do exactly. Have some basic knowledge about adb and should be able to edit a file or do some shell commands...
[BetterBatteryStats] Beat_Slayer:
Just open BBS press the share button on top, and select txt file, save it where you wish, and then attach in a post here.
[BetterBatteryStats] ThunderWolf78:
I have a strange problem, I have a rooted xperia z3 compact and got bbs installed as a system app, it works ok for a couple of hours but all of a sudden it's gone and left is a "placeholder" that says that I either can reinstall it through play or uninstall it completely, could someone enlighten me on what exactly is causing this and how to remedy it?
[BetterBatteryStats] Danilo Pantelić:
[MENTION=1330150]chamonix[/MENTION]

Does this looking good ?

BBS v2.0 @ 4h
[BetterBatteryStats] phantomblu:
Is there no way to disable msc_heartbeat just by itself? It's causing a crazy amount of wakeups.
[BetterBatteryStats] VirusPT:
Hi i just want to report an issue, i'm on CM11 with a Samsung Galaxy S III and in settings menu i almost cant see the advanced column options.

Thanks.
[BetterBatteryStats] Rimher:
Alright, I've been trying to keep location under control, and I'm disabling it when I don't need it.

The number of com.google.android.gms calls are still around 1.2/min, which at this points seems too damn high. How's it possible?

I'm currently on stock rom with ElementalX kernel.
[BetterBatteryStats] ManHands:
Will this work for crack flashers? Meaning, every time I update a ROM (nightly, weekly), after boot I have to open BBS and reinstall as a system app and reboot again. Would installing this script after flashing ROM, kernel, gapps, SU, etc in recovery prevent me from having to reinstall BBS as a system app after boot?

EDIT: Yes, it works.
[BetterBatteryStats] ts_mpls:
Interesting. Is there a recovery zip with 2.0 out there somewhere? All I saw at the start of this thread was an old 1.x version.
[BetterBatteryStats] JohnnyG_69:
Thanks for the quick reply and great suggestions!

I did reboot after installing BBS, but still get the error.

I tried the WakeLock API, but still got the error.

I couldn't install as System App, or switch to SELinux to Permissive Mode, because I'm not rooted.

I did turn-off the Wi-Fi setting "Always allow scanning", which has significantly recovered some battery life. I'm now consuming ~4%/hr on my Note 4, with light usage throughout the day. Not great, but better than what it was.

With not being rooted, and Wakelocks not being available, would a txt dump still be helpful?

Thanks guys!
[BetterBatteryStats] chamonix:
The system app for 2.0 is the same as for 1.x, it's just an empty shell requesting the needed perms.
[BetterBatteryStats] ts_mpls:
Ah, didn't know that. Thanks for the response! So what's the easiest sequence after wiping? In other words, after flashing the 1.x zip would you still need to install the 2.0 apk?
[BetterBatteryStats] bidav1:
50% in few hours of sleep loss

hello, please take a look at this dump file, i list 51% during sleep (nobody touched the device during this period)
[BetterBatteryStats] Karpfenhai:
Beside the fact it has been posted many times and it's written in the op, the helper apk/zip does just request and grant the permissions for the main apk, it's independent and not related to the version.

Regards
[BetterBatteryStats] elevatorguy:
Has the issue with the widget force closing launcher when on lp with a custom launcher been fixed? If not is it being looked into? (not asking for eta) just wondering. Haven't seen anything recent. Thanks
[BetterBatteryStats] anthonyg45157:
Thanks for 2.0 loving the matieral design and the dark theme! Awesome job!
[BetterBatteryStats] 1samek:
Thank you for your wonderful work!
[BetterBatteryStats] Soufiansky:
Can anyone tell me why i always have "No or unknow signal " at 100% :confused:

I have great reception and all the signal's bar , in settings > battery , i have a lot of green in the signal bar...

Can someone explain to me please ? Thank you :)