yashsingh1/xdaforums huggingface dataset:
[Android General] v7:
Limit com.android.internal.telephony.data-stall to 93600 seconds.

__

v7

XDA Assist
[Android General] ainurrofiq:
Thank you
[Android General] abhijeet715:
Sorry for posting late, didnt get any rom update (the new one was buggy) could you please check. I am gonna go through the guide once again and see if i have missed out something
[Android General] v7:
Get a dump on Aeroplane mode.

__

v7

XDA Assist
[Android General] abhijeet715:
Tomorrow wouldn't be a good day for it as its the weekday beginning here. Ill have to wait until next thursday :crying:
[Android General] HydrogenCyanide:
Here is my latest, drain is 3% now. Please help.
[Android General] thepomp:
Can someone check my dumps? Its too much awake
[Android General] EndLess:
Very Nice Thread sir I am very Impressed with your work :)

it really increased my standby time and Battery backup of my device.

Sir [MENTION=5867207]v7[/MENTION] If you Don't mind i Have Made a Video on the basis of your great guide ... plzz watch the video if My video is helpfull for someone it is very great honour to me if u add it to your thread ..only if itis gud enough to add :)

here is the link sir https://youtu.be/x9rsYXylwYw
[Android General] samsald:
http://cloud.tapatalk.com/s/57cc2ee12afde/BetterBatteryStats-2016-09-04_090956860.txt

Here is my dump can someone check please??

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] v7:
wlan_wake (): 2 h 38 m 44 s Cnt:(c/wc/ec)13151/50/0 36.6%

Try static IP for your WiFi and report back.

Most of the wakelocks and alarms listed in the OP are not limited.Check the list and add those to the amplify list.

__

v7

XDA Assist
[Android General] v7:
Check the OP and limit those wakelocks and alarms.Most of them aren't limited.

__

v7

XDA Assist
[Android General] v7:
Yeah, thanks for the cover :thumbup:

Will add it to OP when I get time :)

__

v7

XDA Assist
[Android General] v7:
10062 (Wifi) (com.samsung.android.video.Video): 56.0 MBytes 98.5%

Video app consumed some data and juice.

__

v7

XDA Assist
[Android General] samsald:
I greenifyed video application that would be enough ?? such battery consumption during those 9 hours ?? It was 0.04 / h with lit wifi? its ok?

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] EndLess:
Thanx sir for your rply :) ... waiting for it to add it in this Thread .. it will help some peoples :angel:

this is great honour to me :D
[Android General] ralph9994:
Getting a lot of alarms from context manager alarm wakeup. Where do these come from?
[Android General] billtheos:
I am on a LG G3 D855 with CM13 nightly and I have severe drain battery although I followed this guide.

I noticed that when WiFi is on and connected to a wireless network there are more wakelocks than when I am on data.

I would appreciate if anyone helped.

Thanks.
[Android General] v7:
0.5%/hr is not bad.Get me another dump with the Video app greenified.

__

v7

XDA Assist
[Android General] v7:
Add the regex as mentioned in the OP. That'll fix the issue.

Read the FAQ in post #6 and get a dump.

__

v7

XDA Assist
[Android General] v7:
Read FAQ in post #6 and get a dump.I'll check :)

__

v7

XDA Assist
[Android General] samsald:
Ok men [MENTION=5867207]v7[/MENTION] I take this opportunity to thank you for this post the truth with your advice and greatly prolonged the life of my device bettery

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] krasCGQ:
Hi,

Are these alarms safe to limit?

android.net.netmon.lingerExpired_100_385540003

android.net.netmon.lingerExpired_106_-420371242

android.net.netmon.lingerExpired_108_-356077794

android.net.netmon.lingerExpired_110_-1046036356
[Android General] v7:
No need to limit them.It's related to your network connection.

__

v7

XDA Assist
[Android General] krasCGQ:
Ah... I see...

