yashsingh1/xdaforums huggingface dataset:
[Android General] wrongway213:
I see ContextManager wakelock is not safe to limit. It seems to be destroying my battery to a pretty outrageous degree - wondering if I am sort of out of luck here as this wakelock can't be limited safely, or if I should let it run for a while and give a dump of idle tonight. Amplify running stock settings (just NLP wakelocks limited to 240) as I want to pinpoint my issue before trying to expand on it. I see huge reports for GCoreFLP in Amplify as well as GeofencerStateMachine, *netscheduler*, Icing, NFCServiceRoutingWakelock, and LocationManagerService. For alarms, many are high - LockBoxAlarmReceiver is very high, as is my Zooper update and the usual ALARM_WAKEUP wakelocks, telephony-data-stall, and a few others. As I have observed thus far, it seems a lot of these are more or less reported in Amplify without showing any real drain in BBS - there are a few alarms that I believe are an exception to this, and ContextManagerWakeLock is showing tons of drain.

So basically, I'm wondering if I should follow the procedure and attach an idle dump from tonight (I followed FAQ), or if the issue for me is going to be more finding out how to limit these ContextManagerWakeLocks somehow and is thus something outside the scope of this thread. I'd appreciate if OP/anyone in the know could chime in on that, or if anyone who is suffering ContextManagerWakeLock has any input as well. I have searched Amplify thread, this one, and Celestial Fury's and can't find much info on that wakelock - just that it's unsafe to limit... seems the next reasonable course of action is to figure out if it's other things going on causing this drain, or if it is something Amplify can't handle (maybe something Greenify could, even). Any feedback would be appreciated - I've been trying to fine tune my wakelocks since I upgraded to M and I must confess, reading guides and all I still have not been having much luck.
[Android General] v7:
Context is an important part of Android.

Read THIS

The fact is that everything that pops up in Amplify doesn't drain.There are lots of wakelocks/alarms/services that needs to be running often for proper working of the device.High numbers cannot be considered as drainers.

There's a high chance of system failure if you limit important wakelocks/services.It's better to be on the safe side.You won't benefit from limiting it,on the other hand you may face crashes/bootloops or unusual behaviors.

Does this make sense to you?

___

v7

XDA Assist
[Android General] Paget96:
Well, i recommend xD
[Android General] m0han:
surely, the dev can do better.
[Android General] wrongway213:
It certainly does - thank you for the link! Way more informative than any of the context related links I have found searching myself! I'm pretty good about monitoring battery stats (I like to think), so I will watch throughout day to make sure Context is the only major offender - if I have more going on I'll let an idle dump generate tonight and drop it here, if not at least now I understand my drain. Thanks again!
[Android General] hawkdown77:
Hi Phoze...do u use whatsapp? Can you send to me your configuration of amplify?

Cause im afraid get late notifications in whatsapp.
[Android General] RoyanArt:
Dual SIM Card ON

WIFI ON

Data ON

Location OFF

Bluetooth OFF.

Auto-sync OFF

Alarm ON

but still 1,3%/hr drain.

Any idea [MENTION=5867207]v7[/MENTION] ?

Thank you :good:
[Android General] v7:
The Life360 app and LINE is consuming a lot.Can you greenify them?See if the notifications from LINE come through.

___

v7

XDA Assist
[Android General] mrrocketdog:
if you have titanium backup , maybe you could freeze those apps you mentioned. IDK , maybe an idea ?

"all i can really do is stay out of my own way and let the will of heaven be done"
[Android General] v7:
Seems like an issue with battery/charging port.Defective charging port can cause weird issues like you mentioned.

Uninstalling/Freezing those apps would revert the changes but a clean flash is recommended in your case.I think you have to manually reenable the services in MyAndroidTools.

___

v7

XDA Assist
[Android General] duowing:
As V7 mentions try greenifying at least the Line app, otherwise you'll need to play with the alarm settings in amplify to tone it down. When I had Line installed before I knew about greenify and powernap I found it was utterly destroying my battery life.
[Android General] torecdude:
I followed this guide when i had lollipop 5.1.1 on my nexus 6.

Now running MM iv'e decided to try again. This time not using PowerNap since i had lots of issues with it last time with Android 5.1.1.

I had the phone chraged 100% and left it for 6 hours. Will post dump files of better battery stats later of necessary.

But for now i ask kindly for your help: The only major problem im having is wlan_rx_wake and wlan_ctrl_wake at kernel wakelocks with BBS. Im running stock android with stock kernel. What can i do about those wakelocks?

Note: Greenify version is 2.8 beta 3 which is buggy sometimes, i dont know if its related.

