yashsingh1/xdaforums huggingface dataset:
[Android General] Portgas D. Ace:
Update BBS to the latest version (2.2.0.0B6) and upload another idle dump log. Your alarm stats are corrupted.

Update BBS to the latest version (2.2.0.0B6).

Screen On (): 6 m 9 s 1.1% -> this might have drained some juice. Try to reduce it to less than a minute to save the idle dump log.

ImapIdlePushTask: 15 (com.android.email.Email): 41 m 36 s Count:200 7.4% -> @v7, any thoughts?

UlrDispSvcSlowWL (Google Services): 38 m 55 s Count:362 6.9% -> @v7, any thoughts?

Alarms: 117, Intent: android.net.wifi.DHCP_RENEW -> this has been explained here and here

Alarms: 1, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH -> limit it to 9999999

Alarms: 50, Intent: com.bsb.hike.mqtt.pingSender.+919812430913:3:true:true:0:1:443 -> related to Hike Messenger. If you rely on it, don't limit it. Otherwise try to limit it to 1800 and check if you lose any functionality or miss push notifications.

Alarms: 12, Intent: com.sonymobile.email.intent.RESTART_IMAP_IDLE -> seems related to Sony's mail client. If you don't use it, limit it to 86400.

Update BBS to the latest version (2.2.0.0B6) ;)

Wifi On (): 7 h 28 m 27 s 100.0%

Wifi Running (): 27 m 44 s 6.2%

Seems your WiFi has been turned on, but wasn't connected all the time. WiFi searching for network drains some battery.

Alarms: 30, Intent: com.google.android.googlequicksearchbox/com.google.android.apps.gsa.sidekick.main.TrafficIntentService -> limiting this might result in a loss of functionality for you, but if you don't use the quick search widget or Google Now, you can limit this.

Alarms: 10, Intent: ALARM_WAKEUP8012526 -> use Amplify's regex function described in post #4

Rest looks good.

Since 35 m 9 s

Screen On (): 35 m 1 s 99.6%

That's not an idle dump log. Please refer to post #6 about how to report proper log files.

Yeah, some of the alarms and wakelocks are known to break push notifications. Try to unlimit all FB-related alarms/wakelocks, reboot your device and limit the first one from the guide. Reboot again and check if notifications are still working. If tey do, limit the next alarm/wakelock and repeat the procedure. If you find an alarm/wakelock that breaks push notifications, unlimit it. Repeat until everything is set up according to your personal needs. Takes some time, but in the end you can set up everything as you would like it to have.

Use Greenify's wake-up path cut-off feature (click on the entry in Greenify when FB or Instagram are woken and press the scissor symbol) to solve this.

You can limit them, but they do not cause any drain. *alarm* and *launch* wakelocks appear on all Marshmallow ROMs. Try to limit *launch* and see if any functionality is lost or issues arise.
[Android General] Aroch925:
Here's my BBS file. I got a new battery last week so things should be pretty good. Let me know if there's anything i can do to make it better
[Android General] GudduAmbi052829:
thnku bro

will update n post dump again.
[Android General] TNSMANI:
Read the small print under the name of each app. That shows the name of the wakelock/alarm which wakes up the app. In Greenify, you can cut off the link between them if you don't want those wakelocks/alarms to wake up an app.
[Android General] charlesrobin:
Thank. you.. so cutting it will makes it never wakes again?

till now I thought that option makes an app disgreenify ..

I'm attaching dump. file here.. please have a look
[Android General] Portgas D. Ace:
Yes, if you cut off the wake-up path, the app won't wake up again.

Screen On (): 1 h 54 m 12 s 33.5%

Again, this is not an idle dump. Without an idle dump we are not able to help you.
[Android General] charlesrobin:
Keep WiFi/Mobile Data ON.(Leave the sync settings as per your usage pattern)

Leave it idle for atleast 6 hours(Do not turn on the screen during these period).

