yashsingh1/xdaforums huggingface dataset:
[Android General] _ppaliwal:
Thanks for this great article. Was able to get 4 hours of screen on time which was previously hitting a max of 2 hours. :good:

However, upon recording the stats for last night, I saw that the system was waking up frequently and recorded > 1 hr awake.

The top items in my list were as follows

Wakelocks

*alarm*

ContextManagerWakeLock

*launch*

CastDeviceController - This should be for the chromecast device that I use

Alarms

android.intent.action.TIME_TICK

Services

com.google.android.gms/.cast.service.CastOperationService

com.google.android.gms/.icing.service.LightweightIndexService$LightweightWorkerService

com.google.android.gms./com.google.android.location.internal.PendingIntentCallbackService

com.google.android.gms/.cast.service.CastDeviceScannerIntentService - (again chromecast I suppose)

Here is the BBS stats: https://drive.google.com/open?id=0B0kGeNtRatrxeUlOZkdhRXk5THM

Can you please help me how do I bring this further down.
[Android General] Andiii:
I updated to Android 6.0 and have configured amplify again refering the OP. Seems limiting ICING is working for me I did not have any errors. My battery life is really good here is my logfile http://cloud.tapatalk.com/s/5781e6bc4a72e/BetterBatteryStats-2016-07-10_075510449.txt

The only red Alarm in amplify is this

Can I do anything to get less Alarms for this one?
[Android General] donky kong 017:
Finally i found the time to do another dump. This one seems even better. Maybe you can have a look.

Thanks

http://cloud.tapatalk.com/s/5781f326057b5/BetterBatteryStats-2016-07-10_085825366.txt
[Android General] Sed11:
guys i got a question regarding greenify . when i greenify messenger app and receive a message i can hear that sound which you hear when you talk with someone and receive a message with the conversation tab opened . and i hear that with my screen turned off . any way to get proper notifications and not that sound ? im using donation package . thanks in advance .
[Android General] HydrogenCyanide:
My battery is draining more than usually when is on idle drain like .9% per hour. And when screen is on AndroidOS start like crazy to drain. Here is my idle bbs log and amplify screenshots.
[Android General] MustangLife03:
Its no longer being updated. Its still useful according to others in the thread. Its not dead dead like its a 2 year old app is. It was last updated in April and seeing recent replies to the thread the app is still doing great things
[Android General] snoprosledneck88:
So where do you download it. Seems like some people are using greenify rather than power nap.
[Android General] Snowby123:
It was put into the Xposed Repo not long ago
[Android General] Ad.Shk2:
Well, another log after a long time. Could V7 or Portgas Ace take a look and suggest remedies?

https://drive.google.com/file/d/0B-YehMCBHI-nRTJ4cUxlMWZEV0E/view?usp=drivesdk
[Android General] jassi150:
Hello I couldn't find op alarm wakeup/wakeup permission in google play services and yes I've checked that option in hacks :)
[Android General] Portgas D. Ace:
BetterBatteryStats version: 2.1.0.0 -> update BBS to latest version (2.2.0.0B6, can be found in the BBS thread here on XDA)

Level lost [%]: Bat.: 0%(48% to 48%) [0,0%/h] -> nothing to be done here anymore :good:

TIME_TICK isn't recommended to be limited as it is responsible for proper functionality of anything related to time (your clock for example)

Bluetooth is the main drainer according to your log. But overall, 0.3% per hour with Bluetooth enabled (and maybe a wearable device connected) isn't bad at all.

Alarms: 7, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_381249 -> use Amplify's regex function to limit those kind of alarms (use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999)

Rest looks good.

Screen On (): 2 m 39 s 0.7% -> try to reduce this time to less than a minute. Save the BBS log file right after you turn on your screen.

In addition, several kernel wakelocks. Check this thread for a possible solution.

Alarms: 5, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_156277 -> see recommendation above for donkey kong

Alarms: 21, Intent: android.appwidget.action.APPWIDGET_UPDATE -> you could limit this one to 3600 so that widgets will update once per hour if you are okay with this

