N5 battery life Davlik + Xposed vs ART stock - Nexus 5 Q&A, Help & Troubleshooting

My N5 had been completely stock up until a few weeks ago when I decided to root and start using xposed framework. Since then I have had significantly worse battery life. I think this has more to do with ART not being enabled than anything else but I can't say for sure. I was wondering if others have had the same experience and if there are any tips to squeeze more life out of my current setup. I already have greenified a bunch of apps, keep brightness low and have mobile data set to turn off shortly after locking the screen.

sounds like you are overthinking it. battery life is all dependent on how you personally use your phone, how you personally set it up, what apps you use, and very much the quality of your phone/data connection. roms, kernels, battery apps, and so on, wont really save your battery. roms, kernels, and mods can reduce your battery life though, by using badly written code. plus xposed can come with a large list of issues. and it doesnt make a difference if you use art or dalvik, battery will be the same.

pistl_pete said:
My N5 had been completely stock up until a few weeks ago when I decided to root and start using xposed framework. Since then I have had significantly worse battery life. I think this has more to do with ART not being enabled than anything else but I can't say for sure. I was wondering if others have had the same experience and if there are any tips to squeeze more life out of my current setup. I already have greenified a bunch of apps, keep brightness low and have mobile data set to turn off shortly after locking the screen.
Click to expand...
Click to collapse
My best battery life is on stock with xposed. But I use app opps in xposed to manage a number of apps. I constantly get 5 + hours sot. But as simms22 said battery life is highly dependent on your signal quality and your usage.
Sent from my Nexus 5 using XDA Free mobile app

Art doesn't have much of an effect on battery in its current form. http://www.androidpolice.com/2014/0...ery-life-benchmarks-not-good-but-not-too-bad/

Xposed Framework itself shouldn't have any effect whatsoever on the battery life. That's not to say a module couldn't impact your battery consumption.

The best way to rid of battery draining issues is to use better battery stats and see what it says. (search the xda forums for the thread) You probably have a module with a wakelock. If you can't find it out from there, disable each module until you find the culprit. Otherwise, disable XPosed Framework for the time being.
Art may slightly increase battery life and performance, but some app incompatibilities may cause draining actually and as you know you won't be able to make use of XPosed without dalvik currently.

Related

[Discussion] Battery Killers

