yashsingh1/xdaforums huggingface dataset:
[Android General] athibanvasanth:
Thanks for the thread. Very useful.

Have you tried Per App Hacking in Xposed ?

I use a feature called alarm multipliers in it to reduce apps with more frequent alarms.

Also Bootmanager to reduce apps which overload during boot time.
[Android General] v7:
[MENTION=6559378]athibanvasanth[/MENTION] No, I've not tried the module.I believe Amplify is the best in controlling alarms.

I've used MyAndroidTools instead of BootManager to block apps on Boot.

Tapped from my furious dogo ;)
[Android General] athibanvasanth:
Thanks for the reply. I have been using Greenify + Bootmanager + PerAppHacking so long. But your take on controlling alarms and wakelocks using Amplify/Powernap makes more sense :)

What do you think about apps like Leandroid and Intelli3G ? Is it good to automate radio networks to save battery or switch them manually everytime.
[Android General] v7:
[MENTION=6559378]athibanvasanth[/MENTION] It's your choice that you use network switchers.In my case I don't use those apps.I'm mostly on 2G and I don't use Mobile Data much.

In case if you use LTE/3G and you spend a lot of time on Voice Calls,you can definitely try Intelli3G to switch to 2G during Voice Calls.

Tapped from my furious dogo ;)
[Android General] ramiro14:
Hello vaisakh7, excellent guide, can you look my logcat please?.

if someone has problems with play music (when disconnecting headphones the music continues or in bluetooth), whitelist the app in powernap

Thanks
[Android General] Moon83:
Great guide, on question though. Can anything in your guide stop me from receiving MMS?
[Android General] v7:
[MENTION=6162566]ramiro14[/MENTION] You can disable sync for Google+ if you don't use it.I believe you've limited android.content.syncmanager.SYNC_ALARM to 7200 seconds. Rest is all good.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4537397]Moon83[/MENTION] No.Messaging services work without any hassle.

Tapped from my furious dogo ;)
[Android General] m0han:
last night i turned off data, turned on wi-fi, cleared all running apps from 'recents' panel, rebooted, charged the phone to 100%, unplugged, turned off ambient display and left the phone unattended through the night.

to my utter dismay, the display wouldn't turn on this morning the usual ways (double tap, slide right, power button...). so i pressed power button again, but, the phone rebooted. i can try again tonight, but, what if this keeps happening?

i know a dump is not useful in this case - it's been only about 2 hrs now. but, i'd grabbed a logcat, right after the reboot, through bbs. is it worth attaching here? your thoughts/advice/instructions, please.
[Android General] v7:
[MENTION=4620757]m0han[/MENTION] Are you sure you whitelisted AndroidSystem in Power Nap?Many users are experiencing this wakeup denial while using Power Nap.This happens rarely.

Power Nap is still WIP.You'll have to wait for a stable release for the fix.As for now keep using it as these denials are very rare.

For the dump,Keep your wifi on overnight and post a dump tomorrow.

Tapped from my furious dogo ;)
[Android General] m0han:
i'd done so the first time it was seen mentioned on xda, i believe. checked again. it is 4th listed under 'apps active in standby'. as for the dump, i'll post it asaic :D. :good:
[Android General] nuraH6:
I've noticed that disabling AnalyticsService in Facebook app messed up my news feed,

i.e. news feed only shows older posts - new post are not showing up
[Android General] v7:
[MENTION=6069601]nuraH6[/MENTION] I've disabled AnalyticsService and no such issues for me so far.Atleast for me.

Tapped from my furious dogo ;)
[Android General] danigraham:
I finally got a 10 hour log/dump. Disregard my alarm clock (morning routine app). Thanks!
[Android General] v7:
[MENTION=5321651]danigraham[/MENTION] 1.5%/hr is not good.The wakelocks are from the alarm clock.Can you post another dump of 4hrs+ without the alarm scheduled?

Tapped from my furious dogo ;)
[Android General] v7:
No need to limit it.
[Android General] samsald:
hello v7 will make you a question Is there any fix for a kernel wakelock called sec_battery_monitor as that in the last days wakelock me phone.

