yashsingh1/xdaforums huggingface dataset:
[Android General] Portgas D. Ace:
Strange. As said before, a custom kernel might reduce your drain.

But it could also be that the battery is faulty (beside it being a new one).
[Android General] DB126:
Many replacement batteries are either old oem stock or packs harvested from previously enjoyed devices. Packs are often unique to specific device (shape, capacity, etc); not cost effective for third parties to crank out hundreds of low-volume varients. New means nothing unless backed by a reputable company.
[Android General] :
In addition, a lot of those batteries are straightly fake, with their real capacity much lower than the one advertised.
[Android General] ainurrofiq:
This is my log, please check
[Android General] Portgas D. Ace:
This log file is useless for analysis purpose as the screen on time is more than four hours. We need an idle log file. Check post #6 about how to produce a proper idle log file.
[Android General] ainurrofiq:
Okay. I forgot it. Sorry :angel: tonight after full charge I'll try to idle it till dawn
[Android General] reaperlinkz:
Thanks for the tips on helping with battery life, keep up the good work.
[Android General] Federacion:
Thanks all for all the tips.

My morning alarm doesn't start. Can you help me solve this issue?
[Android General] pettigrew95:
Would someone be able to please help me with horrid battery life!? I've attached my BBS dump. I've noticed poking around BBS that something in Google Services looks like it's eating up a ton of battery. Looks like it's "Sensor: Significant Motion(13),wakeup=true" it had over 5 hours of wakeup time!! Can someone let me know what this is and how to fix it? Thanks so much!
[Android General] githyanki:
wlan_rx_wake (): 49 m 7 s Cnt:(c/wc/ec)34299/29566/34299 10.4%

Your WiFi is going crazy. It woke your phone 30K times in the 8 hours.

Second HTC with 7.0 that I have seen this on today. I think there's something with the update from HTC causing this. Perhaps a custom kernel or custom rom could help you with this.
[Android General] pettigrew95:
How can I stop the wifi drain? I am running a custom ROM and kernel.
[Android General] githyanki:
https://xdaforums.com/google-nexus-5/help/getting-rid-wlanrxwake-wakelocks-t2519294

This thread may be helpful.
[Android General] pettigrew95:
I followed this guide for the most part actually, about a week or so ago. I thought my battery drain now was coming from Google Play Services "Sensor: Significant Motion" that has 5+ hours of wakeup time.
[Android General] githyanki:
There could be more than one issue then. I had around 120 wlan wakelocks over 5 hours on my last log, you had 30K over 8 hours.

You can use naptime by Franco to disable the motion sensor.
[Android General] danecr7:
Try these:

ALARM_WAKEUP_ACTIVITY_DETECTION limit it to 41400

CONTEXT_MANAGER_ALARM_WAKEUP_113163 use the custom regex given in OP to limit these to 9999999

NETWORK_STATS_POLL limit it to 10800

android.net.netmon.lingerExpired.109 android.net.netmon.lingerExpired.113 android.net.netmon.lingerExpired.111 android.net.netmon.lingerExpired.104 use these regex to stop all of them: android.net.netmon.lingerExpired_[0-9]+_-?[0-9]+ android.net.netmon.lingerExpired_[0-9]+_[0-9]+ and fix the interval to 9999999
[Android General] pettigrew95:
I'm on Nougat so no Amplify because no Xposed :(
[Android General] danecr7:
Oh I did not pay attention to that, it won't be easy without it IMHO.

Unfortunately one usefull app (Doze Settings Editor) is only working on marshmallow actually.

Because of xposed I am still running marshmallow.
[Android General] gh0stzk:
Resurection Remix rom
[Android General] zilan:
Please take a look at my log and what should i do? Iam on miui nougat xiaomi.eu. thanks
[Android General] githyanki:
Screen On (): 26 m 29 s 7.2%

Please follow the instructions in post 4 for creating an idle log.
[Android General] Shark5060:
Hey,

I've got a new device (HTC 10) running LineageOS (so nougat and no xposed) and wondered if you could have another look at my log. I know that I'm fairly limited with the stuff that I can optimize, but maybe there is something.

Thanks in advance
[Android General] Portgas D. Ace:
First of all, a warm Moin Moin from Cologne to Hamburg ;)

There are indeed some things that can be optimized, but 0.6% per hour drain is already good.

