yashsingh1/xdaforums huggingface dataset:
[Android General] snnrkn:
Actually i had facebook analytic service disabled but i kept getting a lot of com.facebook.analytics.service.AnalyticsEventUploader.ACTION_ALARM.

At the end i had to unbounce it too. Seems like they're not related.
[Android General] Celestial Fury:
After disabling services, the phone needs to be restarted. Services aren't restricted on-the-fly.

com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR comes limited by default. If you've never seen it, is your GPS turned on? Not sure if it shows if location services are off though. Are other alarms seen?

Since you mentioned it, looks like I have it too but it doesn't really drain. This is for privacy. In fact, I have 4 analytics alarms altogether. I'm testing limiting them at 24h. This is under JellyBean though.
[Android General] aukhan:
Celestial Fury, All my wakelocks and Alarms I've limited them to 24hours will there be any issues ?
[Android General] Celestial Fury:
I can only speak for the ones I limited in the guide. Limiting is preferable for the alarms/wakelocks/services you don't really rely on and that want to be more active than you'd like them to be. If you limit some of your syncing to 24h, then they'll only sync once a day. So the issues are mostly syncing and push notifications. If you mean issues of force closures or reboot or other stuff going wild, I haven't found any except those already listed.
[Android General] franky_z:
+1
[Android General] NickosD:
Anyone know how to block these wakelocks?
[Android General] TNSMANI:
No. They are two different things.
[Android General] Juzman:
Thanks for clarifying that mate. :)
[Android General] TNSMANI:
They seem related to your wifi. Try restarting your router or assign static IP and check.
[Android General] Callliope:
What should i do with this mqtt lite? Its related to Facebook messenger

And last problem is this batterystats..
[Android General] Crisialfa:
[MENTION=5401012]Celestial Fury[/MENTION] I want to keep push notifications. I noticed a battery drain when the phone is connected to WiFi. Should I do a battery test with WiFi on?

Inviato dal mio SM-G920F utilizzando Tapatalk
[Android General] eloy777:
None of these alarms and wakelocks appear in Amplify in my Xiaomi Mi4i with CM 12.1, how can i achieve this 0% idle battery drain? I'm sorry for making this question but this is something far too complicated for my knowledge about android
[Android General] TNSMANI:
Atleast some of them should appear. You have the donate version?

How long did you wait before checking? Ideally, you should wait for 4 or 5 hours before opening Amplify and checking.
[Android General] Celestial Fury:
Amplify can't limit what you didn't limit. So, try limiting client pinger then check functionality. Otherwise, show an idle log and state the WhatsApp alarm that you limited (and for how long) that you claim isn't being limited.

I hope that you're talking about an idle problem and it's not that you just happened to receive a lot of messages.

See Post #3 on why you shouldn't use Amplify to decide on what to limit.

Of course. The idea is to limit drain but not at the expense of functionality.

Post a log then we can see.
[Android General] dakore:
Quick question, since I couldn't find anything similar here:

Is there any advantage of limiting wakelocks/alarms which occurs in daily usage when phone is awake etc.? For example, I've limited my idle wakelocks, thanks to OP... During the day and by using phone Amplify registers A LOT of other different wakelocks... Should I limit any or they doesn't affect battery usage in such way as idle wakelocks?
[Android General] Blade2014:
It is not necessary to limit the wakelocks which appears when you are using the phone. Those may break the functionality of the particular apps. For idle drain to be minimum all that is needed are to limit the wakelocks and alarms for those particular apps, which show up when the phone is in sleep.
[Android General] junioramboy:
Does anyone know this alarm TOGGLE_PNO? This wakes my phone up over a hundred times. Is it possible to limit this?

Shamusent
[Android General] Brutal_Master:
Anyone know anything about DELAYED_KEYGUARD ? Looks to be a standard android one but i haven't seen anyone mention it yet?
[Android General] MHSalman:
Is there an updated guide for MM? Only a few of these wakelocks and alarms appear on my N5. I'm running Amplify, Greenify, Power Nap and Disable Service - but haven't disabled any services yet. Great guide, by the way.
[Android General] myself379:
Hi guys,

I'm using Note 3 SM-N9005 with custom rom Aryamod + ShinTo kernel. I found 2 things in wakelock and currently blocking them

MediaPlayerServuce (package name: 1013); set allow every 3600

SmartManager Framework Thread (package name: Android System); set allow every 43200

