yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] FadeFx:
You dont do anything wrong, you jast have to install the main app again, and after each reboot again...

tapatalked from lollipopped i9300
[BetterBatteryStats] shaggyskunk:
What do you mean that you have to install BBS after each reboot??

I download the apk from xda - Copy it to System Priv-App and fix Permissions - Reboot - Grant SU and done.
[BetterBatteryStats] jbsmith_05:
That worked - thanks.

Now if I want to update to one of the v2.0 Beta versions....do I have to uninstall or just run the beta APK?
[BetterBatteryStats] mrQQ:
well one more time, is this possible?

---------- Post added 13th June 2015 at 12:00 AM ---------- Previous post was 12th June 2015 at 11:58 PM ----------

so once more, is this possible?
[BetterBatteryStats] sohebq:
I also have similar kind of kernal wakelocks. How to cut them down? any help???
[BetterBatteryStats] vick1377:
I'm getting these wake locks in battery stats. I'm using stock rom rooted with Jame bond kernel with default UV settings and few custom profiles. It is driving me insane. Using extended battery though. I think with stock kernel I was getting slightly better battery life in the sleep mode especially. I'm thinking to flash back the stock kernel from backup and monitor the results. Then flash akop rom and Franco nightly kernel as it is not compatible with stock 4.0.2 rom. Any help is highly appreciated. If you want I can share alogcat logs as well. I saw some weird stuff there.
[BetterBatteryStats] dcharleyultra:
File dumps (posted appropriately) are generally better than screen snapshots.

Swyped from my Evo 4G using Tapatalk
[BetterBatteryStats] CRXed:
Just look at your log and see the Alarms.....:o

Alarms
=========
neldar.bln.control.pro (): Wakeups: 634
dk.tacit.android.foldersync.full (): Wakeups: 230
ccc71.bmw (): Wakeups: 163
android (): Wakeups: 159
com.viber.voip (): Wakeups: 143
com.google.android.gsf (): Wakeups: 142
com.facebook.katana (): Wakeups: 69
com.probeez.profiles (): Wakeups: 69
wsj.reader (): Wakeups: 48
com.google.android.apps.maps (): Wakeups: 46
[BetterBatteryStats] sohebq:
a very high(3h 21m) "PowerManagerService" kernal wakelock is present. My phone is on charge for last 3 hrs, is it because of that?
[BetterBatteryStats] Capp5050:
Thanks. I moved to a static IP some time ago, but that hasn't seemed to help. Based on advice from another thread, I also tried changing the DTIM Interval from 1ms to 10 (theory apparently being that less frequent intervals reduces chatter).

I'm going to try adjusting the renewal interval as suggested above. I'm also going to test to see if there is a difference when my laptop is hibernating (perhaps its the PC at the root of this).

If I make any discoveries. I'll update here.
[BetterBatteryStats] sohebq:
"com.google.android.gsf"

Can you tell me about this alarm?
[BetterBatteryStats] naerok:
Google services framework. Can include talk, latitude, etc.
[BetterBatteryStats] shumo:
Can you please help me with these logs ? any suggestions on what i should check ?

config :

auto sync : 0ff

i am logged OUT of latitude, gtalk , skype, g+ or any other app

No app left running ( ex internet browser, market , etc )

Data remained on at all time

exchange mail configured but set on "manually sync"

wifi , bluetooth , gps are off

PS: how to i make the text more readable ?

thank you in advance
[BetterBatteryStats] jeremysherriff:
If wifi_rx_awake kernel wakelocks is what you have, the post immediately above yours may help.

Otherwise, you need to post some log output, "similar" is not an clear enough.
[BetterBatteryStats] Beowulf_pt:
how to debug alarmmanager wakelock

Recently my SGS2 started waking up quite often, turning on the screen, etc. I have a Momax 2700 mAh battery but even that is draining fast as the phone awakes very often... I then press power to turn off the screen and lights up again, repeat for 3 times or so before it remains off for another half hour.

I froze a couple of the latest apps I installed but could not find the culprit. The regular Android battery info is not helpful.

With BetterBatteryStats, if I look for Partial Wakelocks I can see a really high Usage/Count in AlarmManager but do not know very well how to drill down from there and diagnose the rogue app via AlarmManager.

I'd prefer to learn how to locate the source instead of uninstalling every recently installed app.

My phone is on a stock 2.3.4 KI4 ROM and rooted. It has been rooted and with a stock kernel for over 6 months with no issues, but now...
[BetterBatteryStats] elhennig:
Try Menu - More - Alarms to see which app is causing the alarms...
[BetterBatteryStats] Karpfenhai:
go for a 2.3.5 rom, ur current one is known for draining, use a balanced kernel and a battery saving modem (ki3) this should really help a lot in the first place.