BackgroundLocation-UploadLocation (com.facebook.katana.Facebook): 6 m 40 s Count:7 1.4% -> you could either deny location access to Facebook app or use an app like MyAndroidTools to disable the location upload service for FB

wlan_rx_wake (): 10 m Cnt:(c/wc/ec)879/973/879 2.1% -> check this thread

Alarms: 182, Intent: com.android.email.EXCHANGE_INTENT -> related to Gmail sync, wakes up your device around 23 times per hour. If you use Greenify, you could hibernate Gmail if you don't rely on instant push notifications (but in my opinion greenifying it should not be required as of the low drain)

Alarms: 31, Intent: haibison.android.wake_lock_service.WakeLockService.STOP_SELF -> I don't know why, but the icon pack Flight is keeping your device awaken, maybe you could greenify it
[Android General] Shark5060:
Moin Moin =D

Oh I am more than happy with the performance of that phone.

right ... why do I always forget to do that when I either do a clean flash or get a new phone? >.<

Greenify works without xposed? Oh. You'll learn something new every day.

As for gmail - I've disabled notification, since I get a _LOT_ of spam mails that my outlook seems to filter pretty late (I would get the notification and it would disappear a second or so later). So no idea why that would even show up, since notification is disabled... but well.

I wondered about the Flight pack as well but thought it might be because I am using the Clock widget from that package.

Thanks a lot for the help.
[Android General] Portgas D. Ace:
Greenify even works without root ;) But root mode is far more advanced. Xposed offers some additional features, but the main functions can be used without Xposed.

Okay, if you use the clock widget of Flight icon pack, then it should be normal that it appears in the list of alarms.
[Android General] zilan:
Please see what should i do?
[Android General] githyanki:
BatteryServiceUpdateStats_3 (Android System): 47 m 54 s Count:1570666 8.4%

NETLINK (): 1 h 44 m 4 s Cnt:(c/wc/ec)1982702/1446539/0 18.2%

HVDCPD_WL (): 1 h 41 m 17 s Cnt:(c/wc/ec)1607835/980438/0 17.7%

PowerManagerService.WakeLocks (): 1 h 39 m Cnt:(c/wc/ec)1495040/973542/0 17.3%

NETLINK (): 1 h 10 m 58 s Cnt:(c/wc/ec)1997373/1451590/0 12.4%

Seems to be a lot of HTC devices with these issues lately. I don't know if anyone has found a solution.

Something, perhaps battery service, is using network every second or so. 1.5 million wakelocks in 9 hours is WAY too much.
[Android General] zilan:
im not using HTC, but Xiaomi Mi5. according to BBS partial wakelock CMASystemUpdateService is no.1
[Android General] githyanki:
Sorry, editor apparently opened a previous file....
[Android General] Zizzy93:
Did you find a solution to your problem?

Hai trovato una soluzione al tuo problema?
[Android General] aryan531:
guyzz i am on nougat and still xposed dosent developed for nougat...any best solution for best power saving ??
[Android General] danecr7:
Greenify.
[Android General] aryan531:
i'll using it ...any more suggestions :D
[Android General] xheroxkefx:
Guys,

I'm having 77% awake on my phone. Due phone (radio). also have a lot of reports that phone has stopped working. Flashed 3 different ROMs, pronlem still persists. Any tips?

Xoami mi4c, using RR Lineage OS 7.1 atm
[Android General] githyanki:
You can tweak your kernel for some benefit. If your on Nexus 6, Franko has several battery saver settings.
[Android General] JonasVFC:
is it safe to block UlrDispSvcFastWL and UlrDispSvcSlowWL?
[Android General] Milor123:
Could someone explain me why I should put its in 9999999??? what do it exactly ?

If I put 250s in a alarm, what succeed after 250? is deny? i need a know the operation of this
[Android General] knpk13:
I'm on nougat, so can't use amplify. I am using greenify though. I'm still getting this extreme battery drain during idle.

Edit:

[MENTION=5488402]Davey126[/MENTION] oops meant to post it in the other battery life thread
[Android General] githyanki:
You seem to have a transit app keeping your phone awake.

com.transloc.android.rider.Rider

Try to greenify it, or uninstall it and see if you get better idle drain.

Plus the Google play services drain was pretty high, but that's a bit harder to deal with.
[Android General] knpk13:
I've already greenified that transit app. Weird, I'll try adjusting some of the settings.
[Android General] DB126:
Recommend disabling (freezing) that app to see how your device performs without it. Then reenable and see if you can hit that baseline.
[Android General] :
Hi! Everything is working fine for me except the ANDROID SYSTEM drain.

