yashsingh1/xdaforums huggingface dataset:
[Android General] Celestial Fury:
Alarms: 14, Intent: com.google.android.gms.gcm.HEARTBEAT_ALARM

Alarms: 15, Intent: com.google.android.intent.action.GCM_RECONNECT

Alarms: 30, Intent: com.facebook.rti.mqtt.e.g.ACTION_INEXACT_ALARM.MqttLite.com.facebook.orca

Alarms: 3, Intent: android.appwidget.action.APPWIDGET_UPDATE

Push notifications, FB and widgets.

They're in Post #2 - Ctrl-F. They come under:

Alarms (Allow every 86400 seconds or 24 hours).

Wakelocks (Allow every 86400 seconds or 24 hours)
[Android General] momomok:
Oh I thought they are under a different category (given their blue color)
[Android General] wxfreak:
Expiration alarms?

How can I track down what is causing so many expiration alarms?
[Android General] Glpcha:
regex not working?

Hi, i'm having some ALARM_WAKEUPxxxx alarms that are not blocked by using regex function. For example I have ALARM_WAKEUP88455 and my function is ALARM_WAKEUP[0-9]{4,} and it doesn't work. Does anyone have a solution? Tnx
[Android General] Portgas D. Ace:
What do you mean by "does not work"? Could you post a screenshot of Amplify showing this alarm? Did you reset the alarm counter after setting up the regex function?
[Android General] Glpcha:
Yes, i have reset the alarm counter. I have a bunch of similar alarma popping up in bb stats. I've set the limit to 86400
[Android General] Portgas D. Ace:
Set the maximum regex limit to 9999999.
[Android General] Glpcha:
I'll try that. Tnx
[Android General] Glpcha:
Still having alarm_wakeups
[Android General] TNSMANI:
Please post a screenshot of the regex setup.
[Android General] wxfreak:
This may sound silly but I had a similar occurrence where none of my alarms were being blocked. I disabled then re-enabled the alarms manually (on-off-on) to start blocking alarms again.
[Android General] Glpcha:
As far as I know you can't disable regex, you can only delete it. I've tried that, didn't work.
[Android General] TNSMANI:
Delete the current entry and create a new one like this:

ALARM_WAKEUP[0-9]+

See whether it helps.
[Android General] arubamon:
Limited everything from this guide, and my device is staying awake slightly more than it was before. Logs attached. What exactly should I be looking at in the log, and why is my wlan_rx_wake still so high? Thanks
[Android General] Glpcha:
Thanks man! It works!
[Android General] TNSMANI:
Glad that I was able to help.
[Android General] NBAPwns:
Is it normal to have some of the things listed on the guide on the first post not on the phone when you search it? I can't find some of these but i did limit the ones said on the first post
[Android General] TNSMANI:
It is normal. It depends on the ROM you use. Sometimes some of the wakelocks and alarms (mentioned in the OP) will pop up much later.
[Android General] Celestial Fury:
Custom ROM? You've lots of kernel wakelocks and system processes that's keeping your phone awake for hours. Stock ROM doesn't have these drainers - that I've seen. Nothing to do with Amplify because it doesn't have the ability to affect those. You have to take it up in your ROM thread. As for WLAN, see if restarting your router helps.
[Android General] arubamon:
I am running a modified stock rom, http://xdaforums.com/z5-premium/development/ub-romaur-v1-0-xpz5p-170-fast-stable-t3259875, for my Xperia Z5 Premium (E6853). I tried using STAMINA mode, w/ only a few apps allowed to access wifi w/ the screen off, but my wlan_rx_wake kernel wakelock is still between 15-16% awake while screen off. The only way I can achieve low battery drain, ~1% awake while screen off, is to turn off wi-fi and cell data w/ DS Battery Saver.
[Android General] Celestial Fury:
Remove everything from apps active in standby and see if your wifi will sleep properly.
[Android General] arubamon:
Seems to make no difference w/o any apps excluded from STAMINA mode.
[Android General] Celestial Fury:
Did you Google wlan_rx_wake?
[Android General] arubamon:
I'll look into this some more, thanks. I flashed the only modified stock Android 6.0 rom now available for my device along w/ the stock kernel. Just flashed the custom kernel from the dev of this rom. I'll see if there are any differences in kernel wakelocks tomorrow. What should I be looking at in the attached log? Thanks again :)
[Android General] PePeMoke:
Hey.

