yashsingh1/xdaforums huggingface dataset:
[Android General] Cobalt765:
Recent I put CM11 on my Samsung Galaxy SII LTE (GT-i9210) as I needed Bluetooth BLE 4.0 supported for a new running watch. Previously I was running Swedish Stock JB 4.1.

The CM11 seems to be chewing the battery. Out of the box it went through 50% on the first night. I've now implemented the changes on this thread, which I had also done on my previous ROM and battery is a lot better however still 1.9% per hour overnight which I think is too much.

Looking at Settings > battery the main things are Cell standby 33% and Phone idle 25%. These things are obviously needed to run but should they need that much resource? Is it a ROM issue, kernel issue or something else?

I've got the Alarms down to a minimal level as with Partial wakelocks so overall I'm happy with whats showing in BBS however it still seems to be sucking some battery.

Is there anything in the dump that I've missed?
[Android General] Portgas D. Ace:
The things shown in the log file do not correspond to the comparable high drain. Something else is going on here which we need to target. Based on the fact that the HTC 10 is a rather newer device, we might guess that it is not a broken/aged battery. You do have a rooted device, do you? I am asking because the network section in the BBS log file says "root required".
[Android General] Spegeli:
hi and thx for you reply.

yes my device is rooted with magisk and xposed is installed too.

i attached the latest log from the last night in idle, but maybe is my battery aged because when i know it right i got the same battery drain even in airplane mode.

maybe i will try tomorrow night a idle test with switched off mobile phone.
[Android General] mzj4213:
Here is my BBS log. After 11hrs of standby with Wifi on, it shows drainage of 6.5% per hour. I followed this guide and can anything be done to further decrease standby battery drain?
[Android General] Portgas D. Ace:
WeChat seems to drain quite some battery.

Also, those alarms have a very high number:

Alarms: 354, Intent: WifiConnectivityManager Restart Scan

Alarms: 115, Intent: *job.delay*

Alarms: 459, Intent: *job.deadline*

You might want to search for those elements to find out if they are also responsible for the high idle drain.

Alarms: 2, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH

This one can be limited with Amplify to 9999999.

"l2_hsic" (): 2 h 47 m 48 s Cnt:(c/wc/ec)14630/1093/14630 25.2%

"alarm_rtc" (): 55 m 31 s Cnt:(c/wc/ec)9051/7575/235 8.3%

Those kernel wakelocks might also be a reason, search for more details about those and you might find a solution. Flashing a custom kernel might help here.
[Android General] WuNgUn:
Lost search function on Tapatalk...

Was wondering about which governor give best battery performance...
[Android General] strongst:
Use a browser instead https://androidmodguide.blogspot.com/p/blog-page.html

Conservative, but depends on kernel...
[Android General] maor23:
There is a article for nougat maybe?
[Android General] strongst:
Please use search function https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884/post74282235 question comes up every few days.
[Android General] suvishalreddy9:
Better battery stats & battery doctor ----- amplify settings help

Should I share my Betterbatterystats dump file and battery doctor results ( if yes ,1cycle is sufficient or multiple ) i am here to get perfect amplify settings for my oneplus3 ? @v7
[Android General] tanapoom1234:
Does anyone know what the alarm com.google.android.location.reporting.service.action.ULR_BAROMETER_READ_ALARM is and is it safe to block?
[Android General] suvishalreddy9:
Better battery stats & battery doctor reports

Betterbatterstats & wakelock doctor (screenshots) 100%-13% usage cycle [MENTION=5867207]v7[/MENTION] please suggest amplify settings thanks in advance :)

https://drive.google.com/folderview?id=0B49NFVCOYgDPOENFR2RKdmFxc00
[Android General] strongst:
Sounds it is from your air pressure sensor. If you don't need it, you can block it.
[Android General] tanapoom1234:
OK thanks. Its firing a huge amount of alarms, but I'm not sure if it's going to break Google maps if I block it.
[Android General] strongst:
Don't think so why Google maps needs that sensor. But block it and try.
[Android General] Zafrkant:
What is effective way to block sensors?

I've already tried Sensor Disabler but it's not stable on Nougat.
[Android General] strongst:
On some roms it's built in(RR nougat) to disable sensors.
[Android General] Zafrkant:
Thanks for fast reply.