I'm on OP3 rooted, nougat, experience rom v11.5, franco, AKT burnout p3. Greenify

Suggestions? Log provided.
[Android General] v7:
Read the FAQ in post #6 and get an idle dump.
[Android General] dieccast39:
Hello amplify is a great just installed it! I want to ask in Services>facebook katana wil i have problem with notifications or its another thing?

Στάλθηκε από το D6503 μου χρησιμοποιώντας Tapatalk
[Android General] TNSMANI:
The time limit you put against a wakelock/alarm means that the wakelock/alarm will not be allowed to run during that period. Example: 250s. It means that for 250 seconds, the wakelock/alarm will be blocked after which it will be allowed to run. In other words, it will be allowed to run once in 250s.

In the case of 9999999s, the idea is to maximise the time during which the wakelock/alarm remains blocked and 9999999 is the max.
[Android General] Milor123:
Oooh great, thank you very much dude :D
[Android General] :
I did over 4h (couldnt do more right now.) If this does not say anything, I will try again tomorrow. For me it seems like some app (when I am really using the phone) is demanding the location or wifi or something but I really can not come up with what that can be? I have turned off what I can, but still my android system drain is as high as my screen drain. Doesn't matter if I use it alot or a little, they have almost always about the same drain.

Sorry for noobing and not doing as instructed. Just thought it could be somewhat helpful.

(I sent some smses through pushbullet and got some fb-messages du ring these 4h.)
[Android General] DB126:
There are some minor drainers but no smoking guns. Log shows 1% drop per hour which isn't horrible given admitted usage during monitoring period. Not sure what you're looking for other than further optimizations which will make the stats look good but only yield a few additional mins of useful battery life.
[Android General] :
Sure of course. I figured as much, if I may, is there something that catches your eye in my first dump a few posts back?

Thanks a lot for the response.?
[Android General] DB126:
That log is a mess. Sizable YouTube, browser downloads, location wakelocks, yuk. Too involved to unravel.
[Android General] :
Is that so? Sorry man. I use youtube at night berfore sleep. I think se can ignore that one.. I think the location thing is the culprit. Is it even possible to smoke out the biggest location drain?
[Android General] githyanki:
Sorry, it does not show what was using location.

Go to settings, location and you can see recent location requests. If you see something there that you think shouldn't be there, disable access to location for it.
[Android General] :
Thx man
[Android General] pettigrew95:
Hey guys, if someone could please take a look at the images I attached. It seems I'm getting a horrible battery drain from Google Play Services specifically "Sensor: Accelerometer Sensor(0), wakeup=false" and "Sensor: Significant Motion(13), wakeup=true"...Between the two of them they have kept my device awake for quite a long time. I also attached my BBS output. Thanks for any advice or feedback guys!
[Android General] zputnyq:
Hi guys, help me please,

Currently I am using the apps suggested & the result is great but I face problem on loging in google setting & it seems caused by xposed because when I uninstall it, the problem is gone.

However xposed is important for apps suggested here so I don't wanna uninstall it when I experience it again. Anyway is there any solution to log in to google without uninstalling xposed or does anyone know the link for reporting a problem for kitkat xposed, I've been confused looking for it since there are many threads for xposed help me please if u know?
[Android General] DB126:
Never had this problem. Unlikely Xposed Framework is to blame unless incompatible with your device/kernel/rom. Suggest disabling installed modules one-by-one to identify the culprit.
[Android General] zputnyq:
It happened after I clear google setting data & tried to logging in, when I didn't clear it, it just fine.

I alway clear the data to save space.

I've done disabling modules many times & it didn't solve it.

Only by uninstalling xposed framework that can solve it.

Probably it is incompatible as you said.
[Android General] themcfly:
I'm sorry if my log is not exactly from 100% and not for 6 hours, but the idle log is not what concerns me (I also had 0.1%/hr completely idle). I also attach a log of a daily usage, in which I just quickly check for messages and text back if necessary. ULTRA light usage. Location history is disabled. I can't understand why in a 8 hour period, if my screen is on for only 12 minutes, does the phone have to stay awake for almost 1 hour. There is almost nothing in partial wakelocks, the only thing I found seem to be the alarms. Is it normal to lose 1/4 of the charge of a 3400mah battery due to 12 min SOT and some standby? Maybe it is.
[Android General] githyanki:
Yes, that's normal. You can improve some with greenify's aggressive Doze, or Franco naptime. They will allow you to reduce on time while screen off.
[Android General] gadsden:
Finally took the plunge to follow these steps