Thank you for this amazing guide which has helped me alot.
[Android General] v7:
Those wakelocks keeping the phone awake?Post the dump and I'll see what I can do :)

Find the Doze Settings in OP :)

___

v7

XDA Assist
[Android General] v7:
Viber and Ambident/Adaptive Display is causing some drain.Rest is all good!Greenify Viber and see if the notifications come through.

Also edit your post and use hide tags for easy reading of the thread :)

___

v7

XDA Assist
[Android General] bullfinch110:
I have the same problem like tech girl. I dont know, how to attach my dump file. If i use quick reply, there is no Option to attach file. Sorry for this noop question, but could you guide me shortly, please?
[Android General] v7:
Visit the forum from a browser.You'll find an option to manage attachments :)

___

v7

XDA Assist
[Android General] tech_girl:
Oops...hide it now.

Thanks much for looking at my log. I will greenify Viber tonight.
[Android General] RoyanArt:
I will try to greenify LINE and Life360. If the Life360 notifications were delayed, I'll not greenify life360 because life360 is an important app :) and i'll post dump again with Location ON because life360 need GPS.

if the LINE notifications were delayed = no problem :)

Thanks [MENTION=5867207]v7[/MENTION] and [MENTION=3318242]duowing[/MENTION]
[Android General] v7:
[MENTION=4980300]mido25[/MENTION] Read FAQ in post #6 and post a dump :)

___

v7

XDA Assist
[Android General] mido25:
Here you go..

https://drive.google.com/file/d/0B-62sOnnWywTSzRjcy1odlBvRVk/view?usp=docslist_api
[Android General] bullfinch110:
Plesse have a look at my dump. THX for your kind contribution.

http://xdaforums.com/attachment.php?attachmentid=3584108&stc=1&d=1450712758
[Android General] duowing:
I'm not sure how much you rely on Ambient Display, but it can be limited. On my Moto Maxx custom rom I have options to pulse the display on waving my hand over the phone or when I pick it up so I don't need it constantly pulsing. I currently have it limited in Amplify.

com.android.systemui.doze.notification_pulse

is set to 14 seconds and this at least for my phone causes it to pulse once on the initial notification and then that's it. You can play with other options and get it to pulse more or less. I found it to be kind of hard on battery when it's allowed to continually pulse.
[Android General] v7:
Deep Sleep (): 4 h 12 m 44 s 37.4%

Awake (Screen Off) (): 29 m 11 s 4.3%

Screen On (): 6 h 33 m 58 s 58.3%

Dump is not proper.Phone was charged in between.Post another dump later :)

___

v7

XDA Assist
[Android General] v7:
Awake (Screen Off) (): 8 h 47 m 15 s 86,8%

This is really high but I couldn't find anything in the stats that caused the trouble.Can you post another dump tomorrow along with the detailed screenshots from the inbuilt battery stats?

___

v7

XDA Assist
[Android General] bullfinch110:
Yes, for sure. I think, its msm-otg wakelock. This comes up, if i disconnect the charging cable. If i dont reboot the phone directly after charging, it will not go to deepsleep. For tomorrow could i reboot after charging and then leave the phone Idle over night or is the dumpfile useless for you?
[Android General] v7:
Give me a dump tomorrow :)

___

v7

XDA Assist
[Android General] hawkdown77:
Im using privacy guard in my ROM. Can i disable wake up and keep wake in google play services like OP said?
[Android General] v7:
Yes.You can use AppOpsXposed/Privacy Guard for doing it.

___

v7

XDA Assist
[Android General] ma.ramli2013:
Hello @v7

Should I lock Alarms

android.intent.action.TIME_TICK

com.google.android.intent.action.GCM_reconnect

Calendar starting.alert.service

com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD

Thank you for your help

Regards
[Android General] LiL_Assassin:
Time tick is your status bar clock. It wint update. Dont do it .
[Android General] RoyanArt:
[ASK] For Asus Zenfone 5 - x86 user

Are Power Nap not working & causing bootloop ?

From this source, power nap is not working & causing bootloop
[Android General] v7:
That list was updated back in July.

___

v7

XDA Assist
[Android General] Ph0z3:
No I do not.

And with my settings I've posted here, you'll only get notifications when you open the app, or every 2 hours.
[Android General] torecdude:
As promised here are the text dump files from bbs after a night phone being idle.

i had to uninstall greenif since its still buggy in android 6 and has caused my some issues.

I used naptime by franco for your guide :)

Thanks again for this, i really appreciate it!
[Android General] v7:
Screen On (): 5 m 8 s 0.9%

Could've been better if the SOT was <1 min.