I'm using Xiaomi Mi 5s, Resurrection Remix 5.8.5 and I enabled 'Sensor block per-package' but I'm not sure how it really working, because I can't find instructions or options to manually disable specific sensors. Can you please explain further?
[Android General] strongst:
Don't know how to. But did you simply try to block that specific wakelock?
[Android General] Zafrkant:
Yes but I still have issues with accelerometer sensor battery drain for apps like WhatsApp.
[Android General] suvishalreddy9:
1) Can anyone please help me on where can i improve on with regards to my battery?

Please check the link for dump text files ... (2cycles)

https://drive.google.com/folderview?id=0B49NFVCOYgDPOENFR2RKdmFxc00

2)In appOpsXposed i can't find

Navigate to Settings->Hacks->Check FIX OP_WAKE_LOCK

Disable the following Permissions of Google Play Services using AppOps

3)I can't find clock in endurance mode of power nap if I turn on power nap

When my alarm goes on screen becomes non -responsive

Thanks
[Android General] gothicVI:
If you're using xposed try amplify.

Gesendet von meinem Moto G 2014 LTE mit Tapatalk
[Android General] suvishalreddy9:
appOpsXposed crashes

i activated and rebooted appOpsXposed 1.30.3 latest available version it keeps crashing and dosent open (device oneplus 3, os-7.1.2)

anyone help ?
[Android General] Zafrkant:
I'm using Amplify but I only have wakelocks for motion and proximity sensors. Accelerometer is one that cause drain.

For RR 5.8.5 users here it's changelog for sensor block option.

https://github.com/ResurrectionRemi...mmit/a8e139f317099d6712efb14bac866fdd77d6c5a2
[Android General] zputnyq:
If I'm not mistaken appOps doesn't support nougat. Its support only till MM.
[Android General] Bewildered Wolf:
Use an app called appops permissions manager. Available on playstore.
[Android General] priandikawr:
In the appops permission manager (from playstore) we just deny this permission right?
[Android General] suvishalreddy9:
okay
[Android General] suvishalreddy9:
Perfect dump file 8-hrs ideal drain (100-84%)

0) all cores are enabled and checked dumpfile for alarm and kernel

1)I only used greenify enable with root+boost mode (xposed) no other battery saving app

Aggressive Dose (experimental) was turned on!! Should it be on or off?

2)Charged to full then unplugged and left it alone for 8hrs

1st 4-hrs WiFi,LTE are on next 4hrs only LTE

--I got ideal drain of 1.9%

3).1) how to recreate the problem - turn on power nap then set a alarm and turn screen of when alarm rings phone dosent turn on then i have to hard reboot it

power nap is causing major issue when i turn endunrace mode on and later when my alarm fires my screen dose'nt turn on phone becomes non-responsive i even tried whitelisting all apps

4)I am planning to flash new francokernel for 1+3 with it to test battery life on it ? is it good idea(its the most popular kernel avilable) or bad ? should i flash or not!!

5)I have xposed(amplify) & magisk activated please suggest best settings suitable [MENTION=5867207]v7[/MENTION] or anyone

thanks in advance
[Android General] Portgas D. Ace:
Don't use Power Nap. It causes so much issues.

Franco kernel is good, no worry.

Another personal recommendation: don't use the "GCM push for greenified apps" option, it causes much battery drain if Greenify keeps waking up apps frequently. Only Greenify apps of which you don't necessarily need to have instant notifications and keep the rest as it is.

If you have followed those recommendations, please provide another idle log file.
[Android General] patrickdrd:
what issues? care to elaborate?

also, it's the first time I'm reading this, you might have a point, but if we do that,

maybe greenify becomes of no use then, right?

I think greenify was introduced in order to hibernate apps like facebook, etc,

if we move facebook out of the equation, what's the point then?
[Android General] suvishalreddy9:
1) how to recreate the problem - turn on power nap then set a alarm and turn screen off when alarm rings phone's screen doesn't turn on or respond then i have to hard reboot it to make it work again so I uninstalled powernap and installed naptime

POWER NAP problem [MENTION=6532336]patrickdrd[/MENTION]
[Android General] patrickdrd:
doesn't happen to me, haven't encountered any such problem,

maybe it has to do with device/rom etc
[Android General] suvishalreddy9:
May be

Causing alarm screen issue And its no longer supported by dev so I just quit on it I tried multiple times... It didn't work
[Android General] patrickdrd:
I know, there are many things that work for others and not for us:

e.g. amplify is working perfectly fine on my both devices, but I cannot see the alarms/wakelocks in either!