anything else we can discuss later, almost all useful hints are given in this thread, just read a bit more.

power saving kernels are phenomenal and neak, good luck!

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] sohebq:
so how to read the numbers that appear ? like my alarms are showing

android=wakeups:314

com.google.gsf=wakeups 215

what is meant by these numbers?
[BetterBatteryStats] chamonix:
Obviously you suffering from the same wakeups caused by packets causing wakeups.

There are 3 options here:

- change you wifi screen of policy to off

- turn wifi off when not used

- use a sniffer tool to trace what is the cause and source of the Pakets causing wakeups
[BetterBatteryStats] sohebq:
sniffer tool?
[BetterBatteryStats] Karpfenhai:
this one per example :-)

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] jeremysherriff:
The PowerManagerService is one that you can click to go to a wiki page and read more info. See the little icon beside to the right side of the PowerManagerService row?

Please do that, then you can post back here with logs if your questions are not answered by the wiki page.
[BetterBatteryStats] torchedlh:
Can kernel wakelocks be lessened by changing (or updating) kernels? I'm having serious issues with wlan_rx_wake, svnet, wlan_wake, sec-battery-monitor, and PowerManagerService.

I installed Shark and Sharkreader but i cannot make sense of any of the data...
[BetterBatteryStats] jeremysherriff:
Short answer is Yes. It's certainly not a bad option to try.
[BetterBatteryStats] Firnagzen:
... I don't have Blackberry Messenger? In any case, attached is the one hour log with Skype frozen.

But it looks like your guess was right - it is Skype that's triggering those *alarms*. Strange that it isn't associated by name, though. I don't suppose it's possible to reduce that? I'm already limiting the alarms it raises with Amplify.

I think my biggest confusion is that GSam Battery Monitor claims, generally, that it's not Skype that consumes the most battery power, but rather Whatsapp. Can I trust that, or should I trust BBS?
[BetterBatteryStats] abalam:
Does this app run on android M??
[BetterBatteryStats] triathlete66:
#28774
[BetterBatteryStats] gaich:
Does anybody know what ACTION_CHECK_QUEUE can stand for?

View attachment BetterBatteryStats-2015-06-13_072042871.txt
[BetterBatteryStats] justjr:
Is there any script to survive CM nightly updates..? Thank you!
[BetterBatteryStats] ahpatel:
download the bbs systemapp 1.1.1.0 zip from the bottom of post 3 and flash it after each nightly you flash.
[BetterBatteryStats] XlAfbk:
I must admit I don't really like the new icon. While it's materialish I feel losing the icon shape in favor for a rectangle is a huge disadvantage. Especially in the notification area I can never identify the icon as it's just a blop there.

Not wanting to revert to the old icon I instead chose to try to create a material-style icon myself. Attached is a zip containing 2 versions of that icon in all the required sized. If you do like it please feel free to use it, Ill also happily provide the .psd for finetuning.
[BetterBatteryStats] shaggyskunk:
I don't have any issues with the Icon - but personal preference - I use BlackRom icons by Tha Phlash

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] Karpfenhai:
Install on L

Okay guys, finally my ancient SII has received Lolli today.. yay..

And it took me exactly 2 minutes to install BBS as System App with no fiddling at all..

since you are all rooted, just do this:

Navigate to /system/priv-app

mkdir BBS chmod it to 744

cd inside, drop latest BBS apk chmod to 644, chown root chgrp root.

reboot and done, no issues at all ;) Plus you can simply install updates..

Regards!

If anyone needs a recommendation, Carbon it is!
[BetterBatteryStats] PIRATA!:
Hi there!

I'm always been on BBS v1.16.0.0, but now as I have a new device I was thinking to use the new 2.0.0.0 version.

Would you say to install last stable v2.0.0.0 or last B4 one??

Tnx.
[BetterBatteryStats] shaggyskunk:
Personally - I'd definitely install the most recent beta - works great!

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] amjath:
Can anyone help me find the culprit.

https://drive.google.com/file/d/0B5X_w2X1foo5MjdpSl9XUjJ3MEU/edit?usp=docslist_api
[BetterBatteryStats] droidbits:
Hi [MENTION=1330150]chamonix[/MENTION] and to all others on the thread!

I have not blocked any app with the built-in Wakelock Blocker.

I know there are many requests for help on the thread but could

someone please