Alarms: 8, Intent: com.android.providers.calendar.intent.CalendarProvider2 -> you could limit this one to 86400 and use Events Notifier for Calendar instead

Screen On (): 4 m 5 s 0.6% -> same for you: try to reduce this time to less than a minute. Save the BBS log file right after you turn on your screen.

AudioMix (1013): 1 h 24 m 48 s Count:0 12.5%

GeofencePendingIntentWakeLock (com.google.android.googlequicksearchbox.Google App): 1 h 24 m 48 s Count:10 12.5%

ContextManagerWakeLock (com.google.android.googlequicksearchbox.Google App): 1 h 24 m 48 s Count:19 12.5%

Icing (com.chrome.beta.Chrome Beta): 1 h 24 m 48 s Count:0 12.5%

ContextManagerWakeLock (com.google.android.apps.maps.Maps): 1 h 24 m 48 s Count:0 12.5%

Icing (com.google.android.apps.messaging.Messenger): 1 h 24 m 48 s Count:0 12.5%

Icing (com.google.android.gm.Gmail): 1 h 24 m 48 s Count:10 12.5%

Icing (Google Play services): 1 h 18 m 7 s Count:45 11.5% -> a lot of wakelocks with high numbers. Any media scanning or music playing during idle time? You could try to limit the Icing wakelock as it has been reported to not break stuff anymore with newer Play Service versions. If any issues arise, unlimit it again.

Several kernel wakelocks. Did you tweak Experimental kernel beyond its default settings?

Alarms: 1, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH -> limit it to 9999999
[Android General] _ppaliwal:
[MENTION=5901790]Portgas D. Ace[/MENTION]

Can you please take a look at my logs?

http://xdaforums.com/showpost.php?p=67678915&postcount=10027
[Android General] Portgas D. Ace:
BetterBatteryStats version: 2.1.0.0 -> update BBS to latest version (2.2.0.0B6, can be found in the BBS thread here on XDA)

Screen On (): 21 m 50 s 3.4% -> that's not an idle log file. Refer to post #6 about how to produce a proper idle log file.

The alarms you have listed are required for a proper functionality of your device.
[Android General] Andiii:
how should i update BBS - just install the latest version over the existing one or uninstall the older version before?

About the 0,0% this is mostly because of the huge battery that is build in my phone (Oukitel K10000 with 10.000 mAh battery) so a drop of -1% means a lot :D
[Android General] Portgas D. Ace:
Installing the new one should work, if you have installed the old one from Google Play Store. In this case, both apps should have the same signature and it can be installed. If this does not work, you have two possibilities:

1. Install an app or Xposed module that allows signature spoofing

2. Uninstall BBS, reboot and install the new version

Option 2 is the easier solution, whereas option 1 aims for people that tend to install apps and updates from various sources (apkmirror.com for example).
[Android General] Freddycom:
Hello

Would you be so kind as to look at my SO's battery log?

Thanks in advance!
[Android General] Portgas D. Ace:
Alarms: 57, Intent: com.android.email.intent.action.RESTART_ALL_IDLE_CONNECTIONS -> your Email app is draining some battery; if you don't rely on instant push notifications, you can limit it to 1800 or 3600

Alarms: 56, Intent: com.cyanogenmod.lockclock.action.CANCEL_LOCATION_UPDATE -> limit it to 3600

Alarms: 31, Intent: android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED -> this one is in the guide, limit it to 10800

Several kernel wakelocks, check this thread for a possible solution. Alternatively, you could flash a custom kernel, if available.
[Android General] donky kong 017:
Thank you for looking over it. Yes I have a gear s2 connected and BT on. Maybe i will disable it over night when I don't need it. But i thought so. Looked like a good drain.

I added that alarm to the amplify regex.

Thanks for your help i apriciate it.
[Android General] Portgas D. Ace:
As said, if you use a wearable device and you need this Bluetooth connection all the time, then there is nothing we can do here. But 0.3% per hour is good :good:
[Android General] Rakuu:
I have a pebble, use Tasker to turn off Bluetooth when on home wifi since I'm likely not using it there :p
[Android General] Ad.Shk2:
Ill fix the Analytics alarm.