last night appeared increasingly were already 352 times and stayed awake my cell for 13 minutes in 8 hours

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] dizM0nkey:
Reboot

@v7,

Great guide! Just had a random reboot... Can you provide some guidance?

Thanks!

diznanl
[Android General] abhijeet715:
[MENTION=5867207]v7[/MENTION] here is a dump file in flight mode as you had asked me to do, but i could do it for 6 hours. Still lost 5% of juice :(

Edit:

I dont know what surprise my moms phone packs in, but i had charged her phone to 90-92% yesterday morning, and the wifi was on the whole time, same carrier as mine and her phone has no optimizations like xposed etc, and still it manages to save so much juice.

P.S it is an Alcatel GoPlay 7048X, running LP 5.0.2, and still has Deep Sleep :laugh:
[Android General] DB126:
Not by my observation. Any evidence to support this claim?
[Android General] v7:
Can you get me a dump with WiFi and mobile data disabled?

__

v7

XDA Assist
[Android General] v7:
Can't figure out what caused the reboot.

What modules do you use?

__

v7

XDA Assist
[Android General] v7:
Level lost [%]: Bat.: -5%(100% to 95%) [0.8%/h]

Still you have 0.8%/hr drain.

Maybe it's the kernel's fault or the battery is in bad condition.

__

v7

XDA Assist
[Android General] samsald:
Ok [MENTION=5867207]v7[/MENTION] i upload the dump in 9 hours in airplane mode thanks for your help

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] bjanha:
Um, do you have any evidence for that statement? I have been a regular gsam user for many years and never had any problems with it. According to the logs the usage is somewhere in the 0.0-0.1% area.
[Android General] :
As for being a resource hog, GSAM stays in memory all the time and eats more RAM than BBS which matters on low end / old devices.
[Android General] 64bitss:
v7 Thanks for creating a such a great guide!

With Greenify Alone, I get 0.6 - 0.7% battery drain per hour on idle. However when I added Amplify followed your guide on the wakelocks and alarms, I realised that the drain increased to 0.8 - 0.9%. (Based on BBS)

I lost about 4% Overnight with Amplify compared to 2% with just Greenify (Around 8 hours).

I haven't added PowerNap or AppOpsXposed and am not sure if I should since I generally stay away from Alpha status mods and the Battery is already good. (I'm using OPPO R7 PLUS 4100Mah, CM 13 9/9 Nightly Build, Pretty much all apps except whatsapp and sms have been either greenified or notifications blocked.)
[Android General] v7:
Read the FAQ and and post a dump.

__

v7

XDA Assist
[Android General] Andiii:
today i installed AppOps the first time, can anybody guide me how to set this:

Disable the following Permissions of Google Play Services using AppOps

OP_ALARM_WAKEUP/Wake Up

I could check the checkbox in settings/hacks but could not find a toggle for it in the menu of the refering app
[Android General] DB126:
Not really unless being mislead by snapshot data offered in most (cough) 'task managers' that have little regard for Android's dynamic resource management. That said, GSAM and BBS have much overlap with the later offering a richer feature set including the ability to easily dump past data for further analysis. Probably the better choice for most in this and similar 'extreme power...' threads. So why use both? Invariably GSAM exposes offenders that escaped immediate attention in BBS. I am sure they are there somewhere but I find GSAM's presentation more digestible for quick macro analysis. To each its own.
[Android General] gregferns:
Hi

Thanks for the reply... Even I had noticed that but didn't think much of it...

I'm using the jio LTE on my 1st SIM... I know that wifi was disconnected...

I'll try again tonight and make sure wifi is disconnected...

I'll let you know tomorrow morning with anther dump

Thanks

Greg.
[Android General] :
Whatsapp doesn't notify when sleeping

I have Amplify, Greenify and PowerNap installed.

Followed all limits in OP.

AS far as I know Ihaven't Amplified any wakeup or Alarm from Whatsapp.