Sync is causing some drain.Rest is all good.Can't comment on Alarm as BBS doesn't display them in MM.

___

v7

XDA Assist
[Android General] bullfinch110:
Hello @V7,

this is dump from last night Using amplify, greenify, intelli3g and lspeed mod. Something to improve? Thank you a lot.

http://xdaforums.com/attachment.php?attachmentid=3584887&stc=1

&d=1450771831

http://xdaforums.com/attachment.php?attachmentid=3584898&stc=1&d=1450772341
[Android General] RoyanArt:
Power Nap is working on zenfone 5 x86 intel

@v7, Should I limit this alarm ?

com.android.server.wifimanager.action.start_scan
[Android General] v7:
How old is the cell?

___

v7

XDA Assist
[Android General] v7:
No.Keep it untouched.

___

v7

XDA Assist
[Android General] bullfinch110:
About 3 years.
[Android General] bullfinch110:
http://xdaforums.com/attachment.php?attachmentid=3584900&stc=1&d=1450772581
[Android General] v7:
1%/hr drain on a 3 year old cell is fine.Alarms and Wakelocks are in control

___

v7

XDA Assist
[Android General] hawkdown77:
Hi, i need little help. Im using Aftership APP for track my shipments, but im using only amplify and a follow op alarms and Wakelock to limit them. But now i only receive notifications when i open APP. What can i do?
[Android General] torecdude:
What can I do about sync? And about wlan wakelocks?
[Android General] Ajju^:
Is there any way to know if doze is working or not??
[Android General] v7:
The app uses SYNC?

___

v7

XDA Assist
[Android General] v7:
You can limit android.content.syncmanager.SYNC_ALARM to 3600/7200 seconds.Wlan wakelocks are normal.

___

v7

XDA Assist
[Android General] v7:
Read http://developer.android.com/traini...oze-standby.html#testing_doze_and_app_standby

___

v7

XDA Assist
[Android General] Ajju^:
Hey which app should i use for aggressive doze mode naptime or greenify..?
[Android General] v7:
You can use the Doze Settings I mentioned in the OP.No need to use agressive doze.You can use Naptime/Doze Settings Editor to apply my settings.

___

v7

XDA Assist
[Android General] hawkdown77:
I dont know. How can i know this?
[Android General] v7:
Post a screenshot from your Settings-Accounts page.

___

v7

XDA Assist
[Android General] hawkdown77:
This?

It times n times refresh status my shipments but i dont know how. It have not settings options notifications.
[Android General] v7:
Unlimit

*SyncLoopWakeLock

*android.content.syncmanager.SYNC_ALARM

___

v7

XDA Assist
[Android General] earth08:
Will it limit my gmail sync if I limit syncloop and sync_alarm?
[Android General] v7:
Yes.

___

v7

XDA Assist
[Android General] Ajju^:
As u said i did give a try to your doze settings i had random reboots while screen was off :/
[Android General] v7:
Doze settings won't cause reboots.Do you use Greenify?Greenify is said to be causing problems on MM.

___

v7

XDA Assist
[Android General] mrolle:
I have a problem, i'm not getting push notifications on wifi, but yes on mobile network, any reason?
[Android General] Ajju^:
Yes m using greenify to hibernate apps but i have kept aggressive doze off
[Android General] v7:
Do you get all notifications on Mobile Data and nothing on WiFi?

Then try using PushNotificationFixer I mentioned in the "Known Issues" in OP.

___

v7

XDA Assist
[Android General] v7:
Doze Settings won't cause bootloops.Try disabling Greenify and see if the bootloop occurs.

Next time when you get a random reboot,capture the last_kmsg and post it here.

___

v7

XDA Assist
[Android General] Ajju^:
https://userscloud.com/dyb801webb0l
[Android General] hawkdown77:
OK, i will try. Thank you.
[Android General] v7:
Do you use PowerNap?

Some I/O error occurred.

___

v7

XDA Assist
[Android General] spanjeli:
[MENTION=5867207]v7[/MENTION] or anyone, please help me with this, my phone lose above 50% over night :(
[Android General] AmolAmrit:
[MENTION=5867207]v7[/MENTION] , your previous DP was more awesome.
[Android General] v7:
Device,ROM and GooglePlayServices version?

___

v7

XDA Assist
[Android General] v7:
Everyone needs a change ;) See my sig :D Matching Avatar for the Sig :)

___

v7

XDA Assist
[Android General] spanjeli:
Letv x500, 5.02 stock 008 stable, google play services 8.4.89
[Android General] Ajju^:
No m not using xposed there was another randoom reboot :(
[Android General] v7:
Report it to the ROM developer.

___

v7

XDA Assist
[Android General] nicolahaye:
Great guide thank you :) i'm wondering if I might encounter problem with the music queue with the chromecast if I disable the keep awake in app ops fo play services ? :)
[Android General] Ippolito1971:
This is awesome!!! Thanks for the work here. Great stuff