go figure...
[Android General] DB126:
Works fine on Android 7.12 (AospExtended) with official framework 88.1 and SuperSU 2.82 SR5. Not a Nougat incompatibility.
[Android General] jelive:
Have same Appopsx FC...Htc u11 w 7.1 Leedroud rom, magisk, 88.1 framework...any ideas on cause or fix?
[Android General] suvishalreddy9:
Its last update is way back in 2016

It's not perfectly compatible with android 7.x.x I guess
[Android General] Dynaguy:
is it safe to limit this one?
[Android General] Portgas D. Ace:
For example the freeze issues which some users have. Power Nap is a little bit overkill, as it blocks also important services from running while your screen is off. This and the fact that it isn't actively being developed anymore makes it rather useless for newer Android versions.

Greenify can indeed save you lot of battery - if you hibernate things carefully. No need hibernate Whatsapp and then enabling the "allow GCM push" if you use Whatsapp every five minutes. The "allow GCM push" option should only be activated when you only hibernate apps of which you don't regularly receive push notifications from (or on which push notifications you don't rely heavily). This way you avoid the constant wake-hibernate (and thus battery draining) cycle. But this is only my opinion.
[Android General] chandan kumar_92:
No
[Android General] Grv0541:
I'm using S7 edge

Superman Rom + Notorious kernel device is About 8 months Old taking Care Of My Battery By not charging it To 100% and Battery Health Checked Via Accubattery was 92*%

Apr Is Fine But the Standby Drain Is the Problem , every Day I loose about 12-14% battery and From past 3-4 days i used better battery stats and Observed But I couldn't Fix it Anyone can Help Me?

Here is My Stats
[Android General] suvishalreddy9:
dump with changed kernel and few tweaks (10hrs ideal) from ~95%

dump with changed kernel and few tweaks (10hrs ideal from 95%)

settings & tweaks used to generate this dump file

1)Turned off GCM push for greenified apps

2)flashed francokernel and using few francokernel app tweaks (screenshots posted) I did an overkill with no of screenshots sorry

-underclocked the cpu by 25% (I generally don't play games)

-underclocked the Gpu I put the screenshot of the interface

3)Installed naptime and activated it with re-apply doze after wakeups (with default advance settings)

4)installed SERVICELY but still dont know how to use it will try in future

5)under battery optimization -I kept greenify,naptime,BBS,amplify,servicely to NOT OPTIMISED i felt it will hamper apps potential to save battery (SS attached) Should i optimise them also

6) Included wakelockdoctor screenshots and all extra info available it easy I renamed each screenshot to make it easier to read

I hope it's not annoying

future changes - shallow hibernation (experimental) - Enabled & I planned to use these Amplify app settings from the thread as they say it is still relevant for nougat https://xdaforums.com/sho...17&postcount=4

7)would be happy to add your valuable suggestions and any other tweaks

I want to improve ideal drain this week then active drain to to best settings possible with any major loss in performance @v7

All healthy suggestions are welcomed from everyone
[Android General] DB126:
Please don't cross post in multiple threads (with far too many screenshots): https://xdaforums.com/showthread.php?t=1179809&p=74358001
[Android General] suvishalreddy9:
Understood sorry about that!!
[Android General] Generic Asian Guy:
With the help of this thread (and many others), I've been able to get these usage stats (usage is from 80%), thanks for everyone's contributions
[Android General] abraden80:
Share your setup?
[Android General] State.of.mind:
I'm on Nougat, and recently I feel like Greenify lags my device. Anyone else experiencing this?
[Android General] patrickdrd:
I think it's the opposite for me, using Greenify on my low-end 2nd phone (moto e 1st gen) has helped me gain around 100mb of free memory

(I had approximately 150mb and now I'm off to 250+mb available, so I think it's working better than without)
[Android General] aser_elhbayeb:
5hrs SOT on non-Samsung Battery
[Android General] Generic Asian Guy:
I've pretty much done everything in this thread except for powernap. I have the beta version of greenify and I have the donation package along with Xposed module. I've enabled pretty much every setting in greenify except for shallow hibernation and reveal hidden sync. I've also flashed govtuner and set it to the battery profile. Lastly, I also use L Speed with a lot of fairly battery oriented settings. I'll try to post my l speed backup file sometime
[Android General] anon1135:
does powernap conflict with other apps even though it's suggested in most guides?
[Android General] Craz Basics:
1+

I think it breaks notifications for some apps, i.e snapchat and hangouts. Even when whitlisted
[Android General] blas4me:
Using Battery Guru, for SnapDragon chipset, and Xposed Greenify I'm getting some pretty good battery life. I took my phone off the charger yesterday at 7am, and realized this morning that haven't charged. So after 26h of usage 1h of that playing music, and youtube videos, with some light texting and phone calls, I still have a decent amount of life.