We all want good battery life, that is a given. With the large batteries and the optimized operating systems versions most of us are running today, we all should have it. But often times we don't, why not? Apps with services causing wake lock issues are often to blame. So, I wanted to start this thread to post all apps we have found to either avoid or with workarounds to prevent bad battery life from ensuing.
toshibathomas said:
We all want good battery life, that is a given. With the large batteries and the optimized operating systems versions most of us are running today, we all should have it. But often times we don't, why not? Apps with services causing wake lock issues are often to blame. So, I wanted to start this thread to post all apps we have found to either avoid or with workarounds to prevent bad battery life from ensuing.
Click to expand...
Click to collapse
Greenify, Disable Services...Need root though I think
Qas. said:
Greenify, Disable Services...Need root though I think
Click to expand...
Click to collapse
The paid version or the free one?
Make sure no apps are running in the background, if you're not gonna be using your phone for a few hours turn your brightness to the lowest possible, make sure your screen shuts off in less settings ect.
Sent from ALCATEL One Touch Fierce
just dont run apps in background, it will drain your battery drastically
kap19 said:
The paid version or the free one?
Click to expand...
Click to collapse
both have the same funcionality. the paid one is just a donation to developer, if you like his app.
Is it a 'to kill' or 'most wanted' list bro? How many $'s will be paid?LOL..
Ok, as u can search in xda , there are alot of posts ppl complaining about some cpu and battery hunger background processes and apps .
In my case these was built in "download manager " and "audio effect service".
I removed the 2nd one permanently!
So?
I usually turn auto sync off
Sent from my PG86100 using Tapatalk 2
facebook...it consumes about 20% of my battery even without opening it once
unistalled it, no actual need of checking it on the phone
robrobbbbb said:
facebook...it consumes about 20% of my battery even without opening it once
unistalled it, no actual need of checking it on the phone
Click to expand...
Click to collapse
I agree, facebook its battery sucker...
Wifi, Scrreen brightness, Auto sync, GPS and games in general seem to be the big culkprits for my battery draining. Even simple things like turning auto rotate off can help a tiny bit for performance and battery life. Limiting your amount of active widgets and screens animations on your fancy launcher can cut down as well on battery and performance. Certain IM apps like facebook chat, skype, and a ton of others will kill your device fast. Google + is known to be a bandwidth hog and batttery killer. I noticed when im browsiing youtube simple things like turning off hd will dramatically help improve battery life because your network is not sucking as much bandwidth.
There is all kinds of stuff to do . It is a constant battle.
Greenify app & use Lean Kernel if possible
Like many have said, apps running in the background are the main culprits of a shirt battery life. Unless you feel those apps are truly essential I recommend uninstalling those apps.
Sent from my SPH-L710 using xda app-developers app
Using greenify like most of you guys. Yesterday I installed lux lite on a new custom ROM and noticed it was responsible for about 25% of my battery usage over about an hour with the screen on. Anyone with experience with this app know if this is normal behavior?
maches said:
Using greenify like most of you guys. Yesterday I installed lux lite on a new custom ROM and noticed it was responsible for about 25% of my battery usage over about an hour with the screen on. Anyone with experience with this app know if this is normal behavior?
Click to expand...
Click to collapse
No issues with lux lite here. I got the paid version and the dusk/night features are great
USB Chargers
I don't know if anyone realizes this, but what I have experienced with my phones(from Nexus One - Nexus 4) I have noticed when I charge my phone through a computer the battery seems to go out faster. When I connect it directly to power it lasts much longer.
Has anyone else noticed this"?
Only close apps
GT-S5830i cihazımdan Tapatalk 2 ile gönderildi
yahoo messanger if signed in it's a big eater
some antivirus and the Android System, some very drain battery, Custom ROM the best!
install battery calibration

[Q] X-Posed Mod Battery Drainers

Which Modules in the X-posed Framework drain the most battery for you?
Personally I find Unicon and Gravity box pretty big drains. I know most people suggest that you remove the module for a few days and then see better battery life, and different phones handle them separately. But hey...knowing doesn't hurt
So which Mods drain the most battery life for you?
How does GravityBox drain the battery? It's not like it runs in the background constantly syncing or anything like that.
shac0 said:
Which Modules in the X-posed Framework drain the most battery for you?
Personally I find Unicon and Gravity box pretty big drains. I know most people suggest that you remove the module for a few days and then see better battery life, and different phones handle them separately. But hey...knowing doesn't hurt
So which Mods drain the most battery life for you?
Click to expand...
Click to collapse
If you have issues with GravityBox draining battery, send evidence to the dev so the issue can be resolved.
It's absolutely perfect on my end. Maybe try Greenifying it.
shac0 said:
So which Mods drain the most battery life for you?
Click to expand...
Click to collapse
None of them do for me. ...and I couldn't understand why one would either.
I ran stock rom unrooted for a month before rooting and installing xposed with the gravity box module. After running GB for a month now I can confidently say there is ZERO difference in my battery life. Nothing has changed except for my ability to tweak the look and functions of Googles stock software. Imo the best thing that has happened to Android since my Eris days!
Nexus5
I think you have battery drain from something else. Gb doesn't drain it just changes where the clock is or the battery icon changed.
Sent from The Deathstar

Battery life for rooted users

I was wondering how good rooted users could make the battery life with apps like Greenify etc.
Are there any users here that use rooted apps to extend battery life? If so how is it?
I am not rooted.
It seems to me I have better battery life since I got rid of greenify, lux and tasker. I never meant to just remove them, it's just I was getting random reboots so factory reset and have only installed a small bunch of apps since.
Didn't expect better battery life especially without lux which can dim the screen brightness much more then stock. On greenify, my take is, without root it cannot really hibernate the apps, I think it stops them altogether, so it takes more for them to start again, hence more battery drain.
Sent from my E6653 using Tapatalk