LG G3 VS985 SkyDragon LP

If I've helped you please hit the thanks!! ? ?
[Android General] hienvahieu:
i think you should add set cpu -> lower CPU -> more battery :)

i usually set lowest cpu and my battery extend about 1 about on screen :)
[Android General] v7:
I haven't tried that.I believe it should work fibe .

Tapped from my furious dogo ;)
[Android General] v7:
I'm trying to keep this thread as simple as possible.I don't prefer compromising performance for battery :)

Tapped from my furious dogo ;)
[Android General] closee91:
Disabling negotiationservice in Google play services makes it FC for me
[Android General] exodius48:
[MENTION=5867207]vaisakh7[/MENTION] amplify link on 1st page not working
[Android General] v7:
It should work now :)
[Android General] jaibar:
You're right, but don't forget that for many users there are lots of stuff they don't need every day, and following some of the tips in this thread can help them quite a lot.

Besides, you don't need to put all of it in use everyday, if you have charger handy somewhere (at work, car etc.).

But the knowledge is good. Suppose some day you get caught without any energy source and expecting a very long day (or weekend, or you're traveling a long distance, whatever)?

Then you have the required xposed modules ready for use.
[Android General] karansingh5854:
I m using aurora N4/s6 port 5 version 8.2 rom by alemtro nd its quite awesome rom...saw the link of extreme battery life nd i came here nd i follow all the op steps as per directions nd see wht i get extended battery life now i get 4 hr nd 30 mins of screen time as wid out this guide i barely got 3 hrs of screen time thanx to u bro vaisakh7...

I was thinking of trying voltaque kernel nd will revert back here☺☺☺☺
[Android General] exodius48:
OK

Btw after i use this tutor, every time my device booting, play services crash. I use play service 7.5.73 (1976294-036).

How to solve?
[Android General] v7:
Re-enable ads.jam.NegotiationService.It has no side effects at all.

Tapped from my furious dogo ;)
[Android General] exodius48:
Will try.. :good:
[Android General] superdragonpt:
Plus, the users must have good sense.

There's like 10000 (multiply this value ) apps on the Play and other stores that claim to give you "two times" or "double" "triple" your battery ...

--> The only thing they'll do is increase your RAM consumption / decrease your storage space / and some of them also requires root and HIGH LEVEL Permissions (and oh Dear GOD) they can do a lot with those permissions ...

For those who are fairly new on Android, stay away from those apps / and even root. (for new users)

Good tip to increase your battery:

Most Kernel(s), have several CPU Governors included, just choose one with less CPU throttling , and that doesn't put your cpu core(s) speed at max every time (your just wasting battery).

You could easily change back to an "heavy" Governor, when you need more power for Games/Multi-tasking

Cheers
[Android General] EotT:
I don't know why it was 0%, the other nights it was a few %. But I don't complain. ;)

FYI: I don't have an extended battery. It's just a normal OPO, combined with those battery saving apps, and a custom kernel (AK kernel). Airplane mode at night (6h a day).

final pic:

5d11h46m

batery left: 4%

battery drain: 0.7%/hour

SOT: 3h40

(I don't know why it says 100% 'No or unknown signal', I certainly had a good signal)
[Android General] Levered:
Nice guide [MENTION=5867207]vaisakh7[/MENTION], keep it up.:fingers-crossed:
[Android General] MarniC00:
First of all thanks for your hard work. I'm looking to optimise my battery life with the combo you suggest for some time now but still can't get where I want to be. Your setup seems to work best though. Please have a look at my stats and check if there's something I can do better. I use CM12.1 nightly version on Xperia Z1 Compact (battery has like 10 months now).
[Android General] Lasantha:
going to try...thanks op
[Android General] v7:
It is a kernel related issue.Those eventx-xxxx wakelocks are related to touchscreen and hardware buttons.Nothing can be done other than changing the ROM or Kernel.Try changing them and see if it helps.

Tapped from my furious dogo ;)
[Android General] jaibar:
You are right on every mark.

But OP has plenty of useful information including general tips that apply to most of us.

And sometimes an external app such as greenify does prove its value for some rogue app. The problem is that users abuse such apps (e.g. "greenify everything that moves"), using conflicting apps, task killers and "battery doctors".