About the ALARM_WAKEUP wakelocks..

Which ones are safe to restrict?

Did not get it from the description in post #2.

Screenshot attached. Tia
[Android General] cartman_73:
You just use regex for ALARM_WAKEUP.

See in OP

Sent from my x9006 (Find 7a)
[Android General] PePeMoke:
Thanks! Took a while to find the regex option ;)
[Android General] cartman_73:
Did you find it?

If not, looks at on wakelocks and alarms sheet it's on the upper right corner, the icon like a note[emoji4]

Sent from my x9006 (Find 7a)
[Android General] arubamon:
I'd probably spent a lot of time on this and not get anywhere. My home network has a good amount of devices connected to it. I imagine my DirecTV receivers are sending and receiving tons of traffic on my network, so unless I were to take them off my network, I'm pretty sure I'd be unable to limit my wlan_rx_wake kernel wakelock. I thought I read somewhere than being connected to cell data throws a lot more wakelocks than wifi, but because of this guide, I'm getting excellent battery life now using cell data. Thanks [MENTION=5401012]Celestial Fury[/MENTION]! :)
[Android General] Crisialfa:
Guys, can I freeze RILJ0 wakelock? It consume a lot of battery

Inviato dal mio SM-G920F utilizzando Tapatalk
[Android General] Portgas D. Ace:
About RILJ: check this wiki, especially the part about RILJ. It is not recommended to limit/freeze it as it is a mandatory part of the Android system.

By the way: you could perform a quick search for "RILJ" in this thread to find lots of information about it. Search before posting.
[Android General] Blade2014:
I have limited RIJL and till now it didn't have any adverse effect in day to day operations.
[Android General] Portgas D. Ace:
Most likely RILJ wakelocks will arise if you have turned on your GPS and set it to either Battery Saving or High Accuracy. RILJ is responsible for location determination through cell towers, as far as I have understood it. Limiting it might result in reduced location-based functionality like Google Now.

For me, RILJ is not an issue as I have set my location mode to GPS Only.

But as this is only a guide, you are free to limit/freeze everything you want at your own risk.
[Android General] Fernas:
Managed to get my Samsung Galaxy Note 5 to around 0.3-0.4%/h depending if on WIFI or LTE, which is great IMO, but.....for some reason it has been missing my morning alarm lately, this is not a constant issue since i started playing with amplify, but it´s been going on for the past few days when it was working fine before, i have searched the thread for it but the affecting alarm/wakelock related to the alarm clock and i dont have that one on my phone, any ideas?
[Android General] Celestial Fury:
Back on KitKat I used to limit this (for a while) as did others in the early days of Amplify with no issue. Now I'm on Lolipop and still on GPS high accuracy but it doesn't occur. Is your problem on idle? If it isn't then there's no problem.

Are you talking about Post #2 under DANGEROUS - DO NOT LIMIT / DENY - AlarmManager (alarm clock can stop working, etc.)? If you don't have this limited then see Post #3 How to find problems with limited alarms/wakelocks.
[Android General] Fernas:
Yes, that one, but i dont even have it listed on my phone, i will have to take a good look at post #3 then, i tried to replicate the issue but it seems a little random, thanks, i will post back if i find it.
[Android General] Crisialfa:
I will try to freeze this RILJ0. This night I'm going to do the battery test to see my battery performance because yesterday I upgraded my rom to android 6.0.1. I will write you soon. Thanks

Inviato dal mio SM-G920F utilizzando Tapatalk
[Android General] fridrik:
Can anyone help me with these wakelocks.? They are spending a lot of battery, it is normal?