Well I have made changes to the kernel (ElementalX 1.18) - governor settings etc. Also blocked WLAN wakelocks from within the EX Kernel App. What do you recommend in this case?
[Android General] Portgas D. Ace:
I would recommend to revert all changes that you have made to the kernel (use the default values) and un-block all WiFi wakelocks. Then post another idle log file so we can see the effect of those measures.
[Android General] Ad.Shk2:
Ok, lets do that. Will get back to you tomorrow with a log.
[Android General] graymatic:
Anybody have experience limiting *launch* or *alarm*

---------- Post added at 09:07 AM ---------- Previous post was at 09:07 AM ----------

?
[Android General] lepa71:
Sorry to bump this.
[Android General] Portgas D. Ace:
From my experience they don't drain battery, so no need to limit them.
[Android General] graymatic:
Thanks!
[Android General] sgsleeping:
Hi anything can be done for this even though is 0% drainage? cause now im experience drain 2% everytime my screen is off.
[Android General] sgsleeping:
Lost 1%.. anyone can advice?
[Android General] _ppaliwal:
I feel you should enjoy the phone ;), you have already seen pretty amazing results.
[Android General] Portgas D. Ace:
0.1% per hour drain with this:

Screen On (): 9 m 24 s 1.8%

That's great :good:

Alarms: 1, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_2239065 -> please ensure that the alarm regex is set up correctly within Amplify

10026 (Wifi) (com.android.vending.Google Play Store): 28.0 MBytes 59.6%

10164 (Wifi) (com.instagram.android.Instagram): 12.0 MBytes 26.4%

10164 (Mobile) (com.instagram.android.Instagram): 6.0 MBytes 13.8% -> some downloads/uploads, just keep that in mind if any further issues arise

But beside those, everything looks awesome. Enjoy :)
[Android General] skivnit:
http://cloud.tapatalk.com/s/5784bad4311ab/BetterBatteryStats-2016-07-12_083015794.txt

Can you look at mine. I know i have kernel wakelocks and an app that downloaded something in the morning
[Android General] thiagofbrito:
Please guys take a look at mine BBS report and let me know if it could be any better. Thanks!
[Android General] Portgas D. Ace:
Several kernel wakelocks, check this thread for a possible solution.

Rest looks good :good:
[Android General] thiagofbrito:
I've already setup those tips, like setting static IP on my home network, also I use SManager to run the script for echo 1 on a network change. I'm not sure why it's still showing though sometimes it suddenly disappears. Thanks anyway buddy.
[Android General] Portgas D. Ace:
Maybe flash another custom kernel. But in the end, 0.3% per hour is good.
[Android General] thiagofbrito:
Yeah that's the point. I'm quite happy with it. ?
[Android General] xda26:
heres my bbs https://drive.google.com/open?id=0B5ZKC010xaBweFV6ODBQTnJYeEE
[Android General] hipziro:
http://cloud.tapatalk.com/s/57856901d96c2/BetterBatteryStats-2016-07-13_045758371.txt

Please help to take a look at my BbS. I set to air plan mode and let it idle. Much appreciated your kind support [emoji3]
[Android General] jlb1959.01:
I do not know of if anyone addressed the problem with greenify voices, however in the settings when you give green access to your phone there is a setting you can check if you hear voices.. I would have to dig thru my access settings but I had the same problem a while ago. Hope it helps...
[Android General] sgsleeping:
Hi, you mind explaining more on how to set the alarm regex ? Can i also see ur advice as the on screen drain is dam high. 5 % in 30 mins
[Android General] Portgas D. Ace:
Screen On (): 2 h 51 m 55 s 11.1% -> that's not an idle log file. Refer to post #6 about how to produce a proper idle log file.

BetterBatteryStats version: 2.1.0.0 -> update BBS to the latest version (2.2.0.0B6, can be found in the BBS thread here on XDA) and upload another idle log file as alarm stats are incomplete, which are pretty important for proper analysis