so far no problems. Any advises or warnings against these settings are much appreciated
[Android General] aryayush:
Having followed this guide to the letter, and then having scaled back by a bit to restore push notifications and such, I have reached a state where my phone is usually 20% awake while the screen is turned off, consumes much less battery than it did in the stock configuration and, most importantly, does not noticeably affect any of the apps and features I depend on. 0.0% idle battery drain was never my aim and I am very happy with my current setup.

There’s just one problem though: I have limited ‘NlpCollectorWakeLock’ and ‘NlpWakeLock’ to 7200 seconds each because if I don’t restrict them, they keep triggering and my phone ends up with 95% – 100% awake times. But with them disabled, Google Now does not give me location reminders, which I depend on. Is there any way to have the latter work without killing my phone’s battery?
[Android General] myself379:
Hi guys,

I notice I have lots of *sync*/ in the wakelock, too much that I attempt to make my own regexp to put them all at 43200. Yes I understand this is background sync. Use at own risk.

It detects group with beginning with *sync* and follows by match A-Z, a-z, dot (.) and backslash (/) with greedy +

(\*sync\*[A-Za-z.\/]+)
[Android General] Celestial Fury:
Wakelocks/alarms that occur in idle will also likely occur in active usage. Limiting is duration dependent and is independent of active or idle usage. Example:

- com.facebook.push.mqtt.keepalive.KeepaliveManager. ACTION_INEXACT_ALARM.com.facebook.katana

- com.facebook.common.executors.WakingExecutorService.ACTION.ALARM.com.facebook.katana.Mqtt_Wakeup

- com.facebook.common.executors.WakingExecutorService.ACTION.ALARM.com.facebook.katana

These occur in idle (usually when FB is still in recent apps) as well as active but limiting them has no affect on active FB usage.

If you mean Wakelocks/alarms that ONLY occur during active usage, you would want to be careful with those as they are likely needed for the apps functionality. As to why you would want to limit something that occurs in daily usage, maybe bad programming or bloat causes the Wakelocks/alarms to be more active than needed (example, FB) or perhaps there is no setting to regulate sync for the app. There is hardly any risk of system instability in limiting non-system apps so you can experiment safely for those.

Don't see over 100 times. Your screenshot shows 9 times in under 6 hours. Found something here. Just need someone who reads code.

It's related to System UI. I doubt it drains in idle. If you limit it and can't unlock your screen or something, let us know.

Don't think there'll be MM for my phone but if there is, sure.

MediaPlayerService seems safe. I suppose that the only thing that could happen is that your Media Player stops working. SmartManager Framework... only other framework I know is the Xposed framework - would you want to limit something like this? Rule of thumb, if they don't drain in idle, don't mess with them.

What location reminders - parking location reminders? If you've identified those two as needed for your location reminders, then maybe reduce the duration of the limitation.

Interesting if it work.
[Android General] dakore:
Thanks for reply and your help. Meanwhile I did some research and got same answer as yours :) I limited few wakelock more than I should and got location positioning issues. Can't really remember which ones... So I reverted one wakelock at the time and now I have fully working setup. Now I believe limiting wakelocks during active usage has small to none impact on battery life - you have more chance to gain potential app/system issues.
[Android General] -juanito-:
How i can reduce them?
[Android General] belloni:
Can anyone help with *sync*/gmail-ls/com.google/eM_ADDR partial wake lock main culprit all the time for me.
[Android General] Crisialfa:
[MENTION=5401012]Celestial Fury[/MENTION] I did the battery test with WiFi on. Is it fine?
[Android General] -juanito-:
Here is another photo. Any help would be great.
[Android General] pijes:
Not sure it's safe to limit anything on kernel level. As for me, I normally check partial wakelocks and alarms sections for things that I could limit.
[Android General] Celestial Fury:
Post #1 Kernel Wakelock

Post #3 Last line in red

system (Sistema Android): Uid: 1000 Sys: 14 m 52 s Us: 9 m 1 s - Active system