1. So i need to keep the phone idle for 6 plus hours and keep wifi and mobile data turned on before taking dump file?

2.can I do this when I plug my device in charger at night?

3. is there anything I need to do additionaly?
[Android General] Portgas D. Ace:
1. You have to charge your device to 100% before going to bed at night. Keep WiFi/mobile data on, then unplug your device and don't use it for the next hours until you wake up. After you wake up, open BBS immediately and save the dump file.

2. BBS will not save any stats as long as the charger is plugged in.

3. Don't use your device during idle mode, otherwise stats are getting corrupt again.
[Android General] charlesrobin:
Thank you.. I'll post the dump file tomorrow morning :svetius:
[Android General] himanagendra:
[MENTION=5867207]v7[/MENTION] What about the white list in aggressive mode of greenify
[Android General] shloho:
Losing battery life quickly

Hi. Can you please check my bbs. Greatly appreciated.
[Android General] charlesrobin:
Here's the dump file :)

please have a look at it
[Android General] m0han:
guys, new rom, new place. please take a look: http://pastebin.com/0xPvg57g. any help would be nice. thanks.
[Android General] Portgas D. Ace:
BetterBatteryStats version: 2.1.0.0 -> update to 2.2.0.0B6 (available in the BBS thread here on XDA)

The stats don't show any WiFi or mobile network connection. Did you had WiFi and mobile network enabled? If yes, try to update BBS, clear its cache and repeat the idle dump procedure.

15510000.mdmpm_pdata (): 5 m 50 s Cnt:(c/wc/ec)639/16/0 1.1% -> this seems to be a random wakelock (see this thread for a workaround; first post when you follow the link and the following answers on the same page)

Alarms: 61, Intent: com.whatsapp.messaging.MessageService.CLIENT_PINGER_ACTION -> I have limited this one to 600 on my phone without any issue

Alarms: 1, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH -> limit this one to 9999999 (max. possible value)

Alarms: 7, Intent: com.samsung.android.email.sync/.exchange.MailboxAlarmReceiver -> related to Samsung Mail, you can limit it to 7200 if you are okay with receiving push notifications from emails every two hours

Since 7 h 12 m 22 s

Wifi On (): 2 h 57 m 12 s 41.0%

Wifi Running (): 2 h 57 m 12 s 41.0% -> seems that your WiFi hasn't been connected the whole time, WiFi scanning and trying to connect drains battery

Rest looks good, alarms are under control. By the way, kernel wakelocks are missing. Check the BBS thread for information and a possible solution.

Level lost [%]: Bat.: -10%(100% to 90%) [1.4%/h]

That's a tough one. You lost 10% of battery despite the fact that alarms and wakelocks are under control. Maybe try a different kernel for your device if one is available.

Where WiFi and mobile data enabled during idle period? The stats don't show any information about this.
[Android General] molepole:
Hi all. Just want to know if I've done the AppOpsXposed part correctly. I have disabled the Keep Awake in both Google Play Services and Google Services framework however I can't see a "OP_ALARM_WAKEUP/Wake Up" option in any. I have also checked the FIX OP_WAKE_LOCK.

Also I have just noticed my phone has been awake even when screen is off. Never used to happen before. I have a logfile but it's only from boot which is an hour (restarted phone after tweaking things here and there) and I would think that would suffice to see what is keeping it awake?

Kind Regards
[Android General] m0han:
left mobile data enabled through the idle period. received whatsapp messages, as can be seen from the screenshot.
[Android General] Portgas D. Ace:
The strange thing is that your device lost a big amount of battery right at the beginning of the idle period. Did you charge it to 100% and immediately disconnected the charger?

com.disa (): Wakeups: 25 (25.9 / h)

10057 (Wifi) (com.snapchat.android.Snapchat): 15.0 MBytes 93.3%