Because on custom ROMs I never had these alarms before. Thanks!
[Android General] TNSMANI:
BBS 2.2.0.0RC2 is up on the BBS XDA thread. Sensors reading is now separated and you can click the reading and know which sensor was used by which app and for how long.

Upgrade and profit!
[Android General] v7:
Happy debugging ^_^

__

v7

XDA Assist
[Android General] billtheos:
As I mentioned before. When on WiFi I have more wakelocks than when I am on LTE.

You can find attached my battery history details issue and the dump file from BBS.

Thanks again!
[Android General] githyanki:
Screen On (): 1 h 3 m 58 s 9.6%

You need to make an idle dump. Read the first post for direction.

Usually best way is to fully charge right before bed time, unplug it and let it sit overnight while you sleep. Wake up and get the dump.

Update BBS. http://xdaforums.com/showthread.php?t=1179809
[Android General] Bencoderus:
Great work OP
[Android General] diji1:
Awesome post OP! I got excellent results although it's only day one with this new configuration and I haven't enable Stamina mode (I have Xperia device) yet.

I found that Smart Network link is broken so I replaced this functionality with Intelli3G which handles managing cellular radios automatically for power saving brilliantly.

Then I installed Smart WiFi Toggler to automate switching WiFi on and off (but disabled all cell radio power saving stuff to allow Intelli3G to work). It uses cellular location (ie. low power location) to work out where you are and turn your WiFi off and on and then connect to networks as appropriate - so for example I only use home WiFi normally so I set it to ignore every WiFi except my home and only have WiFi on when I'm at home. This uses more power than doing this manually obviously but I want to have everything as automated as possible.

Also installed Battery Widget Reborn for 2 reasons: it has a reading for time taken to discharge 1% of battery which helps keep a "running" score of how your battery taming efforts are going: if it's going up you're getting better battery saving results, if it's going down then you're doing worse. The other reason is it has a "Night mode" feature which automatically turns off radios - I only use this to switch Bluetooth on in the mornings and off in the evening since i never use it at night, everything else is being managed by other apps.

Thanks again OP, amazing post!
[Android General] rav101:
You might want to check out Leandroid. It does what Intelli3g does and more and doesn't require Xposed. Maybe worth checking out. For my needs, I have found it to be more flexible!
[Android General] matt09:
So both Appopsxposed and Amplify say they have stopped as soon as I have opened them. I'm not sure why, I am rooted with Xposed installed, Greenify opens fine?
[Android General] krasCGQ:
So far I've limited some extra wakelocks and alarms that mostly belong to analytics and services. Here's what I limit besides everything from OP:

Wakelocks:

*job*/com.facebook.appmanager/com.facebook.analytics2.logger.LollipopUploadService every 9999999 seconds (max) - from Facebook App Manager (preinstalled on Asus stock MM firmware)

MqttLite every 60 seconds (1 minute) - from Facebook Messenger (may delay message reception)

Analytics campaign WakeLock every 9999999 seconds (max) - from Greenify

ContextManagerWakeLock every 9999999 seconds (max) - from Google Play services (I limit it just for fun)

Event Log Service every 9999999 seconds (max) - from Google Play services (also: just for fun)

Everything else that on 'Safe to limit' list every 3600 seconds (1 hour)

Alarms:

com.cmcm.adsdk.ConfigMonitor_Action every 9999999 seconds (max) - from CM Security (also exists on ZenUI Launcher with built-in CM AppLock)

com.asus.launcher.applock.ad.reset.ad_display_times every 9999999 seconds (max) - from ZenUI Launcher (related to the AppLock feature)

com.asus.launcher.applock.ad.schedule every 9999999 seconds (max) - from ZenUI Launcher (same as above)

com.ucweb.union.ads.common.d.a.WriteTick every 9999999 seconds (max) - from UC Browser