10078 (Wifi) (com.whatsapp.WhatsApp): 11.0 MBytes 96,5% - Active messages (meaning it's not idle)

Otherwise [0,4%/h] is fine.
[Android General] Crisialfa:
Thank you. I can't understand what I have to limit. Can you tell me, please?

Inviato dal mio SM-G920F utilizzando Tapatalk
[Android General] -juanito-:
I did that but it doesn't help.
[Android General] myself379:
Oh! I thought SmartManager Framework belongs to Smart Manager by Samsung! Didn't know, but I have wake counts collected by Amplify?! Please enlighten :)
[Android General] zigbye82:
Good day, could someone help me fix this?

Battery drain has reduced a lot since I started using this guide but Android System *alarm is very high.

Could this be fixed?

Also here is BBS log and AlarmDump.
[Android General] relax24:
Hi, is anyone able to help me out with the following please and let me know what I should add to amplify.

Keeps saying upload failed, so here's a link instead to it http://textuploader.com/5y966

Much appreciated.
[Android General] GudduAmbi052829:
getting max 4 hr SOT

plz help
[Android General] Brutal_Master:
Yep DEFINITELY do not mess with DELAYED_KEYGUARD as it keeps your phone from locking.
[Android General] -juanito-:
Can i limit them?
[Android General] leAndroid91:
Hi guys,

i did the tutorial in post 2 for basic optimization.

My battery only drain is 0% and in airplane mode it's 1% for about 7 hours (over night).

With phone on and wifi off (that's how i'm using my phone when not at home/work etc. so i choosed this setup) i got 4% drain in 7h.

Is there anything else which can be optimized?

Please keep in mind that i don't want to loose push notifications etc.

BBS Stats and screenshots attached.

Thanks in advance!
[Android General] Celestial Fury:
You can't limit system processes. You can only try a different ROM. Stock ROM works fine for me.

You also had 11.0 MBytes of WhatsApp messages so your phone was active and thefore drained.

Did what? I posted the link to Post #1 and if you searched for kernel wakelocks you would have found that it says that Amplify cannot limit kernel wakelocks.

That's not what I said. What I said is that (any) framework if you are using it is probably important enough and shouldn't be limited even if the option exists to limit it.
[Android General] BatDroid:
Eats 11.4% per hour(idle)

Everything is okay on Gsam monitor, amplify and bbs.

But the mobile radio is eating 77+% battery on idle.
[Android General] Celestial Fury:
*alarm* (Android System): 6 h 20 m 17 s

It seems some ROMs combine different alarms. How did you get AlarmDump.txt? I've never seen it nor had to use it before. I don't know how to read it but I can see typical draining alarms in it that's in the guide like:

tag=*alarm*:ALARM_WAKEUP_LOCATOR

*alarm*:com.google.android.gms.gcm.HEARTBEAT_ALARM (not in the guide and will affect push notifications)

tag=*alarm*:com.google.android.gms/.checkin.EventLogService$Receiver

tag=*alarm*:ALARM_WAKEUP_IN_OUT_DOOR_COLLECTOR (Can you limit this? It appears in BBS but not in Amplify for me)

tag=*alarm*:com.google.android.gms.gcm.ACTION_CHECK_QUEUE

tag=*alarm*:ALARM_WAKEUP_BURST_COLLECTION_TRIGGER

tag=*alarm*:com.google.android.gms.analytics.ANALYTICS_DISPATCH

tag=*alarm*:ALARM_WAKEUP_ACTIVE_COLLECTOR
[Android General] Celestial Fury:
com.facebook.orca (): Wakeups: 38 (5.4 / h) (push notifications)

com.facebook.katana (): Wakeups: 35 (5.0 / h)

com.google.android.gms (): Wakeups: 35 (5.0 / h) (need to see the details for this but push notifications probably in here)

10131 (Mobile) (com.facebook.katana.Facebook): 1.0 MBytes 41.6% (since FB was active, phone will drain some)

BBS textdumpfile or it didn't happen.
[Android General] zigbye82:
Thanks. I was searching about *alarm wakelock and came across this thread

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

Yes, ALARM_WAKEUP_IN_OUT_DOOR_COLLECTOR shows up for me in amplify. Could I limit this for 86400 also?

I can't read logs but noticed the some alarms that show high usage in the alarmdump.txt do not show up in amplify.
[Android General] leAndroid91:
First of all thanks for your quick reply!

So bottom line i can't block anything from facebook.orca without losing push notification?

From facebook.katana i can block

com.facebook.rti.mqtt.keelaliveManager.ACTION_INEXACT_ALARM.MqttLite.com.facebook.katana

com.facebook.rti.mqtt.common.executors.WakingExecutorService.ACTION_INEXACT_ALARM.MqttLite.com.facebook.katana

without losing push notifications?

I also blocked LockboxAlarmReceiver.

After researching this is just used to lock/wipe the phone when it got stolen/lost/etc.

Is that correct? Or will i lose anything else?

Thanks again!
[Android General] myself379:
I notice every time Facebook Messenger updates, it adds some Alarms like WeChat did. WeChat uses ALARM_WAKEUP[Input numbers]

Now there's Alarms for Facebook Messenger :

com.facebook.common.executors.dy.ACTION_ALARM.com.facebook.orca.Mqtt_Wakeup

com.facebook.common.executors.dy.ACTION_ALARM.com.facebook.orca

com.facebook.common.executors.dz.ACTION_ALARM.com.facebook.orca.Mqtt_Wakeup

com.facebook.common.executors.dz.ACTION_ALARM.com.facebook.orca

I didn't found dy before, and it appears after the latest updates. To be honest, I wish to received push notification, but I don't want it to check so frequently. So I only block for 10800 or 14400 (3 or 4 hours)

note : I didn't install Facebook Apps, use Chrome to access instead.
[Android General] Portgas D. Ace:
If you are okay with not using FB Messenger at all, you can try to use FB Lite, which also has the push notification feature for new messages but doesn't drain the same amount as FB Messenger does.
[Android General] Juzman:
When I used to have a FB account this app was awesome, and also black style too.
[Android General] myself379:
Where can I get Facebook Lite black style? I've tried looking it in settings but no such thing was found. Please enlighten
[Android General] Juzman:
I'm talking about this app, not the official Facebook Lite.

https://github.com/indywidualny/FaceSlim
[Android General] myself379:
Ah, I see. Sorry my bad. I thought you're talking about FB Lite quoted by Portgas D. Ace

Thanks for sharing though.
[Android General] stevexce:
Hi, I need help to understand what should I do?
[Android General] Uechy:
How can I reduce this wakelock?

Enviado desde mi LG-D802 mediante Tapatalk
[Android General] pijes:
Limit the step_idle_state alarm then
[Android General] TNSMANI:
DO NOT LIMIT IT. It controls the Doze function. Change the Doze settings using Doze Settings Editor, so that they are compatible for your use. For example, if Doze is set to kick in within seconds of screen off and you keep switching on the phone every minute, it will lead to such high numbers as in your screenshot.

---------- Post added at 05:46 PM ---------- Previous post was at 05:35 PM ----------

You seem to have phone signal issues. How is the signal where the phone was kept while taking the dump file?

Apart from that the following alarms/wakelocks are high. Use Amplify to limit these and the others.

ConnectivityService (Система Android): 2 m 5 s Count:28 0,8%

RILJ (Телефон): 1 m 28 s Count:48 0,5%

FastDormancyWakeupServer (Система Android): 54 s Count:44 0,3%

Alarms: 21, Intent: android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED

Read the OP on the limits to set for these in Amplify and limit those listed there.

Fast dormancy is also an issue, read about it in the first page and if possible, take the steps recommended there.
[Android General] renolz:
Hi, could anyone help me with a small but annoying issue i'm encountering after following this guide? :)

My lockscreen clock no longer updates unless i restart the phone. Anyone know which wakelock/alarm is stopping it from updating?

Please see screenshots attached to better understand what i mean. Phone clock is at 08:48 while lockscreen clock is stuck at 08:17..

Any help is greatly appreciated :)