Link to some apps

https://mega.nz/#F!b9sWDBwR!LjhrhZgYXB-BNHUWE11tJw
[Android General] State.of.mind:
What exactly are the apps
[Android General] blas4me:
The apps are labeled, Snapdragon. and Magisk, has to be flashed in recovery to use Greenify. The rest of the stuff in the file share are from one of my post to un-bricking the LG-TP260.
[Android General] merbiyatch:
will naptime's aggressive doze cause problems with grenify's aggressive doze?
[Android General] DB126:
Choose one or the other.
[Android General] merbiyatch:
Can i use naptime's agressive doze with reapply doze after wakeups enabled with greenify's doze on the go mode enabled?
[Android General] DB126:
No need for multiple tools. Supposed benefits of aggressive doze are usually mitigated with a burst of 'catch-up' activity when the device wakes from its user induced comma. Doze on the go is most beneficial on Android 6.x ROMs; Nougat and above handle this internally. Using overlapping apps to turn the same knobs is just asking for trouble.
[Android General] jlb1959.01:
I have a question about mobile radio wake,,my vs985 on xdabbeb 3.1, no greenify,is getting 13-19% over night drain,I've wiped clean,re installed,clean install and this mobile radio is constant..no lg apps,only Google,as this ROM is stock version minus Verizon apps,Google apps.
[Android General] githyanki:
We can only help you locate the issue if you provide an BBS idle log. If you already know what the drain is, it will probably be best to ask in your devices forum, I'm sure someone there could tell you what to do to correct.
[Android General] jlb1959.01:
thanks,was worth a shot..thank u
[Android General] v7:
Was in a hurry.Sorry for the mistake.

Tapped from my furious dogo ;)
[Android General] ShadowAndroidFanatic:
RILJ0 would be the same as RILJ wakelock correct?
[Android General] v7:
Yes.

Tapped from my furious dogo ;)
[Android General] m0han:
[MENTION=5867207]vaisakh7[/MENTION], any advice?
[Android General] infectedorganism:
What does everyone use to control wifi? Do you turn if off manually when not in use, use an app to control it, or do you simply leave wifi always on even when not connected?
[Android General] v7:
[MENTION=4620757]m0han[/MENTION] It's a Power Nap bug,can't do anything about it.If you have some AOSP based roms for your device,you can try it.The bug appears on CM ROMs only.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4078274]infectedorganism[/MENTION] I have WiFi running all the time.

If you want an automated control over WiFi,can try apps like Leandroid.

Tapped from my furious dogo ;)
[Android General] petegunns01:
Tasker is probably the most common reply you'd hear from a rooted user. But I really like the paid app "Aauuto" on the Playstore. I like it because it doesn't require any background services for it to function, so you have minimal battery drain. Using this app in conjunction with the free "Secure Settings" app allow you to handle your Wi-Fi & data, and several other functions that do not require background services.
[Android General] v7:
[MENTION=4250471]RohinZaraki[/MENTION] What GAPPS package are you using?

Which version of GooglePlayServices do you have?

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4250471]RohinZaraki[/MENTION] Can you check if the "SystemUpdateService" is running now?Check in BBS.

If so,you can find a fix for SystemUpdateService in my Sig.Try that.It worked on older versions of GooglePlayServices.I'm not sure about the new ones.

The issue was fixed by Google few months ago.I don't know whats causing it again.

Tapped from my furious dogo ;)
[Android General] v7:
Do you have the Updateservice running now?

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4250471]RohinZaraki[/MENTION] Post me an in-use dump now.

Tapped from my furious dogo ;)
[Android General] marbertshere:
Nothing I can do about the mcs_heartbeat alarm right? Most of my wakeups are due to android system and Play Services. I'll post a dump asap.
[Android General] v7:
[MENTION=5736922]marbertshere[/MENTION] It affects GCM push.Limiting it may break notifications.

Tapped from my furious dogo ;)
[Android General] ovizii:
I've partially followed your guide since I do wish to use location services and like my Wi-Fi :)

I've restricted stuff with amplify but at higher frequencies than you recommend and I'm using power nap instead of stamina as in my experience it's more efficient and I can see in its stats what it blocked.

Would you mind having a quick look and tell me if there's anything blatantly obvious I need to fix to get even better battery time?

As is I'm very happy with the results.