So far I have nearly zero issues, except Messenger notifications that come every 1 minute (I don't want to get Messenger notifications so often).

Hope these help.
[Android General] diji1:
Thanks, you're right Leandroid is better.
[Android General] TNSMANI:
Greenify can work without Xposed, though some features may not be available. The other two require Xposed absolutely, without which they can not work. So Greenify working is no proof that Xposed is working.
[Android General] Danny94:
Me again,

could someone check my BBS please have installed a new Rom.

Can i block one of this:

Wakelock:

ma.wanam.smartnetwork.mainApplication

wake:com.whatsapp/.AlarmService

GCM_CONN_ALARM

ConnectivityService (in the first trade is one under Alarms)

Alarms:

com.whatsapp.messaging.r.CLIENT_PINGER_ACTION (Whatsapp are much others)

de.wetteronline.wetterapp.background.SCHEDULED_UPDATE

it.vodafone.my190/com.ibm.mce.sdk.wi.AlarmReceiver
[Android General] Stupifier:
@v7

Just curious.....what kinda idle drain are you getting on your OP3 currently? Under what ROM? And are you doing any of these battery optimizations on your OP3? I've had mine for about 2-weeks and I'm just curious.
[Android General] v7:
Limit com.android.internal.telephony.data-stall to 93600 seconds.

No need to limit others.

__

v7

XDA Assist
[Android General] v7:
Actually I don't get the space to check the battery stats on my OP3.I switch ROMs and Kernels everyday.Plenty of testing going on.

And yes,I use Xposed,Amplify and Greenify all the time.

__

v7

XDA Assist
[Android General] stefan1234566789:
What should i limit?

Thanks in advance :angel:
[Android General] githyanki:
You lost 0% over 7 hours. I think you pretty much got it.
[Android General] v7:
Limit com.google.android.gms/.checkin.EventLogServiceReceiver to 93600 seconds.

Rest is all perfect.0.0%/hr is fantastic :highfive:

__

v7

XDA Assist
[Android General] billtheos:
Could anyone please check my BBS dump file? I have 43% battery drain in about 9 hours with wifi and data on and sot 19s.

Also I have noticed that if I set the wifi off and data on, I have less wakelocks.

Thank you in advance.
[Android General] Portgas D. Ace:
Mostly a kernel issue. I would suggest to flash a different kernel.

Beside this:

Alarms: 6, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_58775 -> use Amplify's regex function and limit this type of alarm (see post #4 for details)

Alarms: 37, Intent: com.android.bluetooth.btservice.action.ALARM_WAKEUP -> Bluetooth connection, turn it off when you don't need it

Facebook Messenger is also quite active. You could Greenify it if you don't rely on instant push notifications or switch to a lightweight alternative such as FB Lite or Metal.

Several location-related alarms that are part of the OP. Limit them.
[Android General] Craig Capel:
I'm against blocking alarms because you need them to wake you up on time! Or other important events

The point of blocking an alarm belonging to 1 app, yes, better still use an autostart manager and stop them accessing it's bootup broadcast receiver
[Android General] Portgas D. Ace:
But some apps are just coded quite *****, so they fire alarms whenever they think its good. But sometimes, the user doesn't want to have those alarms firing every minute, so this guide is about adjusting the time frame of alarms, not to block them completely.

Blocking those apps at startup will be totally against the purpose of a smartphone.
[Android General] Stupifier:
Well.....even without all the battery optimization tweaks from this thread, the OP3 idles very nicely. Just my 2 cents. I'll be incorporating your tweaks soon and report my results (using RR Black Jubel ROM, fantastic ROM)
[Android General] matt09:
Gravitybox is working fine though. I just did an uninstall of Xposed Zip and GUI apk, cleared cache and still get stopped errors on OPapps and Amplify :confused:
[Android General] gregferns:
Hi.

Can anyone check my log and tell me what needs to be done.. This is over night drain on my Moto G Turbo Edition on stock mm.

Regards

Greg
[Android General] v7:
What other modules do you use?

__

v7

XDA Assist
[Android General] dizM0nkey:
Syslog and a few random crashes

Great guide! Battery life is much improved, but I have had some random restarts or reboots and it is a bit laggy after being in deep sleep a bit.

Also, Gsam isn't updating like the stock battery app. I'm sure a wakelock is to blame but not sure which one.

Here is my syslog and average battery life.

Help is appreciated.
[Android General] Oswald Boelcke:
I'd appreciate if you allow me to benefit from your knowledge and expertise. Generally, I'm pretty happy with my battery duration; however, I'm convinced I might be able to enhance the battery life with your help and support.

Please find attached the logs taken this morning. Level lost [%]: Bat.: -45%(100% to 55%) [2,8%/h].

Configuration of my device is provided in the signature block. Used Xposed modules: AFWall+ (Donation), Amplify, CrappaLinks, DisableFlagSecure, Greenify, Power Nap, and XPrivacy.

Please advise if further information is required. Thanks very much already in advance.
[Android General] Portgas D. Ace:
Screen On (): 13 m 33 s 1,4% -> that's not an idle log file. Refer to post #6 and post an idle log file.

MyPhoneExplorer Client (com.fjsoft.myphoneexplorer.client.MyPhoneExplorer Client): 3 h 12 m 29 s Count:3 19,7% -> MyPhoneExplorer client was active for quite some time. Turn it off when you don't need it.

PollService wakeLockAcquire (com.fsck.k9.K-9 Mail): 25 m 51 s Count:5258 2,6% -> K9 Mail was active

ProximitySensor (com.android.dialer.Telefon): 13 m 11 s Count:5 1,4% -> seems that you made a phone call during idle period

Alarms: 918, Intent: com.fsck.k9.service.BroadcastReceiver.fireIntent -> related to K9 Mail, you could limit it to 1800 if you are okay with check for new mails every 30 minutes
[Android General] Oswald Boelcke:
Thanks very much. I really appreciate the quick support, which already helped a lot.

I read post#6 and was aware that an "idle dump" is preferred. However, my wife is currently at the hospital i.e. I can't afford to have my phone idling such a long time. This is also the reason why I made calls or K9 Mail and MPE aren't blocked, greenified, or "fire" alarms so often. I hope she's returning soon, then I'm going to present the idle log.
[Android General] Portgas D. Ace:
Try to produce the idle log file over night when you most likely don't use your device.
[Android General] samsald:
Hi everyone can someone che my dump please http://cloud.tapatalk.com/s/57d2901fa6e3e/BetterBatteryStats-2016-09-09_043143005.txt

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] f0xy:
Wondering if its worth splitting the Amplify settings into 2parts like System/user apps
[Android General] matt09:
None other than Greenify, I only just started trying Xposed.
[Android General] pg8286:
Dont go for xposed and all because installing xposed framework and while opening modules, the memory gets called and your ram will be compromised.