Been unhappy with battery drainage for a long time. Still running my 2 year old original battery, I finally bought new batteries and a charger so I can swap. Still not getting enough battery life, I tried Greenify first. I was a little aggressive because I didn't understand how it worked. I sort of greenified almost everything. I still haven't changed that but I have just followed every step in the OP here to finally gain back my battery life. I made the dump attached here before doing anything, just had greenify running. Not sure how to read this yet, just started today.

A few questions I have about the steps in the OP..... I didn't have all of the items available in Amplify, I understand they may take a day or two to populate, so I did everything I had available. And some I won't have because I don't use facebook, etc.

1) In wakelocks, I don't see RILJ, but I do have RILJ0. Is this the same thing? Should I mess with that one?

2) I also don't have locationmanagerservice, but I do have locationservice. Again, is this the same thing?

3) In AppOps, I don't have an option for OP_ALARM_WAKEUP/Wake Up. I do see Keep Awake and disabled that, though.

4) Finally, I was expecting to see a WAKEUP in AppOps for stock messaging app, but it doesn't have one there either. I was hoping to be able to stop messages from waking screen every time I get a text message. Is there another way to disable that?

I'm attaching this dump, but I didn't have any of the apps installed and configured yet. Now that I do, I will do another dump tomorrow after a night of BBS running. Only problem is I am worried about a text message waking up my screen and stopping BBS. So if anyone has a tip on that, I'd appreciate it. If there is anything else in this dump I need to pay attention to, let me know. Need to figure out how to read this thing so I don't have to ask for help every time. Also, the OP didn't recommend rebooting before running the BBS log session. I read elsewhere that you should. I will do that next time if recommended here.
[Android General] Zarou:
First of all, hi and thanks for this guide. :D

I don't have any battery drain to complain about, but I'm quite the curious guy. So far I only used Greenify and it always did its job properly (or maybe it's just placebo, but my point is, my battery's fine), but I keep reading here and there on the Internet about Amplify, and sometimes about PowerNap. Now I do have a question that may seem pretty stupid and I apologize if this is, but I can't seem to get a decent and recent answer only by browsing the web : are Amplify and PowerNap still useful or did they became redundant now that Greenify can force enable doze mode and prevent movement from stopping it ?

Again, I'm not suffering from battery drain at the moment, I'm just interested in understanding more about my device and apps that can actually make a difference.

Thank you. :)
[Android General] DB126:
Depends who you ask. Amplify, L-Speed, PowerNap and similar apps/tools bring different capabilities to the table and have a dedicated following. Most require a fair bit of configuration/tuning and often introduce unwanted side effects. Monitoring tools like GSam and Better Battery Stats expose some of the inner-workings of Android and trigger aggressive (often inappropriate) responses that are not always consistently with stated goals.

Greenify is my primary tool primary for dose-on-the-go on Android 6.x roms. I use BBS (occasionally GSam and WLD) to expose aggressive wakelocks and, if/when necessary, go after them at the source. I have stepped away from the others after spending far too much time reading, measuring, fiddling, reading more, refiddling, etc. etc.

Performance and battery endurance on my current device portfolio of old and new devices hover among the top 20-25% of those reported in this thread and elsewhere. All with very little effort on my part on near stock devices/kernels/roms (albeit all are rooted and unlocked).

Bottom line: if it ain't broke don't fix it. But that's not very fun ...
[Android General] STORMING BLOOD17:
Thanx For the guide...

But one More Question, Which is better Aggressive Doze w/ Disabled Motion Sensor (LSpeed) or Xposed w/ your recommendations.

Because I have read That Xposed slows Device Booting and Slows System.

BTW, I am Using RR ROM [Resurrection Remix] MarshMallow
[Android General] DB126:
Xposed Framework does not significantly slow booting (adds ~1-2 sec on my mid-range devices) and has no impact on system performance. However, the modules loaded can have a significant impact if misconfigured/incompatible.
[Android General] STORMING BLOOD17:
I have a Grand 2 and the ROM really sucks at battery life