Alarms :

Enviado de meu GT-I9505 usando Tapatalk
[Android General] Crisialfa:
[MENTION=5401012]Celestial Fury[/MENTION] I did the battery test. Is It ok? Can I improve the battery? Thanks
[Android General] Tr.nghia:
Hello,i did as this guide but my battery life isn't better.it is badder than before
[Android General] Celestial Fury:
If you spend a lot of time with your phone, yes.

Alarms: 13, Intent: com.google.android.intent.action.GCM_RECONNECT

Limit this and you could probably get 0% [0.0%/h] but it affects push notifications.

Attach a BBS text dumpfile (before and after) or it didn't happen.
[Android General] fridrik:
Not much, I put the stats.

Enviado de meu GT-I9505 usando Tapatalk
[Android General] Crisialfa:
I want to keep push notifications. I noticed a battery drain when the phone is connected to the WiFi. Should I do a battery test with WiFi on?

Inviato dal mio SM-G920F utilizzando Tapatalk
[Android General] pEksi91:
What can I limit without limiting WhatsApp messages?

Thanks.
[Android General] BartLuke94:
Hi all. I've a moto 360 connected Bluetooth with my 6P.

I'm having a lot of wakelock of the alarm "com.android.bluetooth.btservice.action.ALARM_WAKEUP" that keeps my device always awake.

Is there something that I can do for this?

Thank you

Inviato dal mio Nexus 6P utilizzando Tapatalk
[Android General] -=Verb=-:
Hello. I've followed the settings in post #2 and I get 1.4% drain on idle. I am quite happy with it. I am just wondering why it seems my battery drains so fast when I use it. It's like 1% of battery every 5 minutes or less. BBS reports it's a 33.3% drain (Screen off -to- screen on)

ROM: Phronesis 6.2 (5.1.1) Note5 port for Note 3 with idle Kernel

Google Accounts sync is on

No Facebook or WhatsApp nor WeChat Installed

Samsung Account is active but backup is off

Hangouts is not installed

I am getting baseline drains now and it won't be finished till 7 hours after. But I am really interested if there are known apps that run in the background and cause drain.

I have Greenify and Amplify with xposed,

I also run BootManager xposed and blocked most apps even system apps

SmartManager Battery Optimization is active

Amplify uses the settings prescribed in post #2

CPU spy reports higher frequency clocks are used less. 1190 is used most next to idle and 300mhz

Will post BBS logs later when I finish the tests.
[Android General] Locklear308:
Trying this now, after I flash xposed again. My OPO has a worn out battery and dies in 10 hours, so anything will help! Thanks
[Android General] carlitobahsoun:
hi i have mediaserver wacklock...how to fix plz???
[Android General] leAndroid91:
Dear all,

i have set up Amplify as suggested in thread 1.

Unfortunately i'm facing an issue with whatsapp notifications.

Sometimes (not always!) i'm not getting a notification when new whatsapp messages arrive.

It doesn't matter if the screen is on or off and how many messages i got.

Sometimes i miss just 1 sometimes i miss 100.

The groups/users texting me ar not on silent!

But as soon as i open the whatsapp app manually all the unread messages arrive.

Do you have any idea why this is happening and how to fix it?

Please find attached the amplify settings for whatsapp.

Thanks a lot for your help!
[Android General] Portgas D. Ace:
Searching for "android mediaserver wakelock" on your preferred search engine will result in lots of information and possible solutions for your issue.

---------- Post added at 10:39 ---------- Previous post was at 10:37 ----------

