yashsingh1/xdaforums huggingface dataset:
[Android General] HH6:
Need advice

Hi all you! :)

I've been on this thread before and managed to get my drain very low thanks to you ;)

Since I've had some issues with my phone I had to do a clean install of the OS, so I'm now in need of help again with limitations of alarms and wake locks. Maybe also services?

FYI, I've already done the OP changes.

Phone spec is in the dump file.

Pls let me know if anything else is needed.

And as always, thank you! :)
[Android General] Portgas D. Ace:
Limit the following alarms:

com.facebook.push.mqtt.d.b.ACTION_INEXACT_ALARM.com.facebook.orca to 7200 (you will receive FB Messenger notifications every two hours. Do not limit if you rely onto instant notifications for FB Messenger!)

com.facebook.common.executors.dg.ACTION_ALARM.com.facebook.orca.Mqtt_Wakeup also to 7200 (same as above: Do not limit if you rely onto instant notifications for FB Messenger!)

com.facebook.analytics.service.a.ACTION_ALARM to 99999999 (maximum possible value) OR disable its corresponding analytics service via MyAndroidTools to completely stop it from running
[Android General] HH6:
I would like to have the FB messenger pushes to work instantly, or at least near instantly.

So atm I will wait with that.

Maximum limit done for:

Alarms: 9, Intent: com.facebook.analytics.service.a.ACTION_ALARM

lets se how it works out later on.

Limited to 86400 :

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

I actually missed this one in the OP.. Its a huge sucker!

Now its limited anyway :)

Will report back later on.