- Renolz
[Android General] Portgas D. Ace:
It might be either

AlarmManager (wakelock)

or

android.intent.action.TIME_TICK (alarm)

Check if you have limited any of those two.
[Android General] renolz:
It was indeed android.intent.action.TIME_TICK (alarm) :)

Big thanks going your way!

- Renolz
[Android General] lastfugi1979:
any idea what is "10041" and why is it causing so much drain when idle?
[Android General] phoberus:
Are there any disadvantage with this? per example no notification for an App or the alarm clock doesn't ring
[Android General] Portgas D. Ace:
Yes, it is possible that you might encounter delayed push notifications, but Celestial Fury has indicated those critical wakelocks/alarms by either a red cloud symbol or a warning text. So read everything carefully and you should be okay.
[Android General] soza971:
Hi Guys after limiting some wakelocks i still got one important wakelock anyone know if i can Block it or limit it ?
[Android General] TNSMANI:
I have limited it to 3600 seconds and do not face any issues with my setup.

Try it, you can always reverse it if there is any issue.
[Android General] 'Akira:
Hi.

I know it is already said in Amplify's OP as quoted above. But I don't use Google services and I would like to know if something changed and is another way to donate and, consequently, enable the pro features of the app besides the Google one...

Thanks in advance
[Android General] MorphiousGX:
I don't think there is. Plus, The app will verify upon each launch if it is a legit pro version of the software or not by Google services
[Android General] optimummind:
I have a question for the battery pros in this thread.