Unlimit the wake:com.whatsapp/.AlarmService (see screenshot #1 in your last post) and check if the issue still persists.
[Android General] Locklear308:
Does it matter that by searching I only seem to have half, if not less, of the reported processes/wakelocks to limit?
[Android General] Kappa Lamda:
Just to report for all those users and the OP for maybe something the want to try.

After reading a post of [MENTION=5058936]dukat0s[/MENTION], about the battery on my Nexus 6P, I've done as he was proposing.

I uninstalled FB app and FB messenger which have a huge impact on battery life with the great amount of alarms they produce.

I replaced them as proposed with Metal for FB(I bought pro) and Disa for fb messenger. I saw a major improvement on my battery. Disa also supports WhatsApp.

Maybe someone else would want to try them and see for himself the improvement.
[Android General] FuTChY:
Hi,

I have an issue with gmail. Email messages are delivered too late sometimes it goes up to hours. Yet, if I opened Gmail account and refreshed it all mails come at once.

I removed amplify completely and wiped its data, and then gmail started to behave normally again to notify me once I get an email.

Would you please suggest how to use your configuration in addition to having the instant emails arrival?
[Android General] Portgas D. Ace:
Don't limit anything with a red cloud symbol from the OP. Those wakelocks/alarms are known to delay push notifications like Gmail, Whatsapp and so on.

In addition, don't limit anything with the keyword "SYNC" + "google".
[Android General] FuTChY:
Ok, many thanks :)
[Android General] Brutal_Master:
Where are you seeing "apps active in standby" ?
[Android General] Brutal_Master:
What's with the [0-9] ? This would cause the regular expression to look for ALARM_WAKEUPS followed by a digit of which there aren't any??

---------- Post added at 06:06 PM ---------- Previous post was at 05:53 PM ----------

My 2 worst offending Alarms are :

1. com.android.systemui.doze.notification_pulse (ambient display?)

2. net.dinglisch.android.tasker.WILLYUM (TASKER app)

Any thoughts on unbouncing these?
[Android General] Oso Polar:
"[0-9]" - "symbols from 0 to 9"

"{4,}" - "previous part of the expression should be present at least 4 times"

So, being put together "ALARM_WAKEUP[0-9]{4,}" means "ALARM_WAKEUP followed by at least 4 symbols from 0 to 9". In other words, it'll match, say, ALARM_WAKEUP536925 (has 6 digits, matching because 6 >= 4) but will not match ALARM_WAKEUP536 (only 3 digits). And it'll not match ALARM_WAKEUP either (because zero digits is obviously still less than 4).
[Android General] Sartharon:
1. One is ambient display wouldn't recommend to amplify it (you can try with low values)

2. I dont know sry
[Android General] Brutal_Master:
But don't we ALSO want to regulate these? Or was this regex never meant to cover them?

- ALARM_WAKEUP_LOCATOR

- ALARM_WAKEUP_ACTIVITY_DETECTION

- ALARM_WAKEUP_ACTIVE_COLLECTOR

- ALARM_WAKEUP_BURST_COLLECTOR

- ALARM_WAKEUP_BURST_COLLECTION_TRIGGER

- ALARM_WAKEUP_PASSIVE_COLLECTOR

Also does anyone know what all these ALARM_WAKEUPs are with weird numbers at the end?
[Android General] Celestial Fury:
No, it doesn't. It's a list of what you can not what you must.

Using unofficial 3rd party apps means some 3rd party will potentially have access to your FB login details (ID & password). Good luck with that.

From the same screenshots you're looking at with those exact words in the screenshot.

Those don't have random numbers so they can be limited the normal way. Those with random numbers are Google's way (who stole the idea from WeChat) to make it difficult to limit their alarms.
[Android General] giantpandadl:
For anybody wondering the regex setting for Wechat and QQ:

Wakelocks:

WakerLock:\d+

Alarms:

com.tencent.(\w+):MSF_(\d+)

ALARM_ACTION\(\d+\)
[Android General] leAndroid91:
Hi guys,

i did another test during last night.

Please see attachments for BBS.

Do you have any suggestions for improvements?

I don't like my kernel wakelocks.

Is there a way to figure out what is causing those wakelocks and how to reduce them?

