yashsingh1/xdaforums huggingface dataset:
[Android General] Gawd:
Exactly what I was thinking. But this has been happening since I installed Xposed. Is there any way that Xposed may be altering something that might cause this. And I really appreciate your reply. Will clean flash and report back. :)
[Android General] v7:
What all modules do you use?
[Android General] Gawd:
I think they are way too many. But just guide me and I'll follow. Thanks again.
[Android General] v7:
For now, disable

1.Patcher

2.Power Nap

and report back.
[Android General] jlb1959.01:
I have followed to a tee everything as far as settings and pretty much every wakelock(some haven't shown up),, yet according to the stats something is drawing off my over night battery.I am on Jasmin 9.1/ power nap/obvious amplify/grennify..I hope someone could read my dumps(sorry soon many but wanted to get wakelock,alarms,partial wakelocks so there would be no questions)....I appreciate all the help I've gotten,soon sorry this post is soon long......thanks mate..
[Android General] jlb1959.01:
sorry here's my dumps..I'm on Jasmin 9.1,skydragon 5.0.4 kernel,powernap,greenify,and amplify,exposed...
[Android General] v7:
Awesome stats!

Nothing to tweak.Enjoy the battery life :)
[Android General] DB126:
Generic tip: reset Amplify stats (not settings), reboot and observe behavior over next 8-24 hours. Any difference?

Edit: also disable powernap (independent test scenario)
[Android General] jlb1959.01:
thanks,I will give it a try and post Tuesday,that way plenty of time to observe..truely appreciate ur help mate..

---------- Post added at 05:02 PM ---------- Previous post was at 04:59 PM ----------

thanks for your help V7!!, much appreciated mate..

---------- Post added at 05:03 PM ---------- Previous post was at 05:02 PM ----------

helps appreciated Davey126,, thank you sir..
[Android General] Gawd:
Okay @v7, so I did exactly as you said. And it seems very good. But I guess the Mobile Radio Active bug is still present, even though I'm using the fix (help?). The device was also awake for some brief moments ( I think that's okay). I think either PowerNap or Lucky Patcher was the culprit, maybe both ( since I disabled them this time). Attaching the dump and some screenshots.

Note: I left the phone on standby with LTE on. No apps in the overview menu. The (LTE) signal is pretty weak in my area, but I guess the MRA bug isn't fixed yet.

Thank you very much man!
[Android General] v7:
Get a dump on Aeroplane mode with WiFi enabled.

Seems like the poor signal strength is causing the trouble.
[Android General] Gawd:
Here it is. Lost 3% in 4.5h. I think this can also be improved. Any suggestions?

And also, what should I do about the MRA bug, the Xposed module doesn't seem to "work" for me :(

[MENTION=5867207]v7[/MENTION] , should I keep Lucky Patcher and PowerNap disabled?
[Android General] vodeblog:
I found standby is better without powernap. My version is 0.81.
[Android General] esbatulembek:
Please take look

With and without wifi on

Airplane mode
[Android General] Caddos:
Hi dude what is PKMServices and CMWakelock?

Enviado desde mi SM-J700M mediante Tapatalk
[Android General] :
CMWakelock used to be known as ContextManagerWakelock. Members have reported that limiting it to 900 doesn't seem to bring any negative side effects.
[Android General] Danny94:
Does it exist a good alternative for the xposed modules "Smart Network" (turn off wifi, gps, mobile data | set mobile data to 2g when idle | and turn on every 30-60 mins wifi / mobile data) and "Amplify" ?

Have Android 7.1 and xposed framework doesn't work..
[Android General] marcdw:
Of course Xposed doesn't work. Not available for N.

I believe the app LeanDroid is what you may be looking for. It's at the Play Store. Used to use it on stock-based ROMs.

LG G3 D851, PAC-MAN LP ROM, Tapatalk 4.9.5
[Android General] Danny94:
[MENTION=6046143]marcdw[/MENTION]

Wow this app is great ! Thanks a lot. Edit: wow its even better then Smart Network =).

Now we just need a good amplify alternative ;D. Hopefully exist =).
[Android General] danecr7:
I did disable it, and actually I did not have that issue again.

But does removing PowerNap affect battery drain a lot ?
[Android General] Bewildered Wolf:
Hey @v7