Best battery (SOT) with stock kernel?

Anyone have better battery life on stock kernel than on any custom kernel?
harpin14789 said:
Anyone have better battery life on stock kernel than on any custom kernel?
Click to expand...
Click to collapse
Yup, haven't had a custom kernel beat my SoT and idle drain, and tried most of them. Including wakelock blocking, underclocking, etc. Stock remains best by far, here.
Ymmv and sure some kernel fans will chime in and claim completely otherwise, and that's just fine :good:
For now enjoying 10+ hours of SoT and draining 3% per night being idle using the amazing stock kernel
I'm getting about the same, MAYBE a little better on EX Kernel. I use the custom kennel for features usually.
* Increase vibration strength
* Lower minimum MHz for less per drain when idle
* Increase Mac sound volume
* Disable swap file and Zram
* Increase read ahead to 2048kb (ideal with 32gb or more storage)
With the 7 pro I'm getting better battery then my op6 and I have forced 90hz all apps enabled 24/7 and resolution set to auto switch.
i do kernel tweaking on my own but not a custom kernel. Im on the latest h2os and i get 9 hours sot average. idle drain overnight for 8 hours is about 2%
Personally I don't run a custom kernel for power savings, I run it for wireguard support. The best way I've found to increase battery life and reduce idle drain is running xXx magisk ROM and debloating the crap out of the OS
Yeah, best battery and performance balance is the stock kernel.
Stock kernel...I don't need to look at the screen for 10 hours...doing what I do is more then enough to last for more than a day...
just hit 50% battery and I'm at over 6 hours screen on time
2 days 5 hours off charger with 7 hours screen time.
I don't know how some of you can achieve 10h SoT I literally tried everything - all kernels, debloaters, used Swifted to force most of apps to run in dark/black mode, used Automate to toggle off wifi/BT/kill unused apps that use resources in background (like fb etc), some magisk modules, kernel tweaks - I did all of that with all sorts of combinations (not all at once) and basically I couldn't improve bettery life by any noticeable margin, getting 6, sometimes 7 SoT, my goal was 8-8,5.
I don't any heavy lifting - main usage is Hangouts, Gmail, Facebook (maybe that is the killer?), Messenger, Chrome and sometimes other (telegram etc) - Never any gaming nor heavy programs.
Pfeffernuss said:
Yup, haven't had a custom kernel beat my SoT and idle drain, and tried most of them. Including wakelock blocking, underclocking, etc. Stock remains best by far, here.
Ymmv and sure some kernel fans will chime in and claim completely otherwise, and that's just fine :good:
For now enjoying 10+ hours of SoT and draining 3% per night being idle using the amazing stock kernel
Click to expand...
Click to collapse
I'd try sticking to the stock kernel, the problem is that OTG doesn't work properly.
Lirannl said:
I'd try sticking to the stock kernel, the problem is that OTG doesn't work properly.
Click to expand...
Click to collapse
Exactly what doesn't work properly? Can't find any peculiarities.
spawnn617 said:
I don't know how some of you can achieve 10h SoT I literally tried everything - all kernels, debloaters, used Swifted to force most of apps to run in dark/black mode, used Automate to toggle off wifi/BT/kill unused apps that use resources in background (like fb etc), some magisk modules, kernel tweaks - I did all of that with all sorts of combinations (not all at once) and basically I couldn't improve bettery life by any noticeable margin, getting 6, sometimes 7 SoT, my goal was 8-8,5.
I don't any heavy lifting - main usage is Hangouts, Gmail, Facebook (maybe that is the killer?), Messenger, Chrome and sometimes other (telegram etc) - Never any gaming nor heavy programs.
Click to expand...
Click to collapse
I think some of those messaging apps (or ones that require syncing or wait for push notifications) are the cause.
You wont see the battery page showing that they consume so much battery because in a way they dont (as they are not in the foreground or doing any heavy computation). But i found that these apps prevent the phone from deep sleep.
You can find out by using things like Better battery status to see the wakelock/alarms of those apps. Some of apps wake up the divice periodically so frequently....
But on the other hand if you want to get notifications from an app and it is poorly designed (drains unnecessary amount battery), there is no way to avoid it. But if you just use jt occasionally and dont need timely notification, try using Servicely to disable wakelock/services of the app (requires root and may break the app, but you can just enable those disabled things to restore the app).
kezzuki said:
I think some of those messaging apps (or ones that require syncing or wait for push notifications) are the cause.
You wont see the battery page showing that they consume so much battery because in a way they dont (as they are not in the foreground or doing any heavy computation). But i found that these apps prevent the phone from deep sleep.
You can find out by using things like Better battery status to see the wakelock/alarms of those apps. Some of apps wake up the divice periodically so frequently....
But on the other hand if you want to get notifications from an app and it is poorly designed (drains unnecessary amount battery), there is no way to avoid it. But if you just use jt occasionally and dont need timely notification, try using Servicely to disable wakelock/services of the app (requires root and may break the app, but you can just enable those disabled things to restore the app).
Click to expand...
Click to collapse
Yeah I suspected that as well and did track Wakelocks. I used Automate to kill Messenger and FB in background when the screen is off, also tried few other tricks and amount of % of deep sleep while screen is of was better - starting from 30% awake while screen off to as low as less than 10% but... Battery train in idle was the same and generally battery life didn't improve at all... Strange but True. That's why I went back to all stock without any tricks..
spawnn617 said:
Yeah I suspected that as well and did track Wakelocks. I used Automate to kill Messenger and FB in background when the screen is off, also tried few other tricks and amount of % of deep sleep while screen is of was better - starting from 30% awake while screen off to as low as less than 10% but... Battery train in idle was the same and generally battery life didn't improve at all... Strange but True. That's why I went back to all stock without any tricks..
Click to expand...
Click to collapse
hummm...well right now im on blu_spark and this is the best battery life i am getting. My set up is described here:
https://forum.xda-developers.com/oneplus-7-pro/development/kernel-t3944179/post79844206
i think im stuck in the same shoe as you cus i rely on Wechat,google sync and a Bluetooth fitness band so the device is going to use quite a bit battery but i managed to get this far...
And battery life is what i require most out of a phone lol
here is a screen shot of battery usesage, its still early in the day but.
I expect screen on consumption will go to about 7.5~8% / hour when the day goes by, like usual.
One interesting thing is that, lol, i never tried stock kernel lol And seeing (in this thread) how people get good sot with stock kernel makes me wanna try it lol will give it a shot over the weekend
kezzuki said:
I think some of those messaging apps (or ones that require syncing or wait for push notifications) are the cause.
You wont see the battery page showing that they consume so much battery because in a way they dont (as they are not in the foreground or doing any heavy computation). But i found that these apps prevent the phone from deep sleep.
You can find out by using things like Better battery status to see the wakelock/alarms of those apps. Some of apps wake up the divice periodically so frequently....
But on the other hand if you want to get notifications from an app and it is poorly designed (drains unnecessary amount battery), there is no way to avoid it. But if you just use jt occasionally and dont need timely notification, try using Servicely to disable wakelock/services of the app (requires root and may break the app, but you can just enable those disabled things to restore the app).
Click to expand...
Click to collapse
kezzuki said:
hummm...well right now im on blu_spark and this is the best battery life i am getting. My set up is described here:
https://forum.xda-developers.com/oneplus-7-pro/development/kernel-t3944179/post79844206
i think im stuck in the same shoe as you cus i rely on Wechat,google sync and a Bluetooth fitness band so the device is going to use quite a bit battery but i managed to get this far...
And battery life is what i require most out of a phone lol
here is a screen shot of battery usesage, its still early in the day but.
I expect screen on consumption will go to about 7.5~8% / hour when the day goes by, like usual.
One interesting thing is that, lol, i never tried stock kernel lol And seeing (in this thread) how people get good sot with stock kernel makes me wanna try it lol will give it a shot over the weekend
Click to expand...
Click to collapse
Well yours stats look great, I would like to have stats like that as you said, using BT devices connected and messaging app I know I will not hit crazy SoT but still I want a bit better cause as you said battery is like too 1 priority for me I see we are very similar users thanks, in fact I didn't try blue-spark so far, I will give it a shot! I know standy drain will be laso related to Wi-Fi / 4g coverage (low signal = big drain) but I don't think I have such bad signal so I won't to get at least not more that 1% idlle drain per hour and 8-9% on screen and I'm good.
BTW what's your screen brightness usually?
spawnn617 said:
Well yours stats look great, I would like to have stats like that as you said, using BT devices connected and messaging app I know I will not hit crazy SoT but still I want a bit better cause as you said battery is like too 1 priority for me I see we are very similar users thanks, in fact I didn't try blue-spark so far, I will give it a shot! I know standy drain will be laso related to Wi-Fi / 4g coverage (low signal = big drain) but I don't think I have such bad signal so I won't to get at least not more that 1% idlle drain per hour and 8-9% on screen and I'm good.
BTW what's your screen brightness usually?
Click to expand...
Click to collapse
yea lol our needs are very similar.
I just set screen brightness to auto, which changes between 30% ~ 50% when im indoor, whihc is like 90% of time. Then the rest is outdoor at noon lunch time during which screen goes to full brightness for a while.
Oh i also use OLED friendly wall papers and black theme in apps if available.
Ok so your screen brightness and setting (dark theme etc) is same as mine, so this is trsnge why I'm getting almost 2x worse drain... Must try this kernel.
spawnn617 said:
Ok so your screen brightness and setting (dark theme etc) is same as mine, so this is trsnge why I'm getting almost 2x worse drain... Must try this kernel.
Click to expand...
Click to collapse
i also forgot to mention that, with PlusBeat, the screen off drain goes up to 1.2 per hour.....and that is because of the wakeups...so i disabled it lol
7+ hours

