yashsingh1/xdaforums huggingface dataset:
[Android General] Portgas D. Ace:
Did you disable network connection during night? Your dump file shows more than 7h without data connection. Please pull again an idle dump file, but leave WiFi on (connected to your home network) this time.

---------- Post added at 11:18 AM ---------- Previous post was at 11:17 AM ----------

A high number in Amplify does not mean that this one drains the most battery. Use Better Battery Stats to identify your biggest battery drainer and limit those corresponding wakelocks/alarms with Amplify.
[Android General] Vihru:
What are these? and can i manage those?

Wakelocks:

NfcService:mRoutingWakeLock (i dont have NFC on)

Wakeful StateMachine: GeofencerStateMachine

NetworkStats

SyncLoopWakeLock

UrlDispatchingService

StartingAlertService

WifiSuspend

DataTracker-FD

Alarms:

com.android.internal.telephony.ACTION_CHECK_NETSTAT

thanks
[Android General] milojoseph:
Can someone check this out plz
[Android General] jagman96:
My phone wouldn't let me connect to it but I finally sorted it out. This was after 10h35min of non use after a full charge with Amplify wiped and only the donate exposed version of Greenify running with basically and he radio buttons toggled on.
[Android General] Emmago:
The funny thing is that I don't have WiFi at home.. Disabled data connection on my sim cos I didn't want calls or disturbances.. Would use the WiFi in the office then
[Android General] Celestial Fury:
So you didn't copy+pasted the alarms/wakelocks from this thread in the same order with the same 'spelling' mistakes, change 43200 and 86400 (12h & 24h exactly) to 40000 and 84000 (just to differentiate), apply for contributor status then ask for donations? And even suggest others to use Calendar Events Notifier (so that CalendarProvider2 can be limited) which I had taken the trouble to find?
[Android General] Celestial Fury:
No posting for help in multiple threads (unless you didn't get a reply after a few days or want a different opinion).
[Android General] v7:
I didn't.If If I did so,where's the rest of the alarms and wakelocks you have in the OP.I told you that I've used your guide before.You also have referred the Amping Dev's spreadsheet to find most of the data and Me too.

About the Calender Notifier,I came to know about the app from you.That's a truth.Never say that this is a copy paste.:(

Tapped from my furious dogo ;)
[Android General] Celestial Fury:
Start with alarms not wakelocks. Alarms should trigger first, wakelocks will then keep the phone awake. If alarms don't trigger than wakelocks shouldn't occur (there are exceptions, mostly Google).

Other than that, your strategy is and should be the standard default. You can start with 1h, 2h, etc. From what I've tried, 1h doesn't cut it so 2h is the minimum. Then to keep things simple and easier to remember, I keep the rest at either 12h /24h or 999999.

When you limit something, test the app immediately in all ways and for several days to your satisfaction.
[Android General] Celestial Fury:
Awake for 1 hour but only [0.6%/h] lost? G2’s step design + GRAM chipset really works to save battery?

These *alarm* on Lolipop seem to be just the new fancy name as a generic term for individual wakelocks. Once again, and I said it before - Google can't get it's naming system right - but I think newer versions of BBS get it right and place the correct app in parenthesis.

I started listing down your alarms but then realized that most of it is already in the guide. So, you need to limit them according to Post #2 then we can work on the ones not in the guide after you post a new dump.
[Android General] Celestial Fury:
You might not have NFC on but that's how Android is designed. It can trigger (probably for checking or testing) whether it's on or not. What happens if you limit it and then someday you want to use it but it doesn't work and of course you've forgotten you've limited it. NFC normally doesn't drain when not in use so leave it alone.

NetworkStats (Amplify explains it)

SyncLoopWakeLock (Amplify explains it)

StartingAlertService (Amplify explains it)

Wakeful StateMachine: GeofencerStateMachine

DataTracker-FD (related to Fast Dormancy)