My Sprint GS7E on its latest 6.0.1 pd3 update is experiencing severe battery drain issues with the screen or off. Location Method is set to GPS Only.

Although I'm not using any apps that call for GPS, my GPS is constantly activated (verified with GSam monitor & Wakelock Detector). The culprit service causing massive wakelocks is GpsLocationProvider_ex within Android Systems.

The only way I can stop the wakelocks & battery drain is to set Location Method to WiFi+Mobile or just turn off Location entirely.

I only began having this issue after taking the first update, PC5. And the problem has continued with the pd3 update.

I factory reset multiple times & no changes. I unfortunately cannot downgrade to original firmware.

Any insights as to what keeps triggering GpsLocationProvider_ex?
[Android General] 'Akira:
Thanks for the response.

That's a shame. This seems to be an awesome app to manage wakelocks and alarms, but it's become kind of useless (at least to me) without the pro features...

In the moment, I'm not willing to make the tradeoff of start to use the google services just to enable this features, in order to use the app to limit things like this same services ;)
[Android General] urnamese3:
Double post mistake
[Android General] shaunfodonnell:
Sorry I'm new to the thread. So if I follow the directions, all functions will still work correctly? Alarm, notification, etc?
[Android General] Portgas D. Ace:
Yes, but read all the given information carefully, as some of the alarms/wakelocks will affect push notifications if limited. Those are marked with a red cloud symbol.
[Android General] shaunfodonnell:
Thanks I'll try and let you know
[Android General] gothy.gothy:
Any idea, please, if hangouts_rsus wakelock could be limited?

Thanks
[Android General] glennsamuel32:
Hello everyone...

Can the pros give me a regex entry to block these alarms...

com.microsoft.azure.engagement.service.p@xxxxx

com.microsoft.azure.engagement.service.p@xxxxxx

com.microsoft.azure.engagement.service.p@xxxxxxx

com.microsoft.azure.engagement.service.p@xxxxxxxx

Thanks :)
[Android General] demoncamber:
@Celestial Fury I cannot thank you enough for providing such an amazing detailed guide. I've just done every suggested tweak. Lets see how this goes!

also, just wanted to let you know that a few places in your 2nd post, the text cannot be seen due to white font color. I missed this warning because it was white :D

Example: * affects push notifications (alerts from mail, social apps, etc.) Things may get delayed if the phone has been idle for a while. Turning on the screen, connecting to a new WiFi or any event that wakes up the phone can trigger push notifications.
[Android General] demoncamber:
in terms of limiting com.google.android.gms, what part of it exactly do we limit.
[Android General] pvnsai73:
I have done everything like in the guide but stilling getting some alarm attached below

Anyhelp will be highly thankful
[Android General] Soxy:
Thanks for the guide! :)

Some of the things listed I don't see them, should I manually add them?
[Android General] TroyBrown:
If you don't find those items, your ROM doesn't have those alarms and wakelocks.

I strongly presume you can't add them manually anyway. :)
[Android General] daman261:
What about Custom Regex? Might be a little time consuming, but some of the items to be limited 24 hours or more (86400 seconds or more) might be beneficial.

I recently did this on a friend's phone, same phone, ROM, both clean/fresh flashed with similar apps, and the testing (phone off, airplane mode, and idle for 7 hours) yielded similar results. However I did notice that some alarms I had, his phone did not, and likewise his phone had alarms present that mine did not.

What you should take away from this outline of how to increase battery life is being aware of the items and periodically checking on Amplify to see if any of the missing alarms appear and checking here how to limit them.
[Android General] -Zeppelin-:
Hi there, just a quick question about a few wakelocks / alarms that never have been a problem but run wild on my newest rom:

- pendingintentcallbackservice (service)

- xtwifilp (wakelock)

These two are unknown to me but cause quite the damage... Anyone here knowing something about them?
[Android General] Celestial Fury:
VERSION.RELEASE: 5.1.1

Doze Interactive Time (): 34 s

You have doze on Lolipop?

These are in the guide - read warning on push notifications.

Alarms: 21, Intent: android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED

Alarms: 6, Intent: android.content.syncmanager.SYNC_ALARM

Alarms: 6, Intent: com.android.providers.calendar.intent.CalendarProvider2

If your data is not on, this should not be active.

Alarms: 14, Intent: com.sonyericsson.android.wakeup.FastDormancyWakeupServer

The android.intent.action.TIME_TICK that you limited is NOT in the guide so you did not follow the guide. It's also in Amplify itself under

Not safe to limit

but you must have read it when you decided to limit it.