Thanks a lot for your help!
[Android General] WaterTrooper:
Does anyone have settings for Kik and amplify?
[Android General] Surj138:
This is the only thing I saw Kik-related in Amplify (in Services). Setting it to "Deny" resulted in Kik totally breaking.. New chat posts didn't come in at all.

Any assistance in limiting the battery drain from Kik would be much appreciated
[Android General] -=Verb=-:
Hello, I had just measured baselines and I find my phone drains 4-5% per hour while on airplane mode. There are some obscure processes that suddenly appeared while the phone is on airplane mode and screen is off. I think I have lower drain when not on airplane mode. Any advice that can help alleviate this problem?
[Android General] -=Verb=-:
How about Greenifying Kik messenger boost mode, where you allow gcm to wake services? Does it not control the drain?

Edit: sorry, it's better if the experts answer this properly. I sincerely wanted to help but I guess you're better at this than I am. I apologize. :)
[Android General] WaterTrooper:
Thanks for the help. I'm currently Greenify it right meow.
[Android General] Juzman:
I am assuming that this is meant to read: com.google.android.gms/checkin.CheckinService$Receiver ?
[Android General] Asiier:
Is just me or WhatsApp is just running crazy?

Since the last 2 updates seems like Amplify cannot longer block whatsapp alarms since I'm getting around 140 alarms wakeups from whatsapp, most of then from CLIENT_PINGER
[Android General] Celestial Fury:
Latest Greenify version? I've no problems with WhatsApp greenified. Did you reboot? Are these stats overnight while you were sleeping or while you were travelling?

For a test you could greenify both WhatsApp and Telegram and test it overnight when you're sleeping and presumably not needing to receive any messages. You can ungreenify them the next morning if still no push notifications. The idea is to take a dump to see how much lesser the drain is with them greenified so with them out of the way, we can focus on other areas of drain.

Also, post a battery usage history graph to see if there are any gaps in the cellular network which would indicate a weak signal.
[Android General] aukhan:
[MENTION=5401012]Celestial Fury[/MENTION] thanks for your responses this is really helping me out.

I am now able to see some drastic improvements.

The latest SS I share were me fully charged device and I went to sleep no reboots. Now I am assuming I see a drain of about 4% battery while i woke and saw the battery stats because I am assuming that is whatsapp and Telegram where both combined had about 600Messages.

Now this morning I flashed to Nadia Kernel moved from stock and so far it has been performing good, Now I am guessing I need not take it to the service center to replace the Mother board.

I shall Greenify the Wapp and Telegram tonight and charge fully and then tomorrow morning Ill share the BBS Dump and the SS.
[Android General] aukhan:
Hi [MENTION=5401012]Celestial Fury[/MENTION] here is my fresh dump of BBS and the required screenshot
[Android General] aukhan:
https://mega.co.nz/#!wIAwEKoI!ybKibA2CmUqTmgdW494Tq14LwJC7l8eNgHCoj5TiNa8 here is the dump

I tried to greenify the wapp and telegram and I dint receive the msgs and when I open them that is when I started getting the msgs and also later on they work fine as normal and suddenly stop receiving msgs.

Could you share the screenshot of your Greenify setting page ?? And which version of Greenify are you using ??
[Android General] aukhan:
https://mega.co.nz/#!IIJBSRRT!wnqhMMBuhf9kum5CGzq2hOP6PhYXW5PvXhRx-VgxIFo
[Android General] Portgas D. Ace:
You have to use Xposed and the donation version of Greenify to be able to receive push notifications from greenified apps. You have to activate Greenify in Xposed, reboot, open Greenify, select the menu "experimental features" and activate "keep notifications to avoid losing them" (1st entry) as well as "GCM push for greenified apps" (4th entry). I do not know the exact phrase as I am using the German version. I have also set my mode to "boost" instead of "root". Greenify version 2.5
[Android General] Celestial Fury:
The formatting of the text dumpfile is messed up when I opened it, that is there's no formatting and looks somewhat jumbled up.