So If I use Xposed (3 Modules) it won't slow down?
[Android General] zputnyq:
Based on my experience using those modules won't slow down a device but It also depends on your configuration for those 3 modules & each device may differ too.

If you experience a slow down, just disable the module from xposed framework & reset back the module to its first state then reboot the device
[Android General] jlb1959.01:
when using app ops to make adjustments on Google play,and frame work stay awake,do I do the adjustment thru settings or must I go thru hack then settings?,completely new to app ops..thanks and sorry for my ignorance.
[Android General] githyanki:
That answer is greatly dependent on the rom you are using. It should be the same either way....
[Android General] jlb1959.01:
thank you,greatly appreciated..I'm on xdabbeb 3.1..,,,,,thanks again..
[Android General] habylab:
Any additional things to block on 7.1.1 OB12?
[Android General] Bewildered Wolf:
Using these apps only will give you great results. And if you want to know what additional you can block , post a BBS log. And If you don't know how to post a BBS log have a look at 0p5 or 0p6. Then only people would be able to help you with more services to block.

//Press thanks if I helped you .
[Android General] story:
com.android.server.device_idle.STEP_IDLE_STATE

I understand the follow is related to Doze but it woke up over 4000 wake up in 3 hours. My CPU was used for 60 mins.

ForceDoze's Doze Battery Stats shows it never went into Doze mode.

Would this help? I just found out I put the following in WAKELOCK, I just changed it to ALARM

Alarms(REGEX Blocking)

ALARM_WAKEUPxxxxx

CONTEXT_MANAGER_ALARM_WAKEUP_xxxxx
[Android General] :
Any idea about how Animations/Device Administrators/Apps with usage access influenve battery drain?
[Android General] mele80:
All good?
[Android General] Arstoien:
– animations: the difference would be only if you turn them off, I think. I don't think there's any difference if they're set on scale 1 or 0.5

– device administrators have the potential to use battery (among many other worse things) but that depends on the app itself. Android's feature by itself doesn't use much additional battery as far as I know.

– app with usage access – this can potentially harm your battery life but from my experience not very significantly. Reason is the OS needs to notify these apps about any of the particular activities that have taken place and regardless of how the apps react (or don't) it would still use some cpu. I'm not entirely certain about this but I think so.

– accessibility features – this can significantly influence performance and somewhat battery (keeping the cpu at higher clock rates). Depends mainly on what access does the app require but if it's things like "observe your actions" / "retrieve window content", then there's a potential bottomless pit for performance and to some extent battery. And if an app asks for this, it doesn't matter what the app is doing with the info later – the OS uses cpu pretty much every time you interact with an app, to provide that information.
[Android General] Lewis Zimmerman:
Hi, I have a problem that still eats me something wi-fi, but I do not know what I attach images and logos. Please if you could give me some advice? Thanks
[Android General] Priyabrata527:
is 1.6℅/hr decrease in battery is decent enough??
[Android General] danecr7:
More than 1 hour of screen on time is not good for a proper idle log file.
[Android General] stacyy:
Google Play Service
[Android General] DB126:
Dormi baby monitor is taking a toll. If possible consider temporarily disabling app to see if that makes a difference.
[Android General] Lewis Zimmerman:
My wife has the same phone and the same app Dormi a problem with the wi-fi is not that more of discharging the battery. It's just weird to me. But I try to uninstall time.
[Android General] DB126:
Second heaviest drainer in log was wakelock associated with Google location services. Possible that is playing a role of settings differ from wife's phone. Consider disabling location services when not in use (note there can be side effects such as slow location fixes when re-enabled).
[Android General] Lewis Zimmerman:
Today 5,7% per hour.

Ok,I tested disable location, but today Wi-Fi say 21% from morning and was all day disable
[Android General] Lewis Zimmerman:
And I use Greenfy prayed
[Android General] githyanki:
We cannot do anything with your log. 3 hours screen on time is too much to do anything with.

Look at the log yourself and see if the numbers match your usage.

For us to do anything, we need a log with at least 6 hours idle and less than 1 minute screen on time.
[Android General] DB126:
Agreed. I missed the 1+ hour screen on time in your first log (misread as 1 min). Still see tons of location related activity which suggest location services not totally disabled (there ways to deal with location wakelocks; recall disabling was just a test). Regardless, need an IDLE log as [MENTION=1631192]githyanki[/MENTION] indicated.