Both might have been keeping your device awaken, but as you have used your device for nearly 16 minutes it is difficult to say if the two services have been running in idle time or while you used the device. I would suggest to produce a proper idle dump over night.
[Android General] m0han:
yes. disconnected soon after getting an alert regarding attaining full charge. will see if a custom kernel fares better. cell reception is kinda poor in this area, i have to say.
[Android General] Portgas D. Ace:
Well, I would advise to let the device connected to the charger for about ten more minutes after the full charge signal. The battery percentage and also the full charge signal may be inaccurate, so your device will lose battery quite rapidly to catch up with the real charge, resulting in the rapid "drain".

According to your screenshot, cell signal was sufficient during the idle time, maybe some random drain?
[Android General] m0han:
yeah, i'd read so somewhere earlier. not sure if this is entirely relevant, but, i'd done a reboot at 99%. :D
[Android General] Portgas D. Ace:
It is indeed relevant as reboots tend to drain some percent of battery and the charge percentage might become inaccurate due to this :p
[Android General] samcarl:
PowerNap is available for download in xposed repository now :victory:
[Android General] Diamorphoses:
And XDA Labs :):victory:
[Android General] rdoane:
Any findings to report back now that you've tried limiting the *launch* wakelock? Thanks in advance!
[Android General] m0han:
i tried this out. posting some screenshots so others also could/might benefit. not sure what happens 'after cutting off and later re-attaching'. any ideas? :D thanks a ton. have a nice day.
[Android General] m0han:
same place, same rom,

new (custom) kernel

. looks better. any further help would be nice. thanks. please take a look: http://pastebin.com/sLUGH2f6
[Android General] Portgas D. Ace:
I have limited *launch* to 86400 (allowed to run once per day) and did not find any issue. But to be honest, it seems that idle battery drain hasn't been improved, still some drain. I had tweaked my setup a little bit more (greenified apps such as FB Lite and some others), let's see how things evolve in the next days. If I'll see any further improvements, I will report back. But don't expect the report this week, I am quite busy with RL at least until sunday.

MediaScannerService (Media): 2 m 45 s Count:1 0.8% -> this seems to be the only issue I can see, the rest is under control

I was never able to achieve the same results I had on my LG L90 with Android KitKat, where I literally got 0.0% per hour idle drain over periods of 10 hours or more (WiFi running and connected all the time, GPS set to Device Only). Even after updating the L90 to Lollipop, idle drain increases up to 0.3% per hour. Same for my OPX: on Lollipop and Marshmallow, the best results (custom ROMs, custom kernels) have been around 0.2% per hour. The drain decreases when I turn off WiFi, which is strange, as a stable WiFi connection is known to drain less battery than a mobile network connection. Still a long way for Android to go, I guess.
[Android General] m0han:
what can i do to 'control the only issue'?
[Android General] Portgas D. Ace:
Hmm, there is an Xposed module (Xposed Media Scanner Optimizer) that let's you control when a media scan is allowed to run.