Question Greenify on unrooted device

Hey guys. After all the discussion about battery drain while idle, i was curious if Greenify actually helps with battery drain, anymore, or if Google had improved the OS efficiency enough that this app was no longer necessary. I tracked my battery use overnight, and it's close to 0.5% per hour, so about what people were reporting in the battery use thread (with Greenify installed and active). Thanks much!
Proud2banoob said:
Hey guys. After all the discussion about battery drain while idle, i was curious if Greenify actually helps with battery drain, anymore, or if Google had improved the OS efficiency enough that this app was no longer necessary. I tracked my battery use overnight, and it's close to 0.5% per hour, so about what people were reporting in the battery use thread (with Greenify installed and active). Thanks much!
Click to expand...
Click to collapse
A 0.5%/hr idle drain is very acceptable, in my opinion. Also, in my opinion, apps like Greenify haven't been needed in a long time. In fact, they can sometimes cause more harm than good (I recall at least 2 people with either a Pixel 6 or 7 who were having problems that were caused by Greenify.)
If you have an app that likes to use more resources than it should in the background, I would recommend just battery restricting it.
Lughnasadh said:
A 0.5%/hr idle drain is very acceptable, in my opinion. Also, in my opinion, apps like Greenify haven't been needed in a long time. In fact, they can sometimes cause more harm than good (I recall at least 2 people with either a Pixel 6 or 7 who were having problems that were caused by Greenify.)
If you have an app that likes to use more resources than it should in the background, I would recommend just battery restricting it.
Click to expand...
Click to collapse
Great! That aligns well with my own thoughts. I got burned once by one of those "battery saver" apps that was really a virus. I'll take Greenify off and see what i get.
Agree with a lot of the above. Android and certain devs really have the battery thing locked in, especially compared to 4-5 years ago. I use to have 3ish apps like Greenify running back in the day but there's not much value now from my experience.
Even straight android out of the box on the 6a is pretty damn good for battery longevity - almost any rom really is great now. Personally running the velocity rom + mvk combo and life is good lol.

Categories

Resources