According to me all you have to do for best battery backup is

1) Flash a suitable Kernel

2) Use Kernel Adiutor

3) Use Greenify

Thats it. And you will soon notice the changes buddy

Hit Thanks if it helped :)
[Android General] OmerElbaz:
Hi,

Will limiting the location ALARMS, NOT SERVICES, affect my Waze/Google Maps use during driving and such?
[Android General] Oswald Boelcke:
Thanks very much for the valuable advice. Please find attached the idle log file of last night (about 8 hours at idle). I hope this file is in line with your expectations this time.

I don't know if following information are of interest:

K-9 Mail, ChompSMS and Signal are not greenified.

All wakelocks and alarms related to Google Play Services are somehow "amplified" (around 90000 sec).

Remark: I intend to take your advice and am going to limit the K-9 related alarms initially to 1800 sec.

Looking forward to your remarks to the log and your recommendations. Thanks very much in advance.
[Android General] zoisa:
Can I limit this alarm?:

com.whatsapp.action.HOURLY_CRON (255 times)

I don't read anything about it in post 4 (post about Amplify)

Thanks.
[Android General] :
One advice, delete DS Battery Saver immediately. It will do more harm than good to your phone.
[Android General] XFi1382:
I still get quite a few wakelocks and alarms... Any expert who can help me optimize further please?