Whatsapp NOT greenified, listed as exception in PowerNAp as well as in Greenify's Deep Hibernation (on the whitelist).

Still I get not notified when I get a message, just when I switch on screen and open Whatsapp it shows notifications.

Any clue what could be wrong?

Gescha.

Anyone knows what wakeup whatsap needs? Maybe some from google?
[Android General] rolarocka:
Did you restore WhatsApp? Happens to me too. A fix is to backup all chat's and uninstall and reinstall WhatsApp, at least works for me.

OnePlus One FTW
[Android General] mkr2511:
im getting wlan_wow_wl which doesnt let my phone go deep sleep most of the time.

tried optimizing google play services, several google play fixes, and did everything as said in op and in thread. people with same rom and kernel get 0.1% drain per hr but due to this wakelock, my phone drains more.

phone: oneplus 3

rom: bjb rr

kernel: boeffla beta 3
[Android General] v7:
It happens on some routers.Did you try any other Kernel?

__

v7

XDA Assist
[Android General] mkr2511:
yes tried arter, ex, boeffla.. all kernel. give same results
[Android General] v7:
Can't do anything about it.I believe the stock kernel behaves in the same manner too.

__

v7

XDA Assist
[Android General] mkr2511:
no fix for this? or whats the reason only few users get this wakelock?
[Android General] v7:
Might be related to the router.I can't reproduce the bug on my OP3.

__

v7

XDA Assist
[Android General] :
One difference between the two is that GSAM offers more active monitoring and has a service always running in the background while BBS is purely passive (unless you change the default settings). There are cases where you do not want to run any active monitoring tools (such as my old Nexus S with only 400 MBs usable) where even a few MBs of RAM matter ;)

I personally would stick to BBS and use GSAM only if the former does not satisfy my requirements.
[Android General] imusorka:
Setting up Greenify and Amplify (sans sync limits) as per OP causes delays to push notifications for WhatsApp, Skype, CloudMagic and Viber on OnePlus 3 running FreedomOS 1.4.2. PNF Root does not solve the issue. Please help.
[Android General] shloho:
Please check the bbs dump.

I'm losing fairly quickly. Ty!
[Android General] Portgas D. Ace:
BetterBatteryStats version: 2.1.0.0 -> update BBS to the latest version (v2.2.0.0 RC3, available in the BBS thread here on XDA) and post another idle log file

Screen On (): 3 m 19 s 0.8% -> try to minimize this time to less than a minute
[Android General] DB126:
This is a valid observation (I was aware) which highlights a key difference between these two tools. For most there is no benefit to the active monitoring GSAM enforces and is optional in BBS. I prefer the robust conglomeration of detail provided by both and am unconcerned with the minute resource drain imposed by GSAM. It's great to have choices! I also use WLD on occasion for a different perspective or to simply validate what the others are saying. When needed I go after root cause vs controlling symptoms...hence very few alarms/wakelocks limited in Amplify which often introduces unwanted side effects. Need more than BBS to effectively pull that off.
[Android General] githyanki:
. 8%/hr is not too bad, but there's hopefully some room for improvement.

You'll need to update bbs for better information, but the drain seems to be mostly radio related.
[Android General] shloho:
How do I minimize screen on. Is that the same as screen timeout? Thanks.
[Android General] XFi1382:
Hi,

First of all thanks for your active involvement. Really appreciate it!

Please see attached my log file. Seems like I have 3 big wakelocks on my Samsung S7 flat

mmc0_detect

wlan_rx

bbd_wake_lock

I tried removing the SD card and putting it back but it doesn't help.

I read the thread about the wlan rx, have tried an app to get IPv6 disabled but doesn't seem to work

No idea what the last one is.

Any idea how to fix this? :)

Thanks!
[Android General] TNSMANI:
Screen on is when you unlock the screen and start using the phone.