UrlDispatchingService (don't know)

WifiSuspend (to suspend WiFi?)

com.android.internal.telephony.ACTION_CHECK_NETSTAT (probably related to Fast Dormancy as well)
[Android General] Celestial Fury:
- android.content.syncmanager.SYNC_ALARM can be limited (some more)

- android.app.backup.intent.RUN can be limited (some more)

- com.oasisfeng.greenify.CLEAN_NOW (Amplify lists this under not safe but I'm putting this back into the guide as depending on usage it can trigger many times and drain so I'd prefer it not to do so often. I'm not sure if this is what Wakeup Timer Coalescing is supposed to do so but it doesn't seem to be working properly.)

- com.android.providers.calendar.intent.CalendarProvider2 (use alternative Calendar in Post #2. Once you limit this your stock calendar won't trigger properly any alarm you set.)
[Android General] milojoseph:
What do you recommend for each of the above

Sent from my SM-G900T powered by Phoenix rom and ktoonsez kernel

Lollipop ?
[Android General] Stupifier:
Hey hey guys...you both are doing a great service to the community. Both guides are wonderful. There are similarities but there are also subtle differences which set each apart.... And I'm not just talking about the Amplify timers either.

Instead of creating some tense conversation, it would be awesome if you guys could work together to release a combined guide with both of you as Co-Contributors. One great place :)
[Android General] jagman96:
The thing with the G2 is it will say at 100% for a long time (several hours) after removed from the power source but once it gets below 100 then the rate it drops while idle is about 1.5-2%/hr. That 0.6%/hr is very misleading.

I'll start with your recommendations in post #2 and remove the ones there that are a drain and then repost the results.
[Android General] Portgas D. Ace:
Leave data connection on. Without data connection (or WiFi), most alarms and wakelocks wouldn't appear as apps are not able to access the internet and thus start being active.
[Android General] closee91:
Is this guide updated and everything correct? I'm only asking because I read somewhere else that you can limit things but on this guide it says not to (like the gms.checkinservice stuff)

Thanks!

Sent from my LG D851 running Blisspop ROM

If I helped you out, hit thanks!!! :D
[Android General] jagman96:
So I limited all the applicable alarms and wakelocks from post #2. I didn't limit any services since it looks like they are listed as dangerous at the bottom of post #2. We'll see what happens the next few days. I still have a lot of alarms not limited. Many have to do with my calendar Sunrise.
[Android General] Kiranveer Singh:
What about greenify xposed module :)
[Android General] closee91:
What about it?

Sent from my LG D851 running Blisspop ROM

If I helped you out, hit thanks!!! :D
[Android General] Portgas D. Ace:
Quite easy: restrict it with Amplify and check if anything else is running wild afterwards ;)
[Android General] Kiranveer Singh:
Its also gud :)
[Android General] ar2o:
Thanks for your reply!

Just to clarify:

-Adjust alarms (especially alarms in google.com.gms or what ever it was called) before touching wakelocks as the alarms is what triggers wakelocks and therefor if limited, the wakelocks will not show up

-If any alarm/wakelock from the OP shows up, I can limit it to the recommended number (43200, 86400, etc) but if its a new alarm, begin with 2 hr intervals and increase until alarm/wakelock settles down

-After limiting alarms and wakelocks, check the app for full functionality

-limit a few alarms/wakelocks/services at a time to make sure yo can track any errors/force closes, etc. If any errors occur (google play has stopped working) reset the individual wakelock/alarm/service and/or reset device defaults in amplify and reboot to begin again?

What about services? I have a note 4 and the services are difference than the ones listed in the OP. Should I be disabling services as I go as well and monitor to see performance of what ever app the service belongs too?

Thanks for bearing with me :)
[Android General] Celestial Fury:
Doesn't mean you copied all of them. com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVITY_D ETECTION Surprising your 'typo' is exactly in the same place as mine. I started fresh. Everything limited is based on my phone. Everything was typed out by me - even the 'typos'. There's a reason for them, they weren't on purpose but looks like they served their purpose. So, yes - copy + paste.
[Android General] Celestial Fury:
What I recommend is in Post #2.
[Android General] Celestial Fury:
You mean one has exactly 2 hours, 12 hours and 24 hours limited and the other has 2 hours, 666.666 mins, and 23.333 hours? Did you see the number of the minutes? And talk about the devil did you see the number of his post?