Thanks!!
[Android General] pg8286:
Good to see that you are flashing things and learning. My advice to you is that you should uninstall ds battery saver. What happens is maybe it is holding a threshold power comsumption. So maybe you should uninstall that stuff.

Now what i personally feel is maybe you should go for a ROM with lot of customizing options rather that using xposed. As i mentioned earlier xposed modules calls for memory so maybe you should try to keep your phone more minimal.

A proper ROM with a proper kernel and apps like kernel adiutor, greenify, and Lspeed mod will give you best battery backup.

Still if you are using xposed for gaming or app mods then you have to compromise a bit dude. Or else go for what i said and you will yourself see the differences.

Cheers.

Hit Thanks if it helped.
[Android General] Portgas D. Ace:
K9-Mail seems to be the most active battery drainer. Therefore I would suggest you limit its alarm and monitor battery drain for the next few days. If you dont experience any issue are okay with 1800, you could increase it to 3600 and check again.

Another drainer is the wlan_rx_wake kernel wakelock. Just search for this one and you will find one thread on XDA about how to reduce this one (can't share link right now, but it is about assigning a static IP beside other things), but it has been in most of my former replies on this thread.
[Android General] XpellCZ:
BetterBatteryStats

Hello @v7, thank you for amazing thread. I really appreciate it. Could you help me get my battery life as much optimised as possible? Thank you.

It won't let me post my battery stats. It says I can't post outside links.
[Android General] -Happy Feet-:
no blocking from STEP_IDLE_STATE?
[Android General] stefan1234566789:
Some drainage here and i don't know why, last time was 0% / h ,can you help me [MENTION=5867207]v7[/MENTION] ?
[Android General] githyanki:
Follow directions in first 4 posts.

You had about 1.5 hrs screen on time, it is impossible to separate the unusual drain from the drain caused by use. You will have to get a new log with minimal screen on time.
[Android General] samsald:
hello someone could help me with my dump please want to go down to 0 / h and not to wakelock prevents me. down my last dump

http://cloud.tapatalk.com/s/57d4177b43206/BetterBatteryStats-2016-09-10_090154736.txt

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] pg8286:
Thats the problem there. My opinion is to install clean master for clearing junk and then uninstall. Use cleanmaster cleaning once in a month. What happens is cleanmaster has inbuilt ads and a ton of them. Also it keeps collecting data for you which results in background process and hits your battery. Also CM locker keeps running in backgrounds also contributes in sucking battery. As far as i can say, try to keep minimum processess, services and apps running in background.

Dont forget to hit THANKS if it helped
[Android General] stefan1234566789:
OK, i will provide it tomorrow, thanks
[Android General] dizM0nkey:
Hey v7,

I've followed your guide and love it... Only got 4% drain in 9 hours overnight!

I am getting random reboots... I was just watching a short video clip via my browser and it rebooted (this only has happened after guide steps / wakelocks put in place)

I've attached my last kernel syslog. Please assist if you can.

Thanks,

diznanl
[Android General] DB126:
Greenifying Clean Master fixes idle drain and data collection. Saves hassle of uninstalling/reinstalling between uses. Only downside is the size of the apk itself (huge) and a short delay starting as it comes out of hibernation. That said, there are far better options available for device housekeeping.
[Android General] v7:
Wifi Running (): 7 h 13 m 43 s 100.0%

WiFi was running but not connected.

How's the cell signal at your place?

__

v7

XDA Assist
[Android General] v7:
No issues in the stats.Maybe another kernel/ROM will help improve the drain.

How old is the cell?

__

v7

XDA Assist
[Android General] v7:
But why?

__

v7

XDA Assist
[Android General] v7:
Get a logcat.

__

v7

XDA Assist
[Android General] v7:
Might break some whatsapp stuffs.So,NO.

__

v7