FB and WhatsApp have network activity but their alarms are lower now. Telegram also has calmed down. [MENTION=5901790]orville87[/MENTION] is likely right about Greenify. Did you open your WhatsApp before taking the screenshots? I do see some WhatsApp alarms coupled with 8 mins of screen on time. This will affect the reading. Did you limit - com.google.android.gms/com.google.android.gms.checkin.EventLogService$Receiver yet? If so, limit it some more.

Partial wakelocks are ok. Once the alarms are ruled out, and if drain is still on the high side then it'll be the kernel or cell signal that's the probable cause. So need a screenshot of Battery Usage - History Details too. And if those are ruled out then it's the battery, not necessarily bad but maybe weaker. But to be sure, you'd have to establish some baselines for battery drain with airplane mode and with phone off (see Post #3).
[Android General] aukhan:
Thank [MENTION=5401012]Celestial Fury[/MENTION] for you response, Happy Holidays.

As if not I have limited the below Alarm to 7200, Can I limit it to 43200 ?

Battery Usage - History Details Do you Just the Screenshot of the Battery usage or do you need information about any specific app ?
[Android General] aukhan:
Here is my amplified numbers and greening settings.

Can I limit them to more high like 43200 to all or 8**** ??
[Android General] Celestial Fury:
Yes, you can limit it to 43200 or anything bearing in mind that anything should be limited to as little as possible to maximize functionality. For ease of remembrance I simplified my limitation to 3 periods: 7200 seconds or 2 hours, 43200 seconds or 12 hours, and 86400 seconds or 24 hours.

For Battery Usage - History Details, just need that, not of any app. Need to see if there are any gaps in cell signal. For Greenify, if you're on 4.4, tick Wakeup Timer Coalescing.

What's the drain like now?
[Android General] aukhan:
I've set all the alarms timer now to 84300.

I saw a huge improvements so I am regularly keeping tap of this thread I've switched to a new rom and today I flashed a different baseband/modem and I am testing it tomorrow morning I shall share the new batt stats [MENTION=965989]cest[/MENTION]ial Fury thanks a lot for the help.
[Android General] aukhan:
https://www.dropbox.com/s/2qq5rcdudpegc7m/BetterBatteryStats-2015-02-20_090658115.txt?dl=0

Here is the new dump and new SS.
[Android General] Celestial Fury:
Really looking better. :)

First up, Services (Deny - Ads / Privacy) - have you disabled all the

services

in Post #2? com.facebook.analytics.service.AnalyticsEventUploader.ACTION_ALARM is acting up. If the service is disabled its related alarm can't trigger.

Limit this alarm: com.facebook.common.executors.WakingExecutorService.ACTION_ALARM.com.facebook.katana. In idle period, it shouldn't be active. OR try clearing recent apps list before idle test. I suspect any app left in recent app can have an ongoing effect in its activity.

Have you tried greenifying Telegram? If it doesn't have any GCM push in Greenify then limit this partial wakelock: lock (org.telegram.messenger.Telegram). Check its push notifications. How are push notifications for the other things? I'm satisfied with WhatsApp's current low idle activity.

Kernel wakelocks seem normal. Your screenshot idle drain is [0.5%/h] but the text dump is higher as it was taken after being used for 10 mins but I don't see much difference between the two so it should be ok but bear in mind that the text dump should also be taken as soon as possible.

Battery Usage - History Details This is the screenshot I need. As you can see, it shows bad cell coverage (mobile network signal).
[Android General] aukhan:
[MENTION=5401012]Celestial Fury[/MENTION] Actually i had not disabled the services, Anyways I've done them now. I shall new Data to you tomorrow mornings IST and I shall ensure I will close all the recent apps and keep the device Idle.
[Android General] Chef_of_Sweden:
I must be plain stupid? How do you manage to find alarms or wakelock in the app without a search function? :eek:

Can't even find the first "com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR" in alarms.

Could this be because of me using a different version (6.5.99) of the Google Play Services app? :confused:
[Android General] peshta:
Just sort them by a-z [emoji6]