This thread started out as a fun way to show what I could get out of Amplify and to store and share my settings. Taking something that's free and getting something out of it is what creates the tense feeling. If I feel that way it's probably because I'm doing it wrong.
[Android General] Celestial Fury:
Then you can see that it says that its related wakelock will run wild. You can try it and see for yourself. It's like asking for the time and then asking if the time is right.
[Android General] Celestial Fury:
What's important is that you only limit alarms or wakelocks that drain regularly in idle mode and not those that just pop up once in a while.

All services denied in the guide are only for Ads / Privacy. Once services are turned off they cannot turn on by themselves again and that could lead to trouble. It's better to limit their respective alarms/wakelocks than to shut off their services completely. I only put my foot down for ads and privacy.
[Android General] v7:
Where did THIS come from? :rolleyes:

Tapped from my furious dogo ;)
[Android General] Celestial Fury:
Never seen it. The reason why there are 'typos' in mine is because they aren't typos. They are typed correctly in the editor without any spacing but still appear with the spacing. You've also changed the order after some time but when it first came out the alarms/wakelocks were in the same order. I just didn't say anything then.
[Android General] nvo2411:
Great guide
[Android General] Stupifier:
I dunno....just seems kinda lame to bicker about the originality of content posted on a public internet forum......

I think majority of people here avidly read and respect both guides and authors.....isn't that enough?
[Android General] thekinginthenorth:
edit: how do i delete this comment lmao. yall need to make it easier
[Android General] HH6:
My first post on XDA :)

Any tips on how I can save some battery juice?

Much appreciated!
[Android General] ariesfung11:
My whatsapp message is always delay, is anyone got the same problem?
[Android General] Portgas D. Ace:
Same for me. Sometimes I have to turn on the screen or even open the app to receive pending messages.
[Android General] Celestial Fury:
First post and already using Cyanogen? This is too active in idle mode. Limit them and see how well they still work.

Another app that's too active in idle mode. Same solution. Ignore the ones with only 1, 2 or 3 alarms.

Something wrong with your WiFi connection. If it keeps cropping up with many alarms you may want to limit it.

As always, test everything to your satisfaction. Once you've limited those alarms you can post another dump.
[Android General] Celestial Fury:
If you're using Stamina Mode, turn it off. It works by temporarily disabling WiFi and mobile data. You can add apps to its white-list but all it will do is keep them active but WiFi and mobile data will still be disrupted because the disruption affects the data connection and not the apps, yes? And all apps whether white-listed or not use the same disrupted data connection.

Second is not to limit alarms that can affect push notifications as identified in the guide by .
[Android General] Portgas D. Ace:
I do not own a Sony device, thus no Stamina Mode for me. Instead I am running Power Nap, an Xposed module similar to Stamina Mode. But it does not disrupt data connection but does block services (prevent apps from being active) while screen is turned off. I have whitelisted Whatsapp within Power Nap, beside this I am running a GAPPS-free device. All other whitelisted apps receive notifications in a timely manner, only Whatsapp seems to receive delayed notifications.
[Android General] Celestial Fury:
[MENTION=5901790]orville87[/MENTION]

If you have not limited anything related to WhatsApp or push notifications or greenified it and if other apps are receiving notifications in a timely manner, then with everything else being equal, the only logical conclusion would be that the WhatsApp server itself is the one having the delay.
[Android General] Portgas D. Ace:
Yes, that's what I thought until one minute ago. I just checked Amplify and guess what? The alarm android.content.syncmanager.SYNC_ALARM was limited to 42300 :D I unlimited it and will report back.
[Android General] vctrrl:
So I established a baseline. No drain while powered off after 8 hours. About 0.9% while in airplane mode. Tried both stock rom with stock kernel and custom rom, custom kernel. Both Lollipop versions.
[Android General] Celestial Fury:
The drain in Airplane idle mode needs to be seen to first. Do you have dump?
[Android General] Looki75:
Issue with google apps

Hello,

After applying this guide, I get issues with Google Now and Maps.

This is not a location issue.

Actually it is very strange; Maps and Now cannot connect to the net.

Network is up and running, other apps can access the net, but Maps keeps running circles looking for the address I entered and Now says "Google Now is not available at this time...".

Sometimes they finally can use the network but in 90% cases I need to reboot the phone.

Just after reboot working fine but after a while, issues again...

Anyone can help me?

Thanks
[Android General] cosminnn:
I have two alarms as big offenders:

com.android.server.action.NETWORK_STATS_POLL

com.android.server.WifiManager.action.Delayed_Driver_Stop

Any insight?

Thanks
[Android General] Celestial Fury:
Stop limiting LocationManagerService wakelock. It no longer drains. I'm removing it from the guide. If the problem still occurs, disable Amplify in Xposed, reboot and see if it still occurs.
[Android General] Celestial Fury:
Are they draining during idle or not?

The first has something to do with collecting network statistics and providing it to other system services. The second is to avoid shutting down the driver too quickly.
[Android General] cosminnn:
This is next on my to-do list. Just made a Amplify stats reset and a restart.

I'm on Exodus rom (Cm12.1 based) and the related thread is reporting a wifi disconnecting issue on idle (with wifi always on) - it might be a workaround.

Thanks for the clearing up about the alarms.
[Android General] Looki75:
I run totally crazy with my issue...

No, sorry for the wrong heads-up, it's not your guide...

I disabled Amplify > still the same

disabled a bunch of stuff > still the same

disabled Xposed at all > still the same

Maybe it is the latest Maps update???
[Android General] Celestial Fury:
[MENTION=2468642]Looki75[/MENTION]

Firewall? XPrivacy? Did you mess with Google Play Services? Some other service? Receivers?
[Android General] Looki75:
Firewall: disabled - issue still there

AdAway: disabled - issue still there

XPrivacy - don't use.

Google Play Services... yep, let me see that... I have few services /broadcasts / activities / receivers disabled with "MyAndroidTools"...

Will test that, and let you know.

I any case, thanks for the hints! ;)
[Android General] Looki75:
I finally found the culprit...

It was switched off location for Google Play Services in AppsOps...

Silly me... Forgot about that and all day could find the issue... [emoji12]
[Android General] HH6:
New Drain test attached.

I have no idea why the WiFi is behaving like that.. This night i was even connected to another WiFi.

And it seems also my radio disconnect for about 30s once an hour or so... Very strange!
[Android General] justjr:
With topics recomendations my google maps does not locate my actual correct place... shouldn't I limit wakeup alarms?
[Android General] Celestial Fury:
In your 8 mins of screen on time, did you use FB Messenger or did a lot of messages come in during idle? Did you use Maps? Weather widgets (in your lockscreen?) are notorious for not keeping to any defined update interval. Your partial wakelocks are fine. As for your intermittent radio signals, do you have any app that regulates it? Shuts it off at intervals or when signal is low?
[Android General] Celestial Fury:
You mean it's not exactly where you are but somewhere near? I had this before. Nothing to do with the guide but changing something in your location setting or AppOps.
[Android General] HH6:
I didn't use messenger, maps or the weather app/widget. But their apps were open in the background.

Should I limit anything more?

No I don't have an app that would do that to my radio. At least nothing I've selected as an option. Anyhow, I'm now back in my home country, hopefully works better here with the radio.
[Android General] Celestial Fury:
[MENTION=6782998]HH6[/MENTION]

Clear them from recent apps then take another idle dump with a minute of screen on time. I would suspect your radio issue to be related to roaming or travelling or using a different SIM network.
[Android General] Xpid3r:
Hello..!!

thank for your Awesome thread i did all the things as you mentioned, but i lost 8% of battery during idle..

can you please take a look at this Dump

Using Galaxy S4
[Android General] liver20:
Thanks for all but i Remove xposed, greenify power snap and amplify and battery is the same or better some days.

Enviado desde mi 1+1 64gb White
[Android General] HH6:
Radio issue is now gone, so it must have been related to radio roaming. But its still kind of odd, but not to big of a deal.

Ok, I will do that and post here when I have the new dump.

Cheers for quick response and for keeping this thread running! :)
[Android General] vctrrl:
Here's the dump. Overnight, flight mode. 0,8% per hour.

Forgot to mention that I haven't limited anything. Amplify and Greenify weren't installed. Just flight mode enabled in order to stablish a baseline.
[Android General] HH6:
Another >10h idle dump

Looking way, WAY much better now!

2% drop in over 10hrs - 0.2%/h. Very good.

But this is now after clearing recently used apps. So no push from messenger or others.