What Portgas meant was that as soon as you unlock the screen, you should go to BBS and save the dump. In your earlier dump, you were using the phone for a few minutes before saving the dump which skewed the readings.
[Android General] samsald:
hello people here have 2 dumps and kernel sec wakelock battery monitor still present someone could help me to eliminate this wakelock

http://cloud.tapatalk.com/s/57d80e66eac1d/BetterBatteryStats-2016-09-12_084633955.txt

http://cloud.tapatalk.com/s/57d80e7d92e13/BetterBatteryStats-2016-09-13_092235220.txt

Enviado desde mi SM-N900 mediante Tapatalk
[Android General] shloho:
Ty. I was first trying to figure out how to get a dump file.
[Android General] Jangoux:
com.whatsapp seems to be the main offender with 22,7 wake ups/hour by BetterBatteryStats numbers.

Algo com.google.android.gms is at 21,6 wake ups/hour.

Any alarms/wake locks I should take a closer look?
[Android General] imusorka:
Exactly my thoughts. Could you please share some insight into what really must be limited? I'm still trying to figure out what exactly breaks (delays to be more specific) push notifications and there are just too many processes to sift through and test. Please PM me if that is more convenient.
[Android General] DB126:
Every device, app suite and user experience is different. Standard guidance applies: Use BBS, GSAM or another tool to help identify items that seem to be triggering excessive drain. Then consult forums/threads such as this one for recommendations on curbing the 'bad' behavior. Focus on the heavy hitters that truly contribute to drain; high alarm and wakelock counts do not always equate to high power use or excessive wake time. Once you quell the worst actors decide if the results are good enough. Then get back to enjoying your device rather than trying to manage it.
[Android General] night02:
tried but doesn't work I meant the navigation bar which was reversed
[Android General] SixFourSix:
What you mean reversed? The buttons? That was built-in feature of DU. If you're on N ATM, there's a flashable zip that allows navbar tweaks. Of course you'd need root and stuff.
[Android General] night02:
Thnx man one more thing can you paste the link :)

Sorry for being off topic
[Android General] SixFourSix:
Off topic continues:

Note, this is only for Nexuses 5X, 6 and 6P.

http://xdaforums.com/nexus-6p/themes-apps/mod-navbar-tuner-android-nougat-t3446791/page17
[Android General] TotallyAnxious:
Delete.
[Android General] Oswald Boelcke:
Last night, I took a new idle log. WiFi and mobile data were both on. I followed your helpful recommendations and limited the alarms of K9-Mail to 30 mins. Additionally, I assigned a fixed IP (using only IP4; IP6 switched off in the router) to the device in the router settings.

I'm convinced there are other means to decrease battery drainage to nearly 0.0%/h; however, I'm curious if I still hold a "smartphone" in that case, probably I could then even turn it off totally during the night.

May I again kindly ask for your experience and advice how the attached log looks like this time, and if you have any other recommendations to reasonably decrease battery drainage.
[Android General] Portgas D. Ace:
"battery-monitor" (): 10 m 20 s Cnt:(c/wc/ec)626/0/627 2,0%

"mdm_hsic_pm0" (): 5 m 39 s Cnt:(c/wc/ec)636/0/0 1,1%

"wlan_rx_wake" (): 5 m 38 s Cnt:(c/wc/ec)648/0/648 1,1%

"alarm_rtc" (): 4 m 35 s Cnt:(c/wc/ec)583/0/4 0,9%

"PowerManagerService.WakeLocks" (): 3 m 12 s Cnt:(c/wc/ec)76/0/0 0,6%

"wlan_wd_wake" (): 2 m 56 s Cnt:(c/wc/ec)726/0/0 0,6%

"wlan_wake" (): 2 m 10 s Cnt:(c/wc/ec)1458/568/0 0,4%

You still have a lot of kernel-related wakelocks. Do you use a custom kernel and/or a kernel-tweaking app (Kernel Adiutor for example)?

I would recommend to flash a custom kernel, if one is available, or try to change your kernel's CPU governor.
[Android General] Oswald Boelcke:
Thanks for the really quick look into the log. Are these kernel wakelock really severe? I know all the tools we have (e.g. Greenify, Amplify, Power Nap etc.) can't do anything against kernel wakelocks.