Screen On (): 3 m 21 s 0.9% -> try to minimize this time to less than one minute; save the BBS log file right after you turn on your device's screen

Icing (com.chrome.beta.Chrome Beta): 32 m 4 s Count:0 8.9% -> you could greenify Chrome so it doesn't run in the background when you don't need it

From what I see, Battery Monitor Widget is one of the main reasons for your drain. If you don't really need it, I would suggest that you uninstall it.

About the regex:

open Amplify and navigate to the "alarm" section. On top you'll see some kind of papersheet, click it. This will open the regex editor. Add a new regex and enter CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999.

About screen-on-drain: read post #2, there is a really good thread about battery gauge linked.
[Android General] mvlad:
http://pastebin.com/F6C6Z37W

Anything else I should do?
[Android General] Portgas D. Ace:
MediaScannerService (Media): 20 m 43 s Count:0 5.0% -> seems that your media scanner was active for around 20 minutes scanning for media

The rest looks good, nothing more to tweak here.
[Android General] max1411:
Anybody knows how to get rid of mmc detect wakelock?
[Android General] Nokiacrazi:
Hi guys. Was struggling with HTC 10 stock 1.80.401.1 on standby times and couldn't really diagnose the problems without root. I have since rooted, unlocked and flashed custom rom and kernal. Looks promising when I woke up this morning, but I didn't install xposed yet.

Here's first idle log from bbs.

I forgot to reinstall b6 and simple used bbs from play market. Will reinstall with beta and get another log.
[Android General] skivnit:
Same problem here
[Android General] MostaphaHida:
Can someone take a look on this plz.. i got high battery drain. Thanks

http://cloud.tapatalk.com/s/5786823824730/BetterBatteryStats-2016-07-13_195232664.txt
[Android General] mele80:
Samsung s4? Do you have original battery in it?
[Android General] MostaphaHida:
Yup.
[Android General] mele80:
That might be the main factor, well depending of course how old s4 it is. But I don't see any big drainers in the log.

Buy maybe someone else can take a look also
[Android General] MostaphaHida:
Okay thx mate.
[Android General] mvlad:
How do I fix that?

Sent from my OnePlus 2
[Android General] f0xy:
Guys have we nailed down the best/correct context_manager regex to use? Thanks
[Android General] Portgas D. Ace:
If this is an idle log file without Amplify, then you have a good chance to reach 0.0% per hour with this guide. You have several wakelocks from the known drainer Facebook and others, which can be tamed by using Greenify and Amplify :good:

Can't access the file. Could you upload the .txt file here on XDA as attachement?

There is an Xposed module called Xposed Media Scanner Optimizer, which might solve your issue. The current official version has issues with Android 5.0+, you can't use it and MTP at the same time. But there is an unofficial version here that fixes this issue.

Sure. Use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999.
[Android General] Andiii:
Do i have to put this under Alarm or Wakelock in amplify?
[Android General] Portgas D. Ace:
If you are talking about the CONTEXT_MANAGER_ALARM_WAKEUP, then put it under alarms.
[Android General] mele80:
So no more ALARM_WAKEUP[0-9]+ but this new instead?
[Android General] Portgas D. Ace:
That's right. CONTEXT_MANAGER_ALARM_WAKEUP has replaced ALARM_WAKEUP.
[Android General] criz.89:
Can anyone check my dump again. https://drive.google.com/file/d/0ByctvHpXbPYKWjhDcnp6cTAyQ0k/view?usp=drivesdk
[Android General] Portgas D. Ace:
Access denied. Upload the log (.txt) as attachement here on XDA.
[Android General] MostaphaHida:
here is txt file.Thanks in advance
[Android General] Portgas D. Ace:
Several kernel wakelocks. Check this thread for a possible solution.

The biggest drainers are FB, FB Messenger and Instagram. They are known to exessively drain battery. So you have four options:

1. Uninstall them and use alternative clients such as FB Lite or Metal for Facebook

2. Greenify them

3. Limit their alarms with Amplify, thus only receiving push notifications once per pre-defined time period