Anyway, its not the OS itself drinking my juice, its the rest of the stuff.
[Android General] Celestial Fury:
The dump is all joined together. I can hardly read it. Can you just attach it in your post without using Mega or anything else? Double check before you attach that it's readable.
[Android General] Celestial Fury:
Show the BBS dump before and after. We deal with hard facts and not feelings.
[Android General] Celestial Fury:
You can limit this but your widget(s) will update slower. Widgets drain a lot. Your choice.

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

Limit all these as per the guide.

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

Alarms: 25, Intent: com.google.android.gms/.checkin.EventLogService$Receiver

Alarms: 13, Intent: com.google.android.gms.gcm.ACTION_CHECK_QUEUE

You're on Lolipop but this still appears for you? I'm now on

Stock

Lolipop (finally :o) and they no longer appear.

Alarms: 29, Intent: ALARM_WAKEUP2313448
[Android General] Celestial Fury:
Wow, Huawei seems to manage drain very well even with mobile data on! Clearing recent apps doesn't stop push. It just stops the app from being in (foreground?) memory.

Limit as per the guide.

Alarms: 80, Intent: com.android.internal.telephony.data-stall

Did you get a lot of messages? If not then it's just draining for nothing in idle. But test functionality if you limit it.

Alarms: 42, Intent: com.facebook.push.mqtt.d.b.ACTION_INEXACT_ALARM.com.facebook.orca
[Android General] garthybarthy:
Still have the problem with device keeping awake because of Google Play Services rather than deep sleep, was told CM released a fix on custom ROMs but updated and no changes.

Have secril_fd kernel wakelock going through the roof to do with fast dormancy or whatever its called. Tried the app for disabling it on the play store but made no difference the wakelock still appears.

Stuck, don't know what to do for the phone to go in deep sleep mode.
[Android General] Celestial Fury:
[MENTION=6283568]garthybarthy[/MENTION]

Can't tell much without a BBS Text Dumpfile.
[Android General] garthybarthy:
Sorry, attached bbs dump but have been using the phone on and off last few hours.

Thanks.
[Android General] vctrrl:
What's your Lollipop version? I'm on .270. Dstriker Z1 Kai version.
[Android General] Celestial Fury:
.270 Stock. Servicely + AppOps didn't stop ALARM_WAKEUP2313448 for you?
[Android General] HH6:
Limited data-stall few hours ago. Seems to work fine so far.

Limited INEXAKT_ALARM few hours ago. Function remains! :)

Over 20h since unplugged. 2h screen time. About 1h WiFi data sharing and still on 40%!

So far insane improvement!

Will report again tomorrow :)
[Android General] vctrrl:
On the stock Rom it didn't worked but I'll give a try again. As this ROM is based on stock I think I shouldn't have this alarm like you. Don't know.

This guide seems not working perfectly to me so far but I'm still trying :confused:

When you mention "Location alarms (both rough and fine)" they should be allowed every 86400?

Do you have the same stats on Lollipop?

A thread update would be nice because of lollipop or still pretty much the same?
[Android General] cuezaireekaa:
Awesome post. Thanks for your time. Gonna read this whole thread this week, and figure out how to utilize amplify better. Sub'd

sent from an sm-n900t
[Android General] Wilmerin:
I can't buy pro version of amplify, can use another free apk to disable service?

I'm from Venezuela and we have restrictions to buy through google play.:crying:

Is there any other free apk to disable the service and modify the alarm limit?:confused:

Thanks:good:

Xperia P stock rom 4.1.2

Unlock bootloader and root
[Android General] Blodgarm:
To disable services I'd look at this app Check out "[root] Servicely" - https://play.google.com/store/apps/details?id=com.franco.servicely

I dunno any other app for limiting the time though. Maybe you can look for an xposed mod that'll help change the country specific thing.

As Abraham Lincoln once said, MURICA!!!
[Android General] Xpid3r:
here is 3 Dumb Files

and i also attach screenshots..

View attachment 3383187

View attachment 3383188

View attachment 3383194

View attachment 3383195

Using Galaxy S4
[Android General] vctrrl:
Another try. No improvements at all. Got rid of ALARM_WAKEUP2313448 by just limiting the things you mention in the guide. No significant alarms as you can see in the dump but a significative

drain

.