As indicated in my signature block (ok, hidden:o) I'm on AGNi v4.5.5 (governor ZZMoove ZaneZ - optimised) with the really easy to use AGNi Control; howver, Kernel Adiutor (Payed Version) also available. I'm going to check AGNi Control respectively KA if I'm able to limit the kernel wakelocks.

Thanks again a lot!

P.S. Going to reply to your PM soon.
[Android General] Aakash Kaushal:
Can i safely disable these wakelocks?? and their package name is samsung gear...
[Android General] krasCGQ:
I limit ContextManagerWakeLock to it's maximum limit LMAO!

So far I've no problems on my ZenFone 2 by limiting this one. Have no idea about the another one...
[Android General] Aakash Kaushal:
Thanks for the info,one more thing i want to ask is that the location manager service has freaking number of wakelocks around 28,000...can i limit it?
[Android General] Portgas D. Ace:
Well, kernel wakelocks indicate that the CPU has been hold active for quite some time, thus draining some battery. If a walekock only shows several seconds, then this is normal, but when it appears several minutes, then this might result in battery drain.

I also used the zzmove governor while I was on Boeffla Kernel, if possible, try the battery yank profile (ybat).

Another thing is the "battery-monitor" (): 10 m 20 s Cntc/wc/ec)626/0/627 2,0%" kernel wakelock. It indicates that a process (maybe an app or widget) has been actively monitoring the battery stats for some time. Any such app (beside BBS) installed on your device?

By the way: how old is your battery?
[Android General] krasCGQ:
It's on OP already. Limit it to 41400 secs.
[Android General] Aakash Kaushal:
Oops i didnt see it!!! :p
[Android General] Oswald Boelcke:
Battery (original Samsung) about three months old (young). Switching to the yank profile today.

No other battery monitoring app beside BBS installed. Amplify and Power Nap aren't obviously greenified. I need to check if any other app is causing the mentioned kernel wakelock; need also to go through all my kernel settings themselves.

I'm going to report back; maybe it can be helpful for other guys, too.
[Android General] easyX:
Hello,

I don't know if this thread is the right place, but I found BBS via this thread :D I have a problem with massive battery drain in stand-by. I already changed my network provider, and it's not related to a place (e.g. at a basement with bad reception). I uploaded a BBS dump on Google Drive:

https://drive.google.com/file/d/0B-bKWOqLKHw9T1hicUVIU2FqMDQ/view (forget that part)

On 4G networks it's even worse, at the time of the dump, I was mostly connected to a WiFi network (as you can see in the dump). What worries me about the dump: it says 100% no or unknown signal / data connection. This has to be a statistical error, because I had signal all the time. (I was even phoning for 8 minutes). Maybe this is related because I use a so called "virtual mobile network", I see an R because I need national roaming to log into the network.

The weird thing: I had issues in stand-by with at least 3 out of 4 devices since early 2015. It's not related to any app, or something like that. After a fresh install, I have almost the same state - installing apps like WhatsApp, Facebook, Messenger & co doesn't really change a thing (maybe ~10%).

Most people with a OP3 can reach 2 or 3 days, when they don't use it much. At the end of that day, my battery was at 23% (around 2hrs Screen-on-Time - streaming in WiFi at night doesn't eat up too much).

As this happens on several phones, it must be related with my Google account. is this possible? That some Google services are not working properly?

Can I fix this without using Amplify & co? The OP3 already has problems with push notifications, I don't want to worsen that issue. As most people has the stock OS (OxygenOS) and no root, and get proper (or great) battery life, I think there must be a solution?

Thanks so far!

(If I am in the wrong thread, please remove it and PM me, which would be a better place. Thanks)
[Android General] Andiii:
this guide is for analysing Deep Sleep Drainer - Please read OP FAQ #6 and post an idle log.

Screen On (): 49 m 45 s 7.7% means that you used your phone....
[Android General] easyX:
I'm sorry, you're right.