4. Combination of all three former options to set up everything according to your needs
[Android General] externus:
Hey there, someone knows where the ps wakelock comes from? It is a kernel wakelock, its draining my battery with screen off like hell :(
[Android General] max1411:
Hy guys which alarms to use in custom regex?

CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,}

CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{4,}

or

CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+
[Android General] MihaiSG:
This one:

CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+
[Android General] aidy.lucas:
They all work up to you which one
[Android General] Ad.Shk2:
[MENTION=5867207]v7[/MENTION] and [MENTION=5901790]Portgas D. Ace[/MENTION]

https://drive.google.com/file/d/0B-YehMCBHI-nWFB2NGxXMy1HSDA/view?usp=drivesdk

Ok, kernel tweaks removed as suggested. Kernel wakelocks unblocked. 1.2% drain per hour!
[Android General] mele80:
Google quick searchbox seems to be major drainer.
[Android General] Ad.Shk2:
What's the remedy?? And what else??
[Android General] mele80:
✭[GUIDE][07-02-2016]Extreme Battery Life Thread(Greenify+Amplify+Power Nap)✭

I guess if you want to you can delete Google search box.

Also chrome beta and gmail drains some.

Edit: or just simply greenify them
[Android General] junoarev:
My BBS Result

Here is my BBS result.

I'm using Nexus 5 on Stock ROM 6.0.1 MOB30M + ElementalX Kernel

Is it ok? Thank you
[Android General] Nokiacrazi:
New bbs idle log after pairing android wear and running rom for few days

No xposed, no greenify or other battery saving apps.

-edit-

Uploaded wrong bbs log. Need to go to PC to correct post.
[Android General] fhfuih:
Looks great. Gonna try it out on my "mini-battery" X Style haha!
[Android General] Ad.Shk2:
There is no search box on my home screen.

---------- Post added at 09:27 AM ---------- Previous post was at 09:25 AM ----------

Bump.
[Android General] xRoNoKx:
Here is my BBS log from Nexus 6P.

Latest Pure Nexus ROM + Franco Kernel r25 + Heimdall v5 profile.

I usually get around 0.5% idle drain per hour. Please let me know if there is anything I can do to improve it.
[Android General] Andrev01:
Guys one question about Amplify - should I set all wakelocks to the same interval (for instance 600 sec) or they can have different intervals (for ex. one for 240 sec, one for 360, one 600 etc...). I mean - do they all have to be set on ONE interval to work properly, or they can be differenced and it won't wake my device every moment?
[Android General] Portgas D. Ace:
GeofencePendingIntentWakeLock (com.google.android.googlequicksearchbox.Google App): 1 h 11 m Count:124 12.5% -> seems that Google App (Google Now?) is trying to access location. In case you don't use location-related content for Google App, you can remove the location permission from Google App (Settings -> Apps -> Google App -> Permission)

Icing (com.google.android.googlequicksearchbox.Google App): 1 h 10 m 56 s Count:124 12.5%

Icing (com.google.android.gm.Gmail): 1 h 10 m 56 s Count:13 12.5% -> it has been reported (and I can confirm it at least on my device) that you can limit the Icing wakelock again on newer Play Service versions, so limit it according to the OP

wlan_rx_wake (): 11 m 10 s Cnt:(c/wc/ec)5209/359/5209 2.0%

qpnp_fg_memaccess (): 10 m 24 s Cnt:(c/wc/ec)469/112/0 1.8%

qpnp_fg_update_temp (): 7 m 43 s Cnt:(c/wc/ec)349/85/0 1.4%

qpnp_fg_update_sram (): 2 m 40 s Cnt:(c/wc/ec)126/31/0 0.5%

sh2ap_wakelock (): 1 m 54 s Cnt:(c/wc/ec)929/525/0 0.3%

alarmtimer (): 1 m 26 s Cnt:(c/wc/ec)43/43/43 0.3%

wlan_ctrl_wake (): 1 m 3 s Cnt:(c/wc/ec)362/56/362 0.2% -> check this thread for a possible solution