The only downside I found: MTP isn't working when this module is enabled on Marshmallow (maybe even on Lollipop). Disabling it in Xposed and rebooting your device fixed it. So you can't use both XMSO and MTP at the same time :p
[Android General] ProudRed:
Hi, what could be the possible reason behind drop in battery all of a sudden ? Charged my battery full.. Used it for a while and for quite long it stayed at 100%, then after putting it in my pocket and taking it out after 10-15 mins I found battery to be at 94%. Happening quite often these days after full charge and only between 90-100.
[Android General] Portgas D. Ace:
Have a look at this thread.
[Android General] drstereos:
hi I have a cell battery drain even if a signal is good it happen to me all the time any idea??
[Android General] TNSMANI:
Install BBS and post an idle dump (read FAQ in post#6).

---------- Post added at 02:15 PM ---------- Previous post was at 02:11 PM ----------

After reattaching the wake-up path, 'weather content provider' will once again wake-up cLock.
[Android General] ElementRn:
Excuse me please for posting an off topic question, but I think there is a good chance, that somebody can answer my question over here.

Does Greenifys GCM push wakeup work with the alternative Twitter client Fenix?
[Android General] gaspariperez:
I'm still getting freezes when my clock alarm goes off (Google Clock), the device stays off (the alarm still playing) and I have to force reboot. This does not happen with the stock clock app (samsung 4.4.4, i9305)I have followed the guide step by step. Anyone else having this problem with Google Clock?
[Android General] deepu458:
Hi @v7

thx for ur support in this thread. I have a question i see a lot of wakelocks coming from ContextManager wakelock and i saw ur thoughts on blocking this wakelock. My question is actually these are coming from Google App, is there any way i can restrict them not to initiate from this app i mean can we some how block this app to reduce these kind of wakelocks as when i try to greenify it's not even possible.

(ContextManagerWakeLock (com.google.android.googlequicksearchbox.Google App): 31 m 58 s Count:3 9.0% for 3 hours.
[Android General] methoddon1:
what's up everyone... i got a question maybe someone can answer. got Galaxy S6 Edge+ running on Marshmallow. got twrp, rooted, installed xposed framework.... no problem, - time for a full set up. got amplify, power nap and 10 other modules including Greenify (pro) but the strangest thing is the fact that when I hit Hybernate shortcut on home screen, it starts opening one app after another with the window from Settings/Applications etc... just like it does if your not rooted. I'm not new to greenify or any other module so plz no questions like - did you set it to root in Greenify settings... all done as its been done for years. so the question is, - what the hell could that be about?

---------- Post added at 10:48 PM ---------- Previous post was at 10:41 PM ----------

in Settings (for xposed) I checked to break the link between apps, and it used to be unless you start an app it will not start itself up when the screen is On, now, - as soon as I turn the screen On, - Facebook, Browser, Keep start themselves up.

edit : never mind... it just stopped. now it's exactly as it used to. I switched to Boost then back to Root and it's gone.
[Android General] rdoane:
After following the instructions in the OP, monitoring for a few days, and tweaking a few things, I think I've finally finished my setup.

However it would be much appreciated if someone could take a look over my attached log to see if I've missed anything.

Thanks in advance for the help and for all the information in this thread.
[Android General] Portgas D. Ace:
A few thoughts from my side:

Since 1 h 1 m 12 s ->It would be better if you can upload a idle dump file of a time interval of 5 hours or more. 1 h is okay, but the more hours in idle drain the more potential battery drainers can be identified.

Level lost [%]: Bat.: 0%(100% to 100%) [0.0%/h] -> excellent, but as stated before, 5 h or more would be better to see if this awesome per hour drain will still persist

Alarms: 1, Intent: com.google.android.location.reporting.ACTION_UPDATE_WORLD -> this one can be limited with Amplify to 9999999

Screen On (): 1 s 0.1% -> how in the world did you manage to open BBS and save the dump file within 1 second? :eek: :laugh:

Rest of your log file looks good.
[Android General] drstereos:
check this out!!
[Android General] Portgas D. Ace:
Since 45 s

Level lost [%]: Bat.: 0%(100% to 100%) [0.0%/h]

Brilliant, that's the best idle drain I have ever seen ;)

Your issue ist this line in your log:

Statistic Type: Unplugged to Screen Off

Set the Statistic Type within BBS to "Unplugged to Current" and try again.
[Android General] Portgas D. Ace:
Screen On (): 21 m 52 s 4.6%

That's not an idle dump file. Refer to post #6 about how to report proper log files.

Don't use your device during idle time or the stats will get corrupted.

Alarms: 6, Intent: ALARM_WAKEUP471915918 -> this one can be tamed by using Amplify's regex function, described at the end of post #4.
[Android General] drstereos:
OK thanks..
[Android General] rdoane:
I knew I got the log generated pretty quickly, not sure 1 seconds is accurate though :laugh:

I will leave the device idle tonight and then pull a log.

Thanks again for the review and help!
[Android General] samcarl:
Could you take a look at this idle dump and advice?
[Android General] Portgas D. Ace:
bam_dmux_wakelock (): 10 m 14 s Cnt:(c/wc/ec)273/8/0 2.2% -> this kernel wakelock is related to mobile data, you can try a different kernel and check if this will tame this wakelock

Alarms: 1, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH -> limit this one to 9999999

Rest looks good so far.
[Android General] belloni:
Just had a look at BBS graphs and see Bluetooth awake but I have it off and always have done?! Scanning is off also...see image.

http://imgur.com/mK62qVS
[Android General] charlesrobin:
I cut off wake up path but when I connect to wifi some wakelocks shows up again in greenify.. plz see attachment
[Android General] drstereos:
cell standby eating my battery even if time without signal is 0%!!!any help??
[Android General] bravonova:
After all it is a mobile device, so cell standby will use battery ofcourse.... Without signal 0% means ur device didn't lose network signal at all...
[Android General] Portgas D. Ace:
Switch to 2G if your screen is off. A stable 2G connection will drain less battery than a 3G connection with only moderate signal.
[Android General] bravonova:
Yeah....switching to 2g connection when 3g not needed will drain less battery
[Android General] drstereos:
what about the dump file I post everything else is OK or I have to change anything thanks..

---------- Post added at 08:09 AM ---------- Previous post was at 08:04 AM ----------

how to do that I'm on 4g as a recommended network type I'm not using a lot should I change the network type to 2g from settings thanks...
[Android General] Portgas D. Ace:
You have lots of *sync* wakelocks, nevertheless the total time of those wakelocks is negligible. You could try to disable all auto-sync and check if battery drain decreases.

*sync*/com.dottedcircle.paperboy.datasync.provider/com.dottedcircle.paperboy.datasync/Story Sync (com.dottedcircle.paperboy.Paperboy): 49 s Count:2 0.2%

*sync*/com.google.android.apps.plus.content.EsProvider/com.google/2071ff347b697dd6ba4f6d55796792ba@gmail.com (com.google.android.apps.plus.Google+): 9 s Count:2 0.0%

*sync*/gmail-ls/com.google/2071ff347b697dd6ba4f6d55796792ba@gmail.com (com.google.android.gm.Gmail): 7 s Count:1 0.0%

*sync*/com.google.android.apps.bigtop.provider.bigtopprovider/com.google/2071ff347b697dd6ba4f6d55796792ba@gmail.com (com.google.android.apps.inbox.Inbox): 7 s Count:1 0.0%

*sync*/com.soundcloud.android.provider.ScContentProvider/com.soundcloud.android.account/dr_stereos (com.soundcloud.android.SoundCloud): 2 s Count:1 0.0%

*sync*/com.google.android.apps.docs.editors.kix/com.google/2071ff347b697dd6ba4f6d55796792ba@gmail.com (com.google.android.apps.docs.editors.docs.Docs): 1 s Count:1 0.0%

*sync*/com.google.android.apps.docs.editors.punch/com.google/2071ff347b697dd6ba4f6d55796792ba@gmail.com (com.google.android.apps.docs.editors.slides.Slides): 1 s Count:2 0.0%

*sync*/com.google.android.gms.fitness/com.google/2071ff347b697dd6ba4f6d55796792ba@gmail.com (Google Play services): 1 s Count:6 0.0%

*sync*/com.google.android.apps.docs.editors.punch/com.google/5fc0405c06912101401cf57ac4d2f6ec@gmail.com (com.google.android.apps.docs.editors.slides.Slides): 1 s Count:1 0.0%

*sync*/com.google.android.apps.docs.editors.trix/com.google/2071ff347b697dd6ba4f6d55796792ba@gmail.com (com.google.android.apps.docs.editors.sheets.Sheets): 1 s Count:2 0.0%

*sync*/com.google.android.apps.docs.editors.kix/com.google/5fc0405c06912101401cf57ac4d2f6ec@gmail.com (com.google.android.apps.docs.editors.docs.Docs): 1 s Count:2 0.0%

Use something like Intelli3G to automatically switch to 2G when screen is off.
[Android General] bravonova:
If you don't use 4g then switch to 2g mode..... 4g mode drain more battery than 2g..... when u need 4g u can switch to it.... otherwise better stay on 2g.....

dump stats has no issues.... just switch from 4g to 2g

---------- Post added at 07:19 AM ---------- Previous post was at 07:14 AM ----------

I don't think that "sync enabled" will cause much draining
[Android General] ROKO__:
good article, i would try that tips.
[Android General] rdoane:
Charged up to 100% and took it off the charger before I went to sleep. Got between 0.4% and 0.5% battery drain per hour

.

The only change since my last log is that I added Hangouts, Inbox, and Nine to the white list in Power Nap because I was getting delayed notifications.

I'm attaching my log in case there is something additional I can edit.

But I have to say I am nothing short of stunned with the battery life. Especially since there have been zero compromises with sync or location history.
[Android General] Portgas D. Ace:
Alarms: 9, Intent: com.android.providers.calendar.intent.CalendarProvider2 -> This one can be tamed by limiting it to 86400 and using some alternative calendar notifier like Calendar Events Notifier

The rest looks good, some kernel wakelocks are shown. Maybe a different custom kernel might help, but this is just a thought. Marshmallow ROMs seem to drain more battery (despite the "cool and awesome" doze mode) so 0.5% per hour is okay.
[Android General] rdoane:
Thanks for the quick feedback. Playing with Calendar Events Notifier now. This app might also fix another problem I'm having with not getting notifications for shared calendars.

Any suggestions on kernels? I'm running ElementalX currently, should I give franco a shot?
[Android General] jijishthomas:
Good work
[Android General] Rakuu:
I guess this is an appropriate place to ask, is there an app to block wifi and mobile data while the screen is off/sleeping? I know deep sleep battery saver is an option but it looks abandoned, I dont have too much of a problem with it it just acts a little iffy for me.
[Android General] samcarl:
Try NetGuard

http://xdaforums.com/android/apps-games/app-netguard-root-firewall-t3233012
[Android General] rdoane:
If you are looking for a xposed module to do this, I use Smart Network: http://xdaforums.com/xposed/modules/mod-t2908637

I also have Smart Network set to switch to 3g when connected to my home wi-fi network as recommended by post #2 in this thread: http://xdaforums.com/showpost.php?p=60425086&postcount=2

GravityBox also has this functionality (Phone tweaks->Smart radio): http://xdaforums.com/xposed/modules/app-gravitybox-v6-0-0-tweak-box-android-t3251148
[Android General] Rakuu:
Thanks, smart network is great! [MENTION=3562083]wanam[/MENTION] strikes again
[Android General] Portgas D. Ace:
Franco kernel is always am option, I would suggest a kernel with zzmove governor like Boeffla kernel.
[Android General] smatak:
@v7

Please can you check my dump? I noticed no deep sleep. It drains my battery very fast :(

https://dl.dropboxusercontent.com/u/42719441/BetterBatteryStats-2016-04-22_211413003.txt

I have only greenify with agresive doze instaled. No other app & no xposed.
[Android General] jamses:
Just wanted to say thanks for a great guide:)
[Android General] rdoane:
I appreciate it. After looking around I don't see many (if any) kernels where the zzmoove governor is available for the Nexus 6P. Is there a similar governor you'd recommend? I'm currently running Heimdall. Thanks again!
[Android General] MrHellRider:
Guys the cell standby uses a lot of battery any way to solve this

problem
[Android General] neonkat:
rom,android version?

try out the stuffs here and check battery for 2-3 cycles,you willl see a difference!