Can you help me with this things. I want to stop se apps to start on boot. And with boot manager not all apps can be stopped. Like some system apps like chrome and other bloatwares. And you've mentioned in the OP (screenshot) that dont stop crucial system apps from boot using appopsxposed. So I searcehd in appopsxposed but there no option to stop an app to start at bootup. But there was an option I'm experimental settings add OP_BOOT_COMPLETED. But after that I can't see how to stop an app from running on boot.

Cam you tell me where I'm going wrong ?

Anyone can help.
[Android General] koekoek91:
Check the box on that option and reboot your phone.

Then open the app after reboot and it should be the tab if you swipe to the right.
[Android General] danecr7:
I'm currently using that feature to prevent apps from starting on boot. It's working like a charm actually. You'll find the toggle at the bottom the page after enabling it.
[Android General] Oswald Boelcke:
Please see screenshot. Option is grey out and not selectable.

Device configuration at hidden part of signature block.
[Android General] Bewildered Wolf:
It's selectable in my phone and once I ' ve rebooted. It's working awesome.
[Android General] Oswald Boelcke:
Be convinced I did reboot. A reboot is about the first things I do when I discover an issue (I'm even recommending that in this thread). However, in this case I don't mind at all as I control "auto boot" by other means like "MyAndroidTools".
[Android General] koekoek91:
Weird.

It works fine for me. As you can see below.
[Android General] DB126:
Greyed out for me as well. Possibly ROM dependent; HDX CM 12.1 here. Not a concern as I too use other tools to control boot (and post boot) behaviors.
[Android General] koekoek91:
What tools you use? Can you recommend any?

I use myandroidtools too and tried disableservice.

They're pretty great but I'm curious if there are better ones? :laugh:
[Android General] DB126:
MyAndroidTools is solid; SD Maid makes a nice complement. I use others as well for specialized functions plus a different 'look' at auto-start activity. I do not spend much time 'managing' my device as it can become all consuming. But when something goes rogue I want immediate access to a broad suite of well behaved tools that get the job done quickly and effectively. That list will vary by individual as evidenced by the frequent side conversations (like this one!) that pop up in XDA threads. One person's beauty is another's scorn.
[Android General] -Happy Feet-:
Hello,

I have no idea what can I do.. This strange wakelock.
[Android General] Generalgore:
Hey guyz,

I have followed the instructions above and it has improved my battery significantly but what I'm noticing is that my wifi turns off when the phone goes to sleep, if this has been asked before me I'm sorry but if u can kindly link me to the fix I would appreciate it

thank you
[Android General] crazix:
Under WIFI > Advanced > Keep WiFi on during sleep > Always
[Android General] Generalgore:
Yep that worked thank you very much.
[Android General] blksith0:
From OP,

. This isn't true anymore.
[Android General] patci32:
Hello,

I am having problems with battery life. Following your guide I first managed to get a good result (3% in one night with your procedure) but now it's more 10-11%. Here is the file, can you please tell me what to do to get back the previous result?

Thanks a lot
[Android General] Portgas D. Ace:
BetterBatteryStats version: 2.2.0.0RC3 -> update BBS to the latest version (v2.2.0.0 is available in the BBS thread here on XDA)

Screen On (): 16 m 41 s 3,3% -> that's not a proper idle dump. Don't use your device during idle period or stats will get useless for proper analysis.

qcom_rx_wakelock (): 31 m 47 s Cnt:(c/wc/ec)35376/83113/35376 6,3% -> this seem to be the major drainer and has been covered several times before, just search for "qcom_rx_wakelock" in this thread or on XDA in general
[Android General] patci32:
Thanks for your feedback. I can't find this wakeblock in amplify... I really don't know what to do.
[Android General] Portgas D. Ace:
Check this thread.

http://xdaforums.com/oneplus-one/help/qcomrxwakelock-t3400465
[Android General] patci32:
All I understand is that it is wi-fi related. And actually, when I turn wi-fi off it is OK. So I identified the problem, thanks!

However, no one seems to get a proper fix for this.
[Android General] Portgas D. Ace:
As it is a kernel wakelock, you can try to flash a different kernel and check if that solved the issue.
[Android General] v7:
Read the FAQ and post a dump.
[Android General] esbatulembek:
Any advice guys

Something i can improve
[Android General] v7:
I think it's time to replace the battery.
[Android General] jlb1959.01:
excuse my ignorance,I've been guided excellently by this post however could anyone explain how the settings( number setting) actually work,the lower the number,or raising the number. in other words if I want to limit a wake do I lower the number setting or raise,same with alarms..thanks,,I've read and re read but it has my curiosity..and again I'm greatful for all the guidance I've had,it has definitely improved my battery life( I'm on Jasmin 9.1 and fantastic battery life)..
[Android General] DB126:
Assuming you are referencing Amplify the value entered reflects the number of seconds an alarm or wakelock will be blocked before being allowed to 'fire', typically only once. Then the block resumes for the specified number of seconds. Alarms and wakelocks normally have a delay of zero (0) seconds which means they 'fire' immediately. Any positive number reflects a potential restriction. The larger the number the greater the restriction ... and potential side effects.
[Android General] jlb1959.01:
thank you very much,pretty much what I thought,and thank you for your guidance in this post as you gave helped me previously...
[Android General] tareq-hakeem:
Hi first thank you very much but i need favour can you backup amplify by tetanium backup and give it to us? Then we can restore amplify by tetanium backup
[Android General] :
Why?
[Android General] DB126:
Such a tease! May I hazard a guess? Na - best wait.
[Android General] yomiguy:
Thanks for this thread! It's very useful.

Enviado desde mi Galaxy Tab 2 mediante Tapatalk
[Android General] bodomfan:
Is power nap worth using on Sony phone with stamina mode?
[Android General] Bewildered Wolf:
Which wakelock or alarm to stop if you want to stop getting notifications from inbox ( or any mail app) whenever you get an email. Like I want the app to notify mein in around 12 hours or twice a day. If anyone can tell me that. ?
[Android General] tareq-hakeem:
I want use your configuration
[Android General] Portgas D. Ace:
All things that can be limited are described in the OP. Limit them by yourself, don't be lazy.

By the way: just taking the stuff from others might lead to issues on your device, as everyone has its own limitation pattern. Follow the OP and tweak everything to your needs.
[Android General] tareq-hakeem:
This is request because i can't find all alarms
[Android General] Portgas D. Ace:
See? Not all alarms are present on every device. Just limit those that you find.
[Android General] Bewildered Wolf:
Not all alarms will be found. Some are app based so maybe if you are not using an all so u'll not have that alarm. Block the ones that you are able to find :)
[Android General] tareq-hakeem:
Ok thank you

Thank you
[Android General] :
Also, do what I did. Use the phone normally with wifi, sync, bluetooth, gps turned on. You'll get as many alarms and wakelocks as possible like that.
[Android General] AntaresFP:
And the battery drain still persists after you limited this red intelligent screen thing? Some people on XDA say there is an option under settings/monitor/smart backlight control. Can you find and disable it?
[Android General] -Happy Feet-:
I clean the data from Bluetooth and the issue is gone
[Android General] gh0stzk:
If i use android M 6.0.1 is necessary to use powernap?
[Android General] DB126:
IMHO - no. But voices will argue otherwise. Listen to all and decide for yourself based on device behaviors and personal desires/expectations. Keep in mind you are in a thread with the word "extreme" in the title. This is the place to be if you truely to want to maximize battery life. :)
[Android General] inchvbeam:
Sorry, how do i do this:

AppOpsXposed

You can use Privacy Guard to disable some permissions of Google Play Services and Google Services Framework

Navigate to Settings->Hacks->Check FIX OP_WAKE_LOCK

Disable the following Permissions of Google Play Services using AppOps

OP_ALARM_WAKEUP/Wake Up

Keep Awake

Disable the following permissons of Google Services Framework

Keep Awake

I managed to "Check FIX OP_WAKE_LOCK" but the following instructions to disable permissions of google play services I cant find in AppsOps
[Android General] gh0stzk:
Ok thanks 4 ur reply, i decided not install it, cuz whatsapp messages are delayed only using greenify with agressive doze option. Obviously whatsapp is not on the list apps to hibernate. I white listed whats on doze options but still delayed :(. You know how to fix it?
[Android General] ryanallaire:
Can someone please have a looky?
[Android General] DB126:
AppsOps has two UIs. The one accessible via Xposed is for general settings. The other shows a list of installed apps; that one can be launched via ROM settings of an entry in the app tray if you enabled that feature. From the list of apps click on Google Play Services to access various toggles. Might have to swipe left/right to bring up device grouping.
[Android General] DB126:
As noted in the Greenify UI aggressive doze is an experimental feature that can break cross-app functionality and is not necessarily limited to the apps you have chosen to Greenify. Best not use it if causing problems.
[Android General] inchvbeam:
I had this problem on whatsapp as well, but its not really delayed notification. Rather any messages that come through did not wake up my screen. I had to whitelist whatsapp in PowerNap
[Android General] inchvbeam:
Hi Davey, thank you for you kind replies.
[Android General] yakupTR:
I can't see in ampfly exampla.. * com.widget.uptade. Why???

D6503 cihazımdan Tapatalk kullanılarak gönderildi
[Android General] Pirate.Hearts:
i'm xiaomi mi4 user rom cyanogenmod 13, I did every step what you wrote, but I feel my battry drain without reason every 30m or 1 hour without touching my phone lose 3% battery while mobile data on, is it normal?

another question is it need to enable shallow hibernation in latest greenify? when aggressive doze enable?
[Android General] Bewildered Wolf:
Please stop this [MENTION=5329107]yakupTR[/MENTION]

I told you this in PM.

The question has been answered again and again. So please search.

Not all the alarms and wakelocks will be found. Some are app based. Some are device based. And some of the take time to trigger so they are not triggered yet.

So limit those which you can find.
[Android General] vodeblog:
I found a lot wakelock were removed from OP like icing, one example. Does it mean it is not safe to limit it anymore?
[Android General] aryan700:
i do all steps correctly ... sone if the wakelocks was missing from my device but all other things i do correctly and after that ... my whatsapp messages (recieving and sending) are delayed by 1 minute ... any suggestions :eek:
[Android General] v7:
Limit the ones in the OP only.
[Android General] v7:
Have you limited anything apart from the OP?

Is Whatsapp hibernated/blacklisted in PowerNap?
[Android General] v7:
Merry Christmas and happy holidays to all!

Enjoy the holidays :)
[Android General] :
Icing is still there... Please check again. The OP has not been changed since July 26.
[Android General] aryan700:
no not at all... i always enable whatsapp on greenify and powernap and on greenify i didnt choose whatsapp for hibernating ... may be ill unistall all of them and reinstall and follow all the steps properly once again ...
[Android General] inchvbeam:
I would like whatsapp to wake up my screen for notifications, but does whitelisting whatsapp on powernap (the onli way which works for me on CM13) cause the battery to be drained? any recommendations on which wakelocks to limit while still able to satisfy my requirements. Merry Xmas.
[Android General] DB126:
Try disabling aggressive doze in Greenify to see if that fixes it. If so monitor battery drain over a few days to see if you can live without AD enabled.
[Android General] aryan700:
ok ill try .... and thanks for helping and quick responses :svetius:
[Android General] misterhong:
is it safe to limit it to 93600s?

what does it actualy do?
[Android General] kchristianc22:
Does it still make sense to use amplify and power nap with Greenify (having aggressive doze and doze on the go enabled), on marshmallow? Would it be redundant?
[Android General] ViTAMiNCHEG:
I'm using Amplify, PowerNap, Greenify on aggressive doze, Naptime + Prevent Running to block FB and Google play services from running in background. And I can say, that I get stunning battery results.

All this with EX KERNEL MANAGER + GlassFish 1.2 CPU profile.

I'm more than happy with the performance on my Mi 4s CM13.1
[Android General] rocky78:
93600?

but on post 4 it say to limit to 600....
[Android General] bodomfan:
However do I block play services from running in the background do I need xposed
[Android General] ViTAMiNCHEG:
Depends which rom are you. You can just change app permission in Settings -Apps and restrict fron running in background
[Android General] bodomfan:
Pandemic rom or doesn't let me restrict it that way
[Android General] ViTAMiNCHEG:
Then use xposed module "Prevent Running"
[Android General] bodomfan:
See images is that correct?
[Android General] ViTAMiNCHEG:
No, this will block app acess only to Internet. But won't block it from running in background
[Android General] bodomfan:
In permissions for the app then?
[Android General] rocky78:
hi,

just wanted to share and say thanks.

did as the op suggests by the letter :good:
[Android General] h_maharaj:
Hi. I'm not sure about Pandemic Rom but on CM14.1 the permission to disable Google play services from running in the background is found under settings-->memory-->apps started on boot rather than settings-->apps-->app permissions.
[Android General] :
You should test it yourself although I would be very careful with extreme values. In the worst case you could theoretically lose your data access for 26 hours (=93600s).

At the moment I am testing 900s (=15m) but only when the screen is off.
[Android General] DB126:
Not durable; Google Play Services will quickly restart unless all post boot receivers have been effectively blocked. Aggressively stopping Play Services is a rather extreme measure with numerous side effects (positive/negative). Probably not the best path for most unless one understands and comfortable with the consequences. That said, no harm in trying.
[Android General] h_maharaj:
I've only disabled play services from running in the background this morning. I've also turned off 'keep awake'. So far I've not experienced anything negative. If anything, my battery drain seems to have improved and I am experiencing no issues with push notifications. I still need to take a proper idle log though. Just trying something different as I'm unable to use Amplify since Xposed isn't ready for Nougat yet and Aggressive Doze in Greenify is causing my phone to lag.
[Android General] DB126:
Quite reasonable given situation. Be interested to see if Google Play Services stays active in the background once triggered. Keep awake setting doesn't impact service running status just whether wakelocks are issued/respected. Good luck!
[Android General] h_maharaj:
Had a look on Greenify's App Analyzer and google play services does not actually stop running completely in the background as it has a 'persistent' service (com.google.android.gms.persistent) which remains active.

I can say though that my battery drain after disabling 'keep awake' and 'run in background' has improved. My usage is very consistent and I put my phone to charge at 5pm. On my previous ROM (Eclipse) with Amplify+Greenify, my battery level ranged from 50%-54% at this time. Since flashing CM14.1 (with Greenify's aggressive doze enabled) my battery level ranged from 35%-40% at the same time. After disabling Aggressive Doze, my battery level increased to 42%-45% and today, after making those changes to play services, my battery level was at 52%.
[Android General] DB126:
Excellent. Hope that pattern continues in subsequent discharge cycles. Obviously can not draw conclusions from one data point in the absence of objective data (eg: BBS logs). Also some side effects may not have fully manifested. Post an update after a few days. I'm considering CM 14.1 (LineageOS) for a new device and may try your approach given the absence of Xposed.

Happy New year.
[Android General] h_maharaj:
Oh definitely, I'm not getting too excited as it's only been one day. My previous data points (and the baseline I'm working from) are derived from at least one week of use. I've found that the difference in idle drain over the various settings has been negligible (5%-7% drain overnight - I'm still using the original battery which is a little over 4 years old). I'll test these settings for a week and hopefully the results are positive.

Happy New Year to you as well.
[Android General] inchvbeam:
Edited: Found its alrite thanks. "Hi. I'm not sure about Pandemic Rom but on CM14.1 the permission to disable Google play services from running in the background is found under settings-->memory-->apps started on boot rather than settings-->apps-->app permissions."
[Android General] Bewildered Wolf:
I can't find the run in background option to disable it. Can you guide me bro ?
[Android General] h_maharaj:
I'm assuming that the ROM you are using is the one in your signature (Existenz). If so, I'm not sure whether the option is in the same location as the ROM I'm using as I've never used Existenz. I'm currently on CM14.1 and the option is under Settings>>Memory>>Apps started on Boot. On my previous ROM (Eclipse), "keep awake" could be disabled from Settings>>Permissions Manager and play services could be prevented from auto starting by unchecking the option under Settings>>Auto Starts.
[Android General] Bewildered Wolf:
Cant I disable from Appopsxposed the "run at boot" for google play services ?
[Android General] h_maharaj:
I've never disabled play services from starting at boot so I can't say whether this would cause issues with functionality. You're going to have to test it out for yourself. Currently I just have "keep awake" and "run in background" disabled and haven't experienced any ill-effects as yet.
[Android General] joriq:
can someone make a sense out of this? I am having problems with the following alarm, it's in the thousands per day:

com.google.android.gms (): Wakeups: 5165 (5.1 / min)

Alarms: 4885, Intent: com.google.android.gms.wearable.node.ALARM_PROCESS_CONNECTIVITY_CHANGES

It goes wild when I use my Moto 360. I tried resetting the 360 to factory, as well as reinstalling Android Wear. It goes away sometimes, even for a few days and then it comes back...
[Android General] githyanki:
Just limit it. 5 minutes should be OK, if not try less. You know it has to do with your moto 360, so the troubleshooting is done.
[Android General] joriq:
not really, I do not want to deal with the consequences, I want to find the root cause, because sometimes this alarm is gone for 5-10 days, with 10-20 per day, and the behaviour of the phone and of the smartwatch is the same.

So, can anyone see the cause of this alarm in the logs?
[Android General] :
It sounds like something is syncing in the background or some data collection in regular intervals. Try disabling sync or disconnect the smartwatch (in some way, I never had one)