share some light on what is happening to my phone? I have seen a awake ratio increase from 3% to 7% and battery is also being consumed pretty fast <although it doesn't show on the pics as it was charged 3 hours ago>.

These screenshots and logs we taken after 3 hours of charging. By the way, I am using the Play Store app if that makes a difference.

Thank you all.
[BetterBatteryStats] Perseus:
Please Turn Off Google Location Reporting. Also your Greenify isn't Configured right or there's some issues there. It has way too high Alarms. You may want to post your Greenify Profile in that Forum to have someone review it.

Oh by the way, you are referring to built in Wakelock blocker. That's Greenify not BBS. BBS does not have Wakelock Blocking.
[BetterBatteryStats] mdamaged:
That shows a drain of .3% per hour, that's excellent, there is nothing wrong here. Your device needs wakelocks and they can vary from time to time. Enjoy your device.
[BetterBatteryStats] sgloki77:
does this app has android M support? I can't seem to get it to work neither with the playstore version or the beta zips in the OP
[BetterBatteryStats] mdamaged:
No, you will have to wait until M is stable and the dev starts work on it, right now it's pointless since things can change.

From the dev:

http://xdaforums.com/showpost.php?p=61146117&postcount=28685
[BetterBatteryStats] nitinvaid:
How many services I can disable with no problems.
[BetterBatteryStats] mdamaged:
You're joking, right?

Read this: http://xdaforums.com/showthread.php?p=61279606#post61279606
[BetterBatteryStats] drezz2:
Good night.

I know that they are natural and normal wakelocks on android (as discussed in previous posts)

But, as I said a while, occasionally "android system" begins to spend his% battery and grows and grows, and only for restarting the device.

Well, last week I turned to go and I did not do anything he would not do before, nor installed nothing new, the only difference is that it was a very poor area coverage

Get the results if anyone can tell me that question (and serve for the future)

You can see that for a while is continuously wakelook.

What is ProximityWakeLock and PowerManagerService.WakeLocks? After restart these two values have practically disappeared