I'll remove my above post. Here's a dump of my phone sleeping (screen on time less than 1 minute) on WiFi.

https://drive.google.com/open?id=0B-bKWOqLKHw9aXVxYUVrZHBkaWs
[Android General] Portgas D. Ace:
BetterBatteryStats version: 2.1.0.0 -> update BBS to the latest version (v2.2.0.0 RC3, can be found in the BBS thread here on XDA) and post another idle log file as "alarm" stats are incomplete

*job*/com.android.launcher3/.quickpage.weather.WeatherService (com.android.launcher3.OnePlus Launcher): 6 m 51 s Count:17 1.1% -> weather service of your launcher was active for some time, thus draining some battery

Beside this, FB Messenger and Instagram seem to be massive drainers, but just procede as above described and post another idle log file.

@v7: you should add the recommendation about updating BBS to the latest version to your guide (post #6 would suit the best, I guess)
[Android General] shloho:
Good morning. Updated bbs

Thanks for checking the dump file. Really appreciated. Unfortunately, it looks like I have 2 for some reason. Thanks!
[Android General] dizM0nkey:
Hey [MENTION]v7[/MENTION]

I'm not sure what you mean by modules... but I DID use some of the other battery saving options recommended here:

http://xdaforums.com/verizon-galaxy-s7/how-to/guide-fine-tuning-performance-battery-t3417804

I only used Amplify to limit the wakelocks, alarms, and services where it did not overlap with your guide, but I believe some of the other limits in the guide above are the culprit for my random reboots. I just reset to your Amplify settings and didn't get a reboot all night / day.

Attached is my BBS dump. I did get a fair amount of drain overnight; this is what's jumping out at me:

XPosed BATTERY_STATS module enabled: false
Wifi Running (): 9 h 16 m 16 s 100.0%

I have wifi off all night and Wifi Scanning and Bluetooth Scanning off

In BBS, I have BATTERY_STATS granted, DUMP granted, and SELinux: Permissive (under advanced settings > System app)

Thanks for looking.

diznanl
[Android General] noobSU:
Can you guys please check whats causing the drain? Its 9hrs standby dump with only 16mins screen on. 12 mins whatsapp call. Wifi was on all the time.http://cloud.tapatalk.com/s/57dc501b6c3bb/BetterBatteryStats-2016-09-16_220523601.txt
[Android General] Portgas D. Ace:
16 minutes screen-on is too long for proper analysis. Try to produce a proper idle log.
[Android General] marcdw:
BBS stats on Mahdi ROM. Trying to get comparable battery life to another copy of ROM sans GApps.

Besides one very active wakelock I'm sure others can be tamed.

Thanks.

https://www.dropbox.com/s/dngmertae27ez66/BetterBatteryStats-2016-09-16_124744926.txt?dl=0

LG G3 D851, Mahdi KitKat ROM, TeamBlackOut, Tapatalk 4.9.5
[Android General] noobSU:
My bad luck. & i was happy that i got a 9 hrs dump. But can u just take a look for a mint. Perhaps i can get some kinda help on this dump?

---------- Post added at 06:19 AM ---------- Previous post was at 06:17 AM ----------

Dude you are having G3 & still using kitkat?
[Android General] marcdw:
[MENTION=5109905]noobSU[/MENTION], LOL. Yeah. I multiboot so I run LP and MM also. But KitKat is so fun sometimes.

LG G3 D851, Mahdi KitKat ROM, TeamBlackOut, Tapatalk 4.9.5
[Android General] XpellCZ:
Hi guys, even though I added custom regex as mentioned in this thread, I still got one Context Manager Alarm Wakeup causing a lot of alarms so I limited it. Did I do the right thing? Will it negatively affect my phone?
[Android General] XpellCZ:
Should I also limit this wakelock or not? Is it the LocationManagerService mentioned in Alarms which should be allowed only every 10800 seconds?

EDIT:

I am sorry. I just found it in wakelock section as well.