Thanks orville87! (:
[Android General] shaza98:
I'll try asking again, since it seems like I was overlooked. And I think I FINALLY figured out the attachment thing... :victory:

Any help would be appreciated OP, as to what I should further limit.
[Android General] Portgas D. Ace:
Have a look at my post here.

If you don't rely on instant notifications from FB, FB Messenger and Asus Mail, limit the remaining alarms with the highest numbers (MailboxAlarmReceiver, MAIL_SERVICE_WAKEUP for Asus Mail; com.facebook.orca.Mqtt_wakeup for FB Messenger; ACTION_INEXACT_ALARM.com.facebook.katana, com.facebook.katana.Mqtt_wakeup) to 7200, so you will receive notifications from those apps every second hour.
[Android General] CheyTac-12:
Alarm not going off

I suspected it had happened a few times in the past few weeks since I wasn't studying and waking up at a specific time wasn't necessary. Today was my first day of this semester and the alarm didn't go off. If I set an alarm for 5 minutes ahead it works fine, but I suspect it's when it is idle at night that it fails.

Any reason why this would happen? Could it be not related to this tutorial? If I install a third party clock app like Timely, could it fix it?
[Android General] Celestial Fury:
Depends on the type of widgets you use and how often you need you them to update. Start with 7200 secs and see if it appear in BBS anymore.
[Android General] Celestial Fury:
Yes, it can - alarms that affect push notifications (with the cloud icon) and WhatsApp alarms themselves. Do note that sometimes it can be the servers that are just slow.
[Android General] Celestial Fury:
Your network has been active during idle which will affect idle drain.

This is in the guide.

Too active.

FB Messenger is too active.

Don't forget to check functionality.
[Android General] Celestial Fury:
These are

also

too active:

Alarms: 8, Intent: com.cyanogenmod.lockclock.action.CANCEL_LOCATION_UPDATE

Alarms: 8, Intent: {com.cyanogenmod.lockclock/com.cyanogenmod.lockclock.weather.WeatherUpdateService}

In the guide:

Alarms: 2, Intent: {com.google.android.gms/com.google.android.gms.checkin.CheckinService$Receiver}

Alarms: 3, Intent: ALARM_WAKEUP_ACTIVE_COLLECTOR

Why is Maps too active?

Alarms: 8, Intent: {com.google.android.apps.maps/com.google.android.apps.gmm.prefetch.PrefetcherService}
[Android General] Celestial Fury:
Limit them. Start with 7200. Analytics should be limited to the max.

http://xdaforums.com/attachment.php?attachmentid=3427990&d=1438681640

http://xdaforums.com/attachment.php?attachmentid=3427991&d=1438681658

http://xdaforums.com/attachment.php?attachmentid=3427992&d=1438681658

Then check functionality.
[Android General] Celestial Fury:
I'll test it overnight but this could be it.

- android.content.syncmanager.SYNC_ALARM
[Android General] Phelicks:
Thanks, could you explain what specific process in responsible for delivering messages?

I've got them delivered only if I open the app.

I did not touch alarms with clouds ?
[Android General] Portgas D. Ace:
Normally, the Google Cloud Messaging (GCM) service is responsible for push notifications. Limiting/disabling any of its related alarms may break/delay push notifications. Are you running a GAPPS-free device ( = no Google apps installed)?
[Android General] HH6:
New SS's and dump attached.

Starting to look good, there is more to limit for sure!

Pls take a look and let me know your thoughts.

Cheers all! (:
[Android General] Portgas D. Ace:
Well, 0.2% per hour loss is very good, as you want to keep FB Messenger unlimited for instant push notifications.

If you do not use the clock widget (lockclock) with included weather indicator, you can try to set the values for

com.cyanogenmod.lockclock.action.CANCEL_LOCATION_UPDATE and

com.cyanogenmod.lockclock/com.cyanogenmod.lockclock.weather.WeatherUpdateService

to maximum.
[Android General] HH6:
I've taken care of them all except for 2 which I will do later to not mess around to much.

These I leave for later:

com.cyanogenmod.lockclock.action.CANCEL_LOCATION_UPDATE - This one have been maxed on limit now.

com.google.android.apps.maps/com.google.android.apps.gmm.prefetch.PrefetcherService

The first one I have no clue what its related to, do you? orville87 answered this one for me

And when it comes to maps I don't know why its so active..

New report in a day or two!

As always, thanks Fury! (:
[Android General] shaza98:
Thanks! This made it better. If I didn't use my phone yesterday, I would have easily gotten more than a day of idle time :D
[Android General] HH6:
Done - since I don't use the weather widget.

Cheers!
[Android General] Wilmerin:
Yes this is Airplane mode
[Android General] googchrome:
Here is the latest dump using Servicely for google play services with Aggressive process termination off. Thanks for your help!
[Android General] Celestial Fury:
So, I set an alarm for the next morning and it triggered the next morning. You may have some other app that is interfering.
[Android General] Celestial Fury:
Did you touch any WhatsApp alarms? Did you Greenify WhatsApp? Some other app?
[Android General] Celestial Fury:
Everything's low now but you still have a min of awake time. Amplify can't help anymore. You'll have to start removing unnecessary apps. Try disabling Greenify (it drains a little) and see what the drain is like. Other than that the drain will be coming from the android system, kernel or battery itself.
[Android General] Phelicks:
Could lcing wakelocks limited for 7200 sec do that? Beacause I've got also Inbox app mail got delivered only if I open the app
[Android General] gundam_warlock:
Hello sir, i have question. is com.sonyericsson.wakeup.fastdormancywakeupserver is safe to limit? Because my phone sometime doesn't go to deep sleep, and keep getting high alarm intent
[Android General] Portgas D. Ace:
Seems that you have fast dormancy enabled. Search for more information about it, read them carefully and - in case you decide that you don't need fast dormancy - search for a tutorial about how to disable it. This way you will completely disable its wakelock.

Otherwise you can do a nandroid backup of your system, limit com.sonyericsson.wakeup.fastdormancywakeupserver to 43200 and see what will happen.
[Android General] gundam_warlock:
For now, what i understand from fast dormancy is, it make the network quickly change from H/H+ to 3G.

I can accept it if it happen when i used the phone, but if it happen when the phone in idle and cause battery lost, maybe need to disable it.

Thx btw for advive, gonna try both of it :highfive:
[Android General] TNSMANI:
Amplify+MyAndroidTools

I had achieved 0.1% per hour battery drop on idle with Amplify, Greenify, PowerNap and MyAndroidTools.

Now, as an experiment, I had removed Greenify and PowerNap and limited/barred wakelocks, alarms and services using the guide here and at [MENTION=5867207]vaisakh7[/MENTION]'s thread. I had made some small adjustments to suit my usage.

Now I present the result which confirms the title of this thread.

Thank you [MENTION=5401012]Celestial Fury[/MENTION]
[Android General] Wilmerin:
I think it's done: best airplane baseline!

Awake (): 6 m 50 s 1,3% = Screen On (): 6 m 49 s 1,3% = BBS_WAKELOCK_WHILE_SAVING_REF (com.asksven.betterbatterystats_xdaedition.BetterBatteryStats): 6 m 50 s Count:2 1,3%

So, is any way to get the Stats without switching screen on? I think I could get near to 100% deep sleep.

Should I follow to the idle battery drain test?

Thanks for your support.
[Android General] albion93:
Hey guys i followed the guide of this thread but from yesterday i don't receive SMS.. i don't know why..and another thing ( i think it does not matter this guide) i can't receive or send messagges from whatsapp from yesterday beacuse i finished my 2gigabyte of internet but normally i have already internet just less fast and normally whatsapp works..maybe is something wrong with amplify or it' s something else?

Inviato dal mio HTC One utilizzando Tapatalk
[Android General] :
I'm new to this and I've been having fun hunting and controlling wakelocks and alarms. One alarm that bugs me is com.android.systemui.doze.notification_pulse. I attached a screenshot of which. Can anyone explain this and whether it's ok to control this alarm? I'm using a Nexus 6 by the way. Thanks a lot.

Shamusent
[Android General] 4r44444:
If I set this times in starting post in amplify for Whatsapp and Facebook I am also be able to recive messages instantly or it will get messages only every 2 hours?
[Android General] Celestial Fury:
Partial wakelocks are for keeping the phone awake AFTER an alarm has triggered - that is it has to be the fault of an alarm first before it can be the fault of a partial wakelock. Disable Amplify in XPosed, reboot and test for a few days if there's a difference in the way WhatsApp and Inbox works. If yes, then there was something limited in Amplify that had affected it.
[Android General] Celestial Fury:
It's an alarm, yes? Some phones have fast dormancy configured as kernel wakelocks. In Sony, they're alarms which can be limited in Amplify. Don't - but your mileage may vary. My phone started lagging when I limited it. I was in an area with bad coverage and constant switching between 3G and Edge.
[Android General] Celestial Fury:
An automation app like Tasker might be able to but it shouldn't take you Screen On (): 6 m 49 s to do it. Why is BBS_WAKELOCK_WHILE_SAVING_REF (com.asksven.betterbatterystats_xdaedition.BetterBatteryStats): 6 m 50 s taking that long to save? It should be

instant.

Better reinstall BBS. [1,5%/h] airplane idle drain is bad. It should hardly drain at all or less than 0.5%/h.

What app is this - what's it retrying?

Alarms: 8, Intent: action_upload_retry

CRON - since you have no connection, it's probably checking every hour for a connection but other apps don't seem to need to do this.

Alarms: 9, Intent: com.whatsapp.action.HOURLY_CRON

Partial wakelock

WakeupEventReceiver (com.skype.raider.Skype): 3 m 1 s

Your CPU is too active in airplane mode and contributing to drain. You need to fix all the above before we can come to some other conclusion.

1 GHz (): 1 m 14 s 0,2%

200 MHz (): 5 m 28 s 1,0%

Your battery also dropped from 100-99% in 4 minutes which is too fast.
[Android General] Celestial Fury:
Maybe no one sent you any SMS? Use another phone to send yourself an SMS. What has using up your internet quota and not being able to send/receive WhatsApp messages got to do with any problem? How is it less fast? So WhatsApp doesn't work now? Or something else? Disable Amplify in XPosed and see if there's a difference.
[Android General] Celestial Fury:
Setting - Display - Daydream (ON?)
[Android General] Celestial Fury:
No problem for WhatsApp for me. Don't know about Facebook though as I don't use its messaging system.
[Android General] gundam_warlock:
For now i only try to disable it, and will see the result after tomorrow, and then try to limit it.

Disable fast dormancy make my network keep showing H/H+
[Android General] :
Nope.. But it must be the Ambient Display in Nexus 6. It

Shamusent
[Android General] albion93:
I disabled amplify and reboot and it worked (i'm talking about sms). So i enabled again amplify and works again..whatsapp i don't care tomorrow i'll receive the renew of my offert ..but for sms it was strage.. i don't know why they did not work,my sms were sented but i could not receive them..

Inviato dal mio HTC One utilizzando Tapatalk
[Android General] Wilmerin:
New stats

Reinstalled BBS and Limited as follow:

action_upload_retry every 7200 s

com.skype.raider.Skype every 7200 s

Attached new stats and graph.

Thanks
[Android General] HH6:
Amplify in Xposed

I must ask to make sure I don't mess things up before doing anything.

When I installed Amplify I downloaded it via google play, I did NOT use Xposed to download it.

Since I soon will get to the point where I will play around with unknown alarms and WL, I wonder if I can install Amplify via Xposed, then remove the "original" Amplify - and all my current Amplify settings remains?

Reason being, I want to have the opportunity to disable Xposed (Amplify incl) upon boot, in case I limit wrong stuff which could cause crashes or other negative behaviour on the precious phone.. (:

Do you guys know what I mean? Can I do the way described above? Or any other smart way of doing it?

Or would I need to start all over? /:

Take care!
[Android General] duowing:
If you disable Xposed, it will disable amplify. So it doesn't matter that you installed it via Google Play.
[Android General] HH6:
Well since I inst via google play its not even listen in Xposed.. Would it still be disabled when disabling Xposed you mean?

Hmm..
[Android General] HH6:
New SS's, more advice needed

My stats are looking very, very good atm! (:

However, I still have 4m wake time with <20s screen time with recent apps cleared all the time and no received text, mail or other stuff during the idle test time.

I've seen people stating it before, but once more - this truly is one of the best threads on XDA! (:

Take care!
[Android General] Mau669:
Does limiting any whatsapp alarms/wakelocks mentioned by OP have a negative impact on whatsapp? any issues sending and receiving text or voice messages on whatsapp? this is the app i use the most. Thank you
[Android General] Celestial Fury:
BBS is working properly now but you've used the phone for 13 mins before taking the dump.

Screen On (): 13 m 37 s

. Take the dump first before using the phone. It's also starting to look like the battery isn't too good as there are low alarms/wakelocks but drain >1%/h.
[Android General] Celestial Fury:
These are some other ways:

[Battery Life Help] Troubleshoot battery issues here! (Noob friendly)

[GUIDE] Insanely Better Battery Life When Idle - Battery Life Thread
[Android General] Celestial Fury:
XDA's attachments can't seem to open properly. I'll take a look tomorrow. The services blocked in Post #2 have nothing to do with FB/Messenger notifications but ads and privacy.
[Android General] thegios:
OK thanks I will start stopping services and will wait for your further feedback on Feb and google now alarms

Edit: found only this one service

com.facebook.katana/com.facebook.analytics.service.AnalyticsService
[Android General] Phoenix232:
I know this has nothing to do with what you're proposing, but would you mind telling me what is your battery drain when using your phone? Thanks.
[Android General] pradhana:
Here's my results.

Any feedback?
[Android General] Celestial Fury:
Sorry, the attachments still can't open. Either they're too big or server load or something. Anywhere, I did comment that they didn't seem like they were from the same idle period before. So, maybe a fresh set taken after the services have been blocked (don't forget to restart device). You need to use the phone longer and the apps in question for the services to show up.
[Android General] Celestial Fury:
Nearly 2 hours awake isn't good. XDA still slow in opening up attachments but these ones are much smaller. Partial wakelocks seem ok. Alarms don't seem too bad yet nearly 2h awake. Let's see your history details under battery stats usage for cell and GPS signal.
[Android General] pradhana:
Thank you for feedbacks.

Here is battery stats usage for cell and gps signal
[Android General] b0mb:
Really true words - we need some wakelockblocker for lollipop as the system itself tops everything :)
[Android General] thegios:
Not sure what you mean, but ok let's start from scratch :)

I have delayed the two basic wackelocks, some suggested alarms and I have blocked the only service I found among the suggested ones: you can see wich ones from the attached screenshots.

I have restarted the phone, charged the phone, unplugged and left idle for 5h 23m: result can be seen from the attached screenshots.

I still have 13 minutes of awake time, mainly from

... com.google.android.gms (if you see details, the top of the list here are com.google.android.intent.action.MCS_HEARTBEAT and com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR)

... com.google.android.googlequicksearchbox (if you see details, the top of the list here are gts.UPDATE_CALENDAR_ACTION and com.google.android.apps.sidekick.SCHEDULED_REFRESH)

... com.facebook.orca (if you see details, the top of the list here is com.facebook.push.mqtt.keepalive.b.ACTION_INEXACT_ALARM.com.facebook.orca)

... com.facebook.katana (if you see details, the top of the list here is com.facebook.push.mqtt.keepalive.KeepaliveManager.ACTION_INEXACT_ALARM.com.facebook.katana)
[Android General] Cj Marquez:
connection unstable

Hello,

So far my battery life has been greatly improved but I'm seeing " Your internet connection is unstable". I looked into my wife's Note 3 and her phone doesn't have the message (her phone is not rooted nor modified at all). Does anyone has or had the same? Could it be related to a limited wakelock or service?

The wifi connection works well but is annoying having the notification there.

Any help is appreciated.
[Android General] Celestial Fury:
If you're asking me, battery drain when using phone will differ widely depends on how I'm using it. Any number drain I give you can be different for each day. For my 3000mAh battery, it usually lasts for one and a half day for average use.
[Android General] Celestial Fury:
Is this from the same time as your previous screenshots? I'm still having problems with opening attachments and now even the forum doesn't load properly for me. Look at your screnshot, if there's full cell signal with no breaks then it might not be a weak signal. Is GPS active? Is so, then you need to find the alarm/wakelock/service that's using it.
[Android General] Celestial Fury:
Are these from the Z1?

In BBS - Share - TextDumpfile. I should be able to read this. Sorry for the inconvenience.

Increase limit for this.

com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR

Try limiting these two then set an alarm in your calendar and see if the alarm still works.

gts.UPDATE_CALENDAR_ACTION and com.google.android.apps.sidekick.SCHEDULED_REFRESH

For your FB alarms/wakelocks, you can try limiting them and see how they affect your notifications.
[Android General] pradhana:
Yes, it's the same day. The battery usage history i took after 10 min from capturing BBS Stat.

Signal is full, no GPS active. Awake and screen on only when i woke up to turn off the alarm and get up.

But the slope in the graph is happen when there is no awake or screen on.
[Android General] Celestial Fury:
Ok, can you ATTACH a Text Dumpfile? And what phone are you using? Android version?
[Android General] Celestial Fury:
Can you ATTACH (not post) a Text Dumpfile? Currently, I can't open attachments. Share from BBS. And upload to another image hosting site for the Amplify screnshots.

Actually, is it a system app giving the "Your internet connection is unstable" message? Or a user app? I know CM Security likes to spam the status bar with messages of how poorly the phone is (which I block with Notify Clean). So let's rule out user app first.
[Android General] pradhana:
Ok, i will try to post all from beginning. Maybe tomorrow, because yesterday i forgot to create dump text.

My phone:

Xperia M2

Stock KK 4.4.4

Thank you
[Android General] Celestial Fury:
Text Dumpfile

Anyone sharing a Text Dumpfile, please ATTACH (not post). See end of Post #3. Edit any exisiting posts. Can't reply now. Going out now and XDA still slow. Not slow for others??
[Android General] Celestial Fury:
Where did you see people saying that?

You've got 4 mins awake time, FB Messenger and FB very active, and Play Services random ALARM_WAKEUPs and have 0.1%/h. What phone is this again? Use the guide to fix ALARM_WAKEUP if you don't want to touch FB.
[Android General] Celestial Fury:
If your phone has been idle a long time (like overnight) there may be an hour delay. That shouldn't matter unless you need to wake up and read it. Usually, you'll turn on your phone when you wake up and any messages should come in then or you can just open WhatsApp once when you're awake.

If you use the phone normally throughout the day there should not be any significant delay as long as you don't have some other apps like Greenify regulating it.
[Android General] HH6:
Hmm, I can't remember.. I was certain I've seen it until ju asked me.

Anyways - for the records, I said it! :angel:

I'm using a Huawei Honor 6, H60-L04 - European/International version.

At first I wasn't happy with the phone at all, mainly due to battery performance and being completely new to android, coming from the dark side - iPhone 4 which I had jailbroken since new.

Dropped it in the toilette after 4-5 years of use.. I loved that phone! It was totally customised to my needs. Even stayed on iOS 4.3 (today its like iOS 8 or 9, maybe even higher?) which was my favourite version and rock solid! Battery performance was silly good. Due to high use I had to replace the battery twice, both otherwise it was lika a rock! (:

Well, now its time to make my new phone surpass the old iPhone in every way possible. And also get into the droid game for real! (:

Escalated somehow.. didn't mean to write an essay.. :p

I will take a look at the ALARM_WAKEUP's.

FB I will leave for the moment, might fiddle with it later on.

Take care!
[Android General] mikexmayhem:
Hey guys i need some help. I installed and used bbs for a day and now it looks like this. It wont uninstall even with the removal zip and when i reinstall it still shows this. Canyone help me get this working again?
[Android General] fradbari:
Hi, 2 question:

1.The first 2 limited voice, what's the raccomend sync time?

2 . that networkstats and sync loop wakelock what's affect?

Inviato dal mio A0001 utilizzando Tapatalk
[Android General] mikexmayhem:
Good news i got bbs working. With wifi off and phone unplugged i got 0.5%/hr last night ober almost 8 hours. The biggest culprit is facebook and google services but i cant find the alarms to limit it
[Android General] Celestial Fury:
All the recommendations are in Post #2.

If WiFi was off (including data?) then how could network be active? I don't think this is an idle drain test. See Post #3 on how to test and Post #2 on what to limit. Only new thing I see is ALARM_WAKEUP_CALIBRATION_COLLECTOR but it's probably another location alarm so limit it as such.
[Android General] mikexmayhem:
Data was on. Location was on. Wi-Fi was not. I wanted to run a test like this to see what's waking up and using data and I can see facebook and play and two big culprits. Everything suggested to be limited is limited, plus a few extra from another thread. I'll be sure to limit the one you've mentioned though