Thanks
[BetterBatteryStats] mdamaged:
One is for the proximity sensor, the other is a collection of partial wakelocks, both perfectly normal to see increment, in your case the proximity is a bit active, likely the system is keeping the sensor active to service a function from an app or the kernel, perhaps for notification peek, detecting if phone is in the pocket or not, etc.
[BetterBatteryStats] drezz2:
I use cyanogen in Oneplus one and function turning double tap the screen and also turn it off, other than "to prevent accidental ignition" but I've always been like that (and allways that happens). In this case the phone was on the table. (perhaps the system go crazy from time to time)
[BetterBatteryStats] mdamaged:
Yea, those functions will drain the battery. As an example, with xposed's gravitybox, just the d2tw can us can extra .3%/hr whether it's used or not, because it must keep the touchscreen sensor awake (as devices such as the N7 2013 lack a proximity sensor), so the OPO probably uses the proximity sensor instead. So yeah, that's a thing, it's functionality over battery savings.
[BetterBatteryStats] tsiftsism:
I have also disabled Google Play Services from waking up and keeping awake via Privacy Guard, and disabled SystemUpdate by using the app called DisableService (couldn't find this option/feature in Servicely).

The strange thing is that since i have disabled the SystemUpdate i'm getting a Google Play Services fc now and then.

Any thought on what may goes wrong in my case?
[BetterBatteryStats] closee91:
Hmmm if you can replicate it. A logcat would be nice. What setting is your location setting on? (High device only or battery save) what version of google play services do you have? What battery saving or service disable apps are you running

Sent from my LG D851 running Blisspop ROM 5.1
[BetterBatteryStats] drezz2:
Ok I understand the double tap and "prevent accidental screen on" can spend more battery (although this is theoretically designed to save it) but I do not understand, because sometimes this happens and sometimes not

perhaps some bad reading or interpretation of the system, triggers the wakelock
[BetterBatteryStats] tsiftsism:
Will do by the end of the day. Already had two or three fcs, so i hope it'll be shown in the logcat.

Those are the settings you have asked for:

- Location mode: High Accuracy

- Google Play Services current version: 7.5.71 (1955121-438). I know that the last version is the 7.5.73, always flash latest Gapps right after flashing CM12.1 Nighlty (~once per week)

- Battery Mode: Balanced

- Google Play Services: Waking Up and Keeping Awake disabled via Privacy Guard

- Google Play Services: SystemUpdate disabled via app called DisableService (free from Google Play)

Thanks again.
[BetterBatteryStats] netinetinet:
System update service must be enabled
[BetterBatteryStats] sachin.soman:
Unable to find the rootcause

I need help in Analysing my Logs. I had posted my logs in Battery forums and was asked to replace my batteries. I am looking for good battery life by minimising wakelocks and Alarms.

Thanks

Sachin
[BetterBatteryStats] manpildo:
If you are using location, you should enable play services wakes. I had the same problem, FCs stopped after I either disabled location or enabled wakes.
[BetterBatteryStats] closee91:
No. It causes a wakelock bug

Sent from my LG D851 running Blisspop ROM 5.1

---------- Post added at 08:07 AM ---------- Previous post was at 08:02 AM ----------

I use location services and have both keep awake and wake up disabled. Try this: wipe cache and dalvik, reflash gapps, uninstall updates for google play services (restore to factory version, older version, then follow this guide) to fixing wakelock bug

http://xdaforums.com/showthread.php?t=3078082

[MOD] [ROM & Google Play Services] [v7.3.29] SystemUpdateService Wakelock Fix

You're gonna download a folder you can flash via recovery you want the 7.3.29-430 version I believe. After you follow all that re-disable keep awake and wake up (if you're still getting FCs enable wake up but keep 'keep awake' disabled, then reboot to recovery wipe cache. Let me know if that works.

Sent from my LG D851 running Blisspop ROM 5.1
[BetterBatteryStats] mattie_49:
I am almost possible they survive through delta updates. Download cyan-delta from the playstore. Cm supports delta updates.
[BetterBatteryStats] sachin.soman:
I had posted this yesterday i dint get any response . Reposting this

Unable to find the root cause

I need help in Analysing my Logs. I had posted my logs in Battery forums and was asked to replace my batteries. I am looking for good battery life by minimising wakelocks and Alarms. Anyone seniors in this forum can you please help.

Thanks

Sachin
[BetterBatteryStats] Fallingwater:
Hi, quoting for notification - I posted the file you requested some time ago. My problem still persists.

Previous post as reminder:

http://xdaforums.com/showthread.php?p=61034325#post61034325
[BetterBatteryStats] lirong:
Hi. Recently I have been having significantly worse battery life, although Im not sure what if anything on my phone changed. Id love any help you guys can provide. I have posted the following if its helpful:

1. BBS dump file

2. Screen shots from Battery Monitor

3. Screen shots from Galaxy battery screen in settings.

I am running rooted but stock 4.2.2 on an S4.

A few things that seemed a little unusual to me: looking at Battery Monitor, Im not sure what all the activity is from Exchange Services and Google Services. I used Touchdown for Exchange to synch my email, calendar and contacts. I dont synch GMAIL and I dont use Google Now. During the period of these metrics the phone was mostly with screen off other than one brief phone call that came in, and the time I used it to take the screenshots posted.

Thank you so much for any help or advice you can provide!
[BetterBatteryStats] mdamaged:
Please don't quote the entire OP. And I agree, replace the battery.
[BetterBatteryStats] sachin.soman:
Apologies for quoting the OP, I don't want to replace the battery right now i just want to keep the phone for some time and buy a better. phone. In the meantime is their anything else i can tweak to get some extra juice out of my battery.

Your help is appreciated

Thanks

Sachin
[BetterBatteryStats] mdamaged:
Yes, turn the phone off when not in use. Otherwise, buy a new battery, they can be had for like 8 bucks.
[BetterBatteryStats] ZCochrane:
I use CM12.1 which places a little # symbol in the status bar when an app uses root access. I noticed that when opening BBS the icon appears (as expected), but doesn't go away when I leave the app unless I force close it or swipe it from recents. Is this behaviour normal?
[BetterBatteryStats] a103:
Yes it's normal. It was annoying for me as well so I stopped using the built in superb user and flashed supersu.
[BetterBatteryStats] ZCochrane:
I see, but, what causes it? Why doesn't BBS relinquish root access when it's not open?

I'm less bothered about the little icon and more concerned about an app using root access indefinitely like that.
[BetterBatteryStats] mdamaged:
It may have something to do with the helper app, which always has system perms. You should probably use a more robust su app like SuperSU anyway.
[BetterBatteryStats] ZCochrane:
I dunno, I'm happy with CM12 native SuperUser in general, I rather like having visual feedback for when root access is performed.

What I'm confused about is why swiping from recents would make any difference. I thought recents wasn't supposed to be a Task Manager, but just a jump list? I'm mostly curious about what kind of operation does BBS do in background that would make sense to be interrupted by swiping from recents. Collecting stats? Surely that should be independent of if BBS is in the recents list or not.
[BetterBatteryStats] mdamaged:
Dunno, wait and see if the dev replies, also SuperSU gives you a toast when root access is requested, but to each their own.
[BetterBatteryStats] ZCochrane:
Yup, looking forward to hearing from the dev, Thanks anyway :D
[BetterBatteryStats] sachin.soman:
Thanks.. mdamaged .
[BetterBatteryStats] JudgeDread11:
My guess would be that it has to do with the Android memory management. Apps keep running in there background until the memory is needed.

I had the icon showing up when I wasn't using any rooted apps. Android filled up the memory with 'often used' apps, to speed up launch.

Greenify helps for apps that you don't need to run in the background.
[BetterBatteryStats] Nightshadow931:
Is this normal?

It started happening since I migrated to LP.

Sent from my GT-I9100
[BetterBatteryStats] ZCochrane:
That makes sense. I forgot that Android keeps apps running even if they don't have any background service, as long as there's free RAM and it doesn't get swiped from recents. Interesting. I guess I can use it as a test to see when the OS reclaims the RAM used by BBS.

On to another thing...

Does Lollipop destroy all battery stats at reboot? Cos I noticed BBS has to fall back to using the "boot" starting point if I reboot the phone, rather than from "unplugged".
[BetterBatteryStats] saveferris:
Could someone please explain to me what ALARM_WAKEUP_ACTIVITY_DETECTION and ALARM_WAKEUP_LOCATOR is ?

I have 596 and 396 of these alarms........how do you rectify this?
[BetterBatteryStats] kornelius1982:
Is there any method to install latest version of BBS on android 5.1.1 CM12.1?
[BetterBatteryStats] mdamaged:
I find it funny that in your sig you suggest people google it, since all it took was me plugging CM12.1 into the search box up top to find your answer.

You should probably either follow the advice in or edit your sig. :p
[BetterBatteryStats] kornelius1982:
Thank you for the most helpful post out there...
[BetterBatteryStats] chamonix:
This is by design: creating a root shell for each root call is expensive and this happens a lot when BBS saves a reference. For that reason BBS creates a shell and keeps it open in the background, to avoid the overhead of creating it oven and over. I don't exactly how the "#' is implemented but if it is to signalize that a root shell is kept open that is the reason
[BetterBatteryStats] ZCochrane:
Ah yup, that makes sense.

What still puzzles me now is the way Lollipop treats battery stats. You're not responsible for the OS code obviously, but have you noticed if it's by design that Lollipop nukes battery stats at every boot, rather than at every 100% charged reached + unplug?

Cos as it is now, BBS seems unable to look back to anything before a reboot, always having to fallback on "Boot" as starting point.
[BetterBatteryStats] chamonix:
The fact that all stats are lost at boot is not specific to lollipop, this is the way it has always been as a reboot resets all userland and kernel counters
[BetterBatteryStats] ZCochrane:
Hang on, that's not the way it worked on any of the old OSs for me. When I rebooted the phone, I used to be able to open the native Battery app and see all the stats since the last time the phone had reached 100% and had been unplugged. Even the graph used to show a little one-pixel gap to show that at a certain point in time between 100% and now the phone was rebooted.

Unless you mean that's the way only BBS always behaved? It doesn't have access to data the OS does have access to?
[BetterBatteryStats] chamonix:
Ok, I misread you. I meant the bbs stats/counters. The android battery info indeed used to show data prior to reboot as it was serializing digested data itself. As BBS works with detailed data the same procedure is not possible as comparing data from before a boot with data after a boot makes no sense (there is no way to save a reference just before a reboot happens)
[BetterBatteryStats] v7:
[MENTION=1330150]chamonix[/MENTION] Can you take a look at my thread ?

What do you think about it?

Please leave your valuable comment :)

Tapped from my furious dogo ;)
[BetterBatteryStats] Agent-Droid:
This just won't go away, and yes i tried flashing the provided zip + plus installing the apk again

:confused:
[BetterBatteryStats] v7:
[MENTION=4354332]Agent-Droid[/MENTION] Install as System app,reboot and Install the apk again of top of it.

If that doesn't work,Install the app and manually move the apk to system/priv-app/ and fix the permissions.

Tapped from my furious dogo ;)
[BetterBatteryStats] Agent-Droid:
Will do and report, thanks.
[BetterBatteryStats] madboymatt:
On latest B4, I get very few stats in kernel and partial wakelocks sections.

I'm on cloudy 3.1 lollipop. I've installed it as a system app. Am I missing something?

Edit: never mind. I installed the xposed module for battery stats, told bbs to ignore sys app...seems to be working.