But with common sense, and not raising expectations for double or triple screen on time, one can actually improve a little bit. For me, I suffer the most from wakelocks that suddenly keep the device awake 100% of the time. On a winter day, it is nice to have a warming device in the pocket :) In the summer, not so so. Anyway, I successfully used greenify to get rid of such a case. Then I immediately got enthusiastic and installed on each device I own, then realized doing more harm than benefit, and now only use where really needed, uninstall where everything is fine.
[Android General] v7:
Can you clean flash with another gapps?

___

v7

XDA Assist
[Android General] spanjeli:
which version of gapps i must chose? I`ll do anything to stop this :)
[Android General] v7:
Which gapps package do you use usually?

___

v7

XDA Assist
[Android General] spanjeli:
This gapps was implemented in rom already :)
[Android General] v7:
You said stock!Ah got it.Try to clean flash this ROM once.

___

v7

XDA Assist
[Android General] spanjeli:
Oh sorry, rom is based on stock, only debloated and rooted, with gasps.

I already try clean flesh 3 times, format everything from recovery and still this huge battery drain.
[Android General] v7:
Should be ROM related.Can you try another ROM?

___

v7

XDA Assist
[Android General] spanjeli:
There is no custom rom for this device :D I can only try pure stock ROM and after that I must flash gapps. Is this problem related to gapps or something else?
[Android General] RoyanArt:
Thanks for the guide @v7

Before i posted my problem here

After installing Power Nap and greenify Life360 + LINE, i got 0,8%/h :

Can you check my dump again? Can my device be better than 0,8%/h or < 0,6%/h ) ?
[Android General] v7:
You can't flash Gapps on stock ROMs.Is any other region firmware available?

___

v7

XDA Assist
[Android General] v7:
10029 (Wifi) (Google Services): 2.0 MBytes 89.8%

Some apps were updated or sync occurred during the idle time.Is the wear connected all the time?

___

v7

XDA Assist
[Android General] spanjeli:
Oh sure I can. Letv is China company and therefore there isn't any Google Apps in phone firmware, but after installing recovery I can install gapps...
[Android General] v7:
Then try Slim Gapps.

___

v7

XDA Assist
[Android General] m0han:
variety is the spice of life. :D
[Android General] con2x:
So i have done all the instructions written in the OP. limited wakelocks and alarms i can find on my device (Galaxy S5 international version). installed PushNotificationFixer(PNF) because im having delay receiving messages coming from line app. but still the same issue. can you advice what to do? sometimes more than 5 minutes delay.
[Android General] v7:
Have you disabled anything apart from the OP?

Please post screenshots from your Amplify.

Which app is delivering delayed notifications?

___

v7

XDA Assist
[Android General] con2x:
Did not disable anything about location because i use maps. no disabled services. Line messaging application is delay delivering messages.

Last part of my limited alarms is "android.content.syncmanager.SYNC_ALARM"

whitelisted the ff in power nap:

AndroidSystem

BetterBatteryStats

Greenify

Greenify Donation Package

Amplify

Xposed Framework

Line
[Android General] v7:
Degreenify LINE.

___

v7

XDA Assist
[Android General] con2x:
Did not greenified the app.
[Android General] v7:
LINE uses sync?I'm not familiar with the app.

___

v7

XDA Assist
[Android General] con2x:
I think not. in my account it doesn't show. the app itself syncs for contacts but disabled that option because it causes a lot of drain. may i ask if your whatsapp messenger instantly receives messages?
[Android General] v7:
Nothing in the OP breaks push notifications.I get instant messages on all my IM accounts.

Tried reinstalling it?Can you try to freeze Amplify and see if it works?

___

v7

XDA Assist
[Android General] con2x:
not yet. but will do and report back. thank you very much. great guide by the way.
[Android General] duowing:
It was once mentioned that you need to give Greenify access in Accessibility options. I don't know if this actually makes a difference, but it's something I usually forget to do and this time around it seems like since doing it, things wake up and seem to work better.
[Android General] v7:
Merry Christmas to all my fellow mates :)

Enjoy guys :good: : highfive:
[Android General] atrix4nag:
Amplify home screen

I followed the instructions in initial post for amplify settings.

This is my amplify home screen. Is this notmal ,because wakelock allowed time is almost equal to data collected time.
[Android General] v7:
Reset the stats and see if it shows the same.

___

v7

XDA Assist
[Android General] noobSU:
Done everything written in the OP. Still i got so many battery loss on standby.

Anybody knows why these suspend_backoff wakelocks are coming? Whenever i disable or enable systemupdateservice of google play services i always have this kinda bbs dump. If i don't touch systemupdateservice then also my cell is always awake but because of systemupdateservice. What can i do?
[Android General] v7:
Do you use Chrome?

___

v7

XDA Assist