XDA Assist
[Android General] v7:
Check this thread for a possible fix for the wlan_rx wakelock.

Update BBS to 2.2RC3 and get me a dump.

__

v7

XDA Assist
[Android General] v7:
Use the XDA App/Labs to upload the file or just PM me :)

__

v7

XDA Assist
[Android General] v7:
0.4%/hr is really a good number.Nothing to tweak.Enjoy your battery life :)

__

v7

XDA Assist
[Android General] f0xy:
Just because some people don't use the different apps, and people can support your thread with further limits for user apps :)
[Android General] v7:
Can you get me a dump with AOD disabled?

__

v7

XDA Assist
[Android General] samsald:
the phone signal is very good. you think I should leave it with the data instead of wifi ?? And how can fix the wifi running? ?

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] v7:
Check Settings->Location->3 dot menu->WiFi scanning.

If it's already enabled, disable it.

__

v7

XDA Assist
[Android General] ddee105:
OK will do, thanks!
[Android General] samsald:
thanks @ v7 This is the best guide and seen to optimize the life of the battery.

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] dizM0nkey:
Haven't gotten access to PowerNap yet... Would love to, but still waiting ...

Thanks!

diznanl
[Android General] Tacoo:
You can download it straight from xposed now.
[Android General] dizM0nkey:
Thanks, all. Got it downloaded and setup. I'm on a Samsung Galaxy S7 Edge SM-G935T rooted using Samsung_G935x_Root_Boot_QC.TAR ... obviously, no sign of "Cyanogenmod System" or "Trebuchet" but I have the other whitelisted, as well as GSam Battery Monitor and Nova Launcher and Nova Launcher Prime, as well as my messaging apps (Facebook Messenger, Whatsapp, Hangouts, Textra).

The other issue I was running into was a few random reboots and slow downs... I'll charge tonight and post in the morning using BBS, Wakelock Detector, and SysLog (if I get a reboot).

Thank, you, again!
[Android General] Tacoo:
Get rid of GSAM and use Better Battery Stats. It's less of a resource and battery hog.
[Android General] XpellCZ:
You're awesome. You respond so quickly. Here are my battery stats. I am using Amplify, Greenify and AppOpsXposed on my OnePlus 3. I let my phone idle for 5 hours after charging. I hope that's enough. Thank you.

https://docs.google.com/document/d/1AnDkFiWlJMpXhg-InP4JGhau12ygt3Yg9TWrQn20EWM/edit?usp=drive_web
[Android General] v7:
Update BBS to 2.2RC3 and get a dump.

Which kernel is this?

__

v7

XDA Assist
[Android General] XpellCZ:
Will do. As far as I know, I am using stock kernel.
[Android General] XpellCZ:
Here is my new dump. Thanks for taking a look at it.

https://drive.google.com/file/d/0B6VxhQT2f2yDWVAyYmI0V1dDYWs/view?usp=drivesdk
[Android General] v7:
Alarms: 4, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_34634

Add regex as mentioned in the OP.

Rest is all good :)

__

v7

XDA Assist
[Android General] XpellCZ:
Thanks! I added regex in Amplify. Can I also limit this exact alarm you mentioned?
[Android General] v7:
OP updated with FAQ-Posting Reports/Logs

Tapped from my furious dogo ;)
[Android General] Grzesiek1010:
No FC :) now works great ?

My battery receiced new live !

Wysłane z mojego XT1095 przy użyciu Tapatalka
[Android General] kend0g:
I have narrowed it down to either the working mode or the experimental features of why my phone wouldn't go Into deep sleep... Right now I have amplify, greenify and powernap running and it will go Into deep sleep.. Working mode is set to root and none of the experimental features are enabled.. So far so Good.. I'm going to check each one individually and see what was causing it.

-SD 4.0/SD 4.1 Kernel- :)
[Android General] v7:
[MENTION=5433796]kend0g[/MENTION] Test an report.

Tapped from my furious dogo ;)