Ah, damn, how do I upload a text file via tapatalk???
[Android General] v7:
[MENTION=3634831]ovizii[/MENTION] You cannot upload files other that Pictures using Tapatalk.Visit the forum via any browser.

Tapped from my furious dogo ;)
[Android General] speedy56:
Which of these can I limit?
[Android General] v7:
[MENTION=4658504]speedy56[/MENTION] Limit com.android.gms.analytics.ANALYTICS_DISPATCH to 9999999 seconds/highest possible.The rest of them are okay.6.4 alarms/hr is fine.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4250471]RohinZaraki[/MENTION] 6hrs of awake time with just 2 hours SOT is

really bad.Post an Idle dump later.Let's track down the culprit.

The good news is that the "SystemUpdateService" wakelock seems to have gone after implementing the fix.

Tapped from my furious dogo ;)
[Android General] ovizii:
THX, attaching my dump.

ALso, after reading it myself, I see this:

- what exactly is that, where do I get it and do I need it? :) is the Xposed module you will see in the attached screenshot not what this refers to (I know it says its for KitKat but I couldn't find any other?
[Android General] merbiyatch:
ok thanks for claifying ill just use greenify to stricly hibernate my apps and naptime for aggressive doze.
[Android General] Zafrkant:
Is it good to use on Greenify two options options since version 3.5 'ignore background-free' and 'ignore running state' and what effect it would have on battery consumption aspect, especially for the apps that I would launch often and I would like that they be Greenifyed?
[Android General] patrickdrd:
same wakelock for me at home (using lg g2 and wifi only) and

bam_dmux_wakelock on another phone on mobile data,

almost same apps installed on both phones,

well, I found that skype lite was the top draining app at work,

so I think that it's the same culprit for keeping my g2 alive too!
[Android General] DB126:
Ignore both these options except for problematic apps. Randomly enabling has no beneficial effects but may require extra work to restart the app. Not against these options; I have used both. Just not appropriate for most apps. On that note, there is little reason to add apps to Greenify in mass on Android 6+ as native doze tames most background activity. Creates addition work for your device and the potential for undesirable side effects.
[Android General] Aniruddh9:
Hi all,

First of all thank you for the great guide. :)

But i am experiencing around 9% of idle drain, with all the 3 apps installed and configured correctly.

I'm on invicta OS(latest build) with the vegito 7.5 kernel on my moto g4 plus.

Please find the betterbatterystats dump below and help me on this..
[Android General] Iliyena:
Do you get good SOT doing a performance test from a full charge? Battery might be giving out is my first thought.
[Android General] Aniruddh9:
No. SOT is not more then 3 to 4 hrs.
[Android General] strongst:
WhatsApp, naptime and Google quick search box(if u didn't search something) keeps your device awake. I don't know if you used them within the screen on time or not. If you didn't: they hold the device awake.
[Android General] Aniruddh9:
I use only whatsapp and naptime. I don't use search box.

I guess i don't need to use naptime because if it keeps the device awake, it may drain unnecessary battery.

Can you please suggest which wakelock/alarm i need to block for search box?
[Android General] strongst:
Just remove the search box if you have one
[Android General] jelive:
Have same problem with too many wakeups for search box but not using one...suggestions. Not much battery usage just wakeups.

Edit...read somewhere ok google keeps it standing by so disabled it...helps a little. Also added audioin to amplify. Initially it showed as blocking but has disappeared from list...?
[Android General] carlyl143:
here is mine

https://files.fm/u/d55mmmvv#/view/BetterBatteryStats-2017-11-09_125401289.txt
[Android General] hn40cn:
On possible workaround

Hello,

I've had the same issue as you do now, but here are my 2 cents:

(1) in terms of wlan_* related wakelocks, I used a specific kernel that blocks them out of the box (i.e. https://xdaforums.com/google-nexus-5/orig-development/kernel-t2697951) - so perhaps, you might want to look into such option by means of a custom kernel;

(2) regarding the bam_dmux_wakelock I did the following

activated "Data Saver" in Nougat Settings, and turned off immediate access to everything except the apps important to me personally (if you're on MM, then you might want to look into "Restrict Background Data" option)

turned on the Wi-Fi option of "Keep On During Sleep" to "Always" (as I have already dealt with wlan_* related wakelocks the way I mentioned above)

Give it a try, I suppose no harm can be done in the end. :fingers-crossed:
[Android General] op3n:
hi. i have a wakelock from kernel "suspend_backoff"; i use RR on a s4 samsung (jfltexx). I dont have apps installed or blabla; is a fresh install. i can do somthing to solve?