BetterBatteryStats version: 2.1.0.0 -> update BBS to latest version (2.2.0.0B6, can be found in the BBS thread hhere on XDA) and post another idle log file as "alarm" stats are incomplete

Screen On (): 3 m 58 s 1.1% -> try to reduce this time to less than one minute, save the log file right after you turned on your screen

Alarms: 39, Intent: android.appwidget.action.APPWIDGET_UPDATE -> you could limit it to 1800 if you are okay with widgets updating every 30 minutes (or even limit it to 3600 for widget update once per hour)

Beside this, Viber, Reddit and Pocketcasts are draining some battery, but overall, 0.3% per hour is good :good:

They can be different. It would be against the purpose of Amplify if you could only select one interval.
[Android General] DB126:
Really?
[Android General] Ad.Shk2:
Nah, you're dreaming.
[Android General] MUSTANG651:
Thanks for the guide it helped me a lot but my sleeptime is still 86%. Did I miss something? What else can be done?
[Android General] Portgas D. Ace:
*sync*/com.google.android.gm.email.provider/com.google.android.gm.legacyimap/c1af1307deeef6df6821d36613c2de0e@yandex.ru (com.google.android.gm.Gmail): 1 m 20 s Count:10 0,2% -> Gmail synchronisisng during idle period

sec-battery-monitor (): 1 h 11 m 10 s Cnt:(c/wc/ec)1691/38/0 10,5% -> most likely related to a battery monitoring widget

wlan_rx_wake (): 28 m 22 s Cnt:(c/wc/ec)2243/182/2243 4,2% -> check this thread for a possible solution

Alarms: 15, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_108228 -> use Amplify's regex function (given in post #2)

Alarms: 22, Intent: com.samruston.twitter/.services.ActivityRefreshReceiver -> Twitter is quite active during idle time, you could limit this one to 3600 if you are okay with notifications from Twitter once per hour

Beside this, 0.4% per hour is quite good.
[Android General] MUSTANG651:
So it's safe to limit this?
[Android General] Portgas D. Ace:
In case you use a battery monitoring widget: I do not recommend any battery monitor widget as they drain battery, but if you are fine with the overall drain, then you can keep it or limit it with Amplify. But limiting a battery monitor widget defeats its purpose as such widgets need real time information. As said, it is up to you.
[Android General] MUSTANG651:
I haven't any battery widgets (and any other realtime widgets) and I think this wakelock is connected with other apps somehow cause it happend much more often before the guide (about 30-40% compared to 12% now). I don't know what apps exactly though.
[Android General] nimalen87:
What's wrong with my wakelocks? Please see attached photos. Android system consuming hell lot of battery. Please help to solve this.

I am using S7 edge + xposed + Greenify. Custom kernel as well
[Android General] Portgas D. Ace:
I would recommend to not limit it at all. Your idle drain is quite good, messing up with further stuff might result in negative side effects.

Check this thread for a possible answer to your question.

For further investigation, refer to post #6 and upload an idle log file.
[Android General] Ad.Shk2:
Im using CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+ regex but I still see it in BBS keeping my phone awake for 41 minutes. Alos I have limited Icing at 10800, but I still see it keeping my phone awake for 41 minutes. Its starting to get annoying :)
[Android General] Portgas D. Ace:
Try [0-9]{3,} instead of [0-9]+.

After limiting everything with Amplify, clear BBS's cache and reboot your device. This might be an issue.
[Android General] Ad.Shk2:
Already using that one too :) But ill try clearing the cache for BBS. But Im assuming BBS stats shouldnt have an effect on the actual battery loss, which I get about 0.7%-1% / hour.

Ill try limiting the location for google app too, not happily, but Ill see how that affects the battery life.

EDIT: Ive also noticed on the EX Kernel Manager Dashboard that my CPU frequenies dont stay stable while im not doing anything and just have a the screen on, they keep jumping up and down.....
[Android General] Portgas D. Ace:
Limiting the location related alarms from Google does save quite some battery, but doesn't have any negative side effects, at least from my experience.