What root app can keep idle use in check? - Xiaomi Mi 5 Questions & Answers

Galaxy s4, honor 6 and now mi5. All of my android phones have had terrible terrible standby battery life. Wifi, Google services, location services, that android media service.
It's like whack a mole. As soon as I freeze or uninstall one app another pops up. I have tried more than 20 different apps to stop the idle battery use. The one thing that worked for me was Leandroid that automatically turns off data connection after screen off. This doesn't work in miui though.
So TL;DR how do I stop idle battery drain. I just installed the latest unofficial rom. I know as soon as I install Facebook/messenger the drain will start. Recommend an app (rootl
Thank you

Out of the 20 apps, did you set up Greenify with Xposed? Through settings, you can enable agressive doze.

Related

[Q] Google Maps sucking offline battery power

Recently, I've noticed that the Maps app really wastes power on standby time. Left the phone for one night from full battery and I wake up the next morning to find battery down to about 74% (no usage between those times), and a short check to the battery management section shows that about 68% of battery usage was due to Maps, and the display used less than 10% of the battery.
It seems that STAMINA Mode can't shut Maps down for one reason or another as it always asks me to force close it, like when I checked my phone first thing this morning. Does anyone have any idea on how to force close it until it's needed? I hardly ever use it, but it just keeps turning itself on again and again during standby, and since there's no blacklist feature in STAMINA Mode, I can't really force it closed either...
Yeah, I had the same issue when I first got the Z running 350 firmware. I disable Google Now, Location services and then reverted all Maps updates to prevent maps eating up battery. Now I'm on 434, I have Google Now and location services disabled, and Maps is up-to-date, the problem haven't came back. This at least works for me.
I've experienced the same issue with both firmwares 350 and 434, the thing is that google maps only seems to suck the battery dry after location services is turned on. You don't need use google maps for the program to kick in and start draining battery. I usually get rid of the problem by turning off location services and killing the app from memory.
I've an exact problem before. You can tried using Greenify application which can hibernate schedulers.
http://forum.xda-developers.com/showthread.php?t=2155737
Sent from my Nexus 4 using xda premium

poor battery life

I just use my Note 3 as a "tablet", so it just sits in my pocket all day unless I want to browse the internet, play a game or watch a video. It has no sim card in it, I just tether it to my main phone. Anyway, sitting in my pocket unused, not connected to tether, and with no activity by the end of the work day it's down to 60-70%. That doesn't seem right.
I'm on NB4, it's unrooted and pretty much stock. I've checked battery and it says for the last 11 hours, 59 minutes:
Google services 25%
cell standby 16%
exchange services 15% (hmm, I just installed outlook, I'm assuming that's the push service)
Android OS: 14%
Device Idle: 12%
Screen: 11%
Chrome: 3%
Android system: 3%
Wifi: 2%
Anyone have any idea where I should start? Ideally I want to root and uninstall or freeze some of the samsung bloat, but I'm holding out until kitkat before I root.
Can cut back some of it - make sure power saving is enabled (it was by default for me), and under location services settings (long-press on GPS icon after pulling down status bar), uncheck use wireless networks.
On recent versions of Android, that causes the phone to periodically wake to check local wifi networks, with a marked adverse impact on battery life, shows as Google Play Services.
Hopefully the exchange service won't use that much power now that you've got it all set up..
OP, do you happen to use clean master on your device?
I ask because I recently discovered that it was killing my battery.
Sent from my SM-N9005A using XDA Premium 4 mobile app
check your screen time. on a non rooted device you could get 2 hours up to 5 hours screen time depending on your usage (thats about half a day up to a bit over a day 100-1%)if so then thats normal. If you want to maximize your battery while not being rooted you might want to disable some apps you don't use using application manager. also turn of location access with google. turn off gps, bluetooth wifi etc when not in use. when done using the device long press home button and kill all apps so nothing runs on the background..
if you want more battery life than that consider rooting and going deeper into uninstalling bloat and non used apps/services that can't be done through non rooted.

Battery guide for Marshmallow

I installed Marshmallow a couple of days back. With features like Doze I expected better battery life with the stock experience (I previously had Xposed with Amplify Pro and Greenify Donate along with Power Nap, so I used to lose about 2℅ battery overnight.) However I lost 20℅ battery overnight. These are some tweaks I applied and last night I didn't even lose a single per cent overnight.
1. Use Greenify, it works even better on Marshmallow. It compliments Doze which kicks in only after an hour of the phone being stationery. (Search for the Greenify post on Doze in Google Plus)
2. Head over to the Apps tab and press the gear icon on top. Then proceed to disable unnecesaary App Permissions. You will be amazed how appls like Hotstar use body sensors which is totally not needed.
3. Enable Developer Options and head over to the tab called inactive Apps. Toggle Apps you rarely use.
And that's it! Let me know how it goes for you along with how much standby time you gained.
psiknight99 said:
I installed Marshmallow a couple of days back. With features like Doze I expected better battery life with the stock experience (I previously had Xposed with Amplify Pro and Greenify Donate along with Power Nap, so I used to lose about 2℅ battery overnight.) However I lost 20℅ battery overnight. These are some tweaks I applied and last night I didn't even lose a single per cent overnight.
1. Use Greenify, it works even better on Marshmallow. It compliments Doze which kicks in only after an hour of the phone being stationery. (Search for the Greenify post on Doze in Google Plus)
2. Head over to the Apps tab and press the gear icon on top. Then proceed to disable unnecesaary App Permissions. You will be amazed how appls like Hotstar use body sensors which is totally not needed.
3. Enable Developer Options and head over to the tab called inactive Apps. Toggle Apps you rarely use.
And that's it! Let me know how it goes for you along with how much standby time you gained.
Click to expand...
Click to collapse
Only 1% battery drain without trying any of these and on wifi whole night, doze is greenify only, but works only when no sensor works
Doze looking great
Sent from my Moto G 2014 using XDA Forums
After opening apps they show as active, but does the OS toggle them to inactive by itself after a while?
Battery not draining in night, but drains faster in day time
I think doze is working fine but Google play services is missbehaving. There ids only 1-2% draining in the full night but I don't know why , since morning Google play services keep my phone awake and then reduces battery much faster. This happen s for the whole day.

Battery preservation strategy

I've been thoroughly impressed with battery life on the Moto Z as a result of normal use. Less so with idle battery consumption. That is, after installing my full complement of apps (including facebook and twitter), I did a few tests by going too bed on a full charge, and found that 7 or so hours later, it had burned down 15-20% doing nothing overnight!
I installed gsam batter monitor since the stock one is kind of useless. This provided a lot of valuable info, which is basically that Twitter is a huge hog, Facebook surprisingly isn't, and google play services also seems to be spinning its wheels a lot when I'm doing nothing. But most of my juice was going to powering the wifi radio.
Android M has a setting to turn off wifi when the phone is sleeping. I was reluctant to do this at first because I figured my apps would just start wasting my data instead. However, you also have the ability to selectively limit apps' ability to use cellular data when running in the background. In an app's settings you can click "Data Usage", then "Restrict app background data."
I did this for all the apps that gsam identified as being the wifi/battery users. And frankly there are almost no apps that I actually want using data when I'm not using the app itself anyway, except SMS and gmail. (I wish there was a way to just say "actually shut this app down when I close it", so I could activate it for most apps!)
Anyway -after doing this, I activated the setting to turn off the wifi radio when the phone was sleeping.
Result? 2% battery drain overnight, and minimal cellular data use. Amazing.
(Btw - I also uninstalled the twitter app and just put a link from chrome on my desktop. The web mobile app is very good anyway and I'm not much a twitter addict so this is a fine alternative that is a lot less intrustive for me).
jamtre said:
I've been thoroughly impressed with battery life on the Moto Z as a result of normal use. Less so with idle battery consumption. That is, after installing my full complement of apps (including facebook and twitter), I did a few tests by going too bed on a full charge, and found that 7 or so hours later, it had burned down 15-20% doing nothing overnight!
I installed gsam batter monitor since the stock one is kind of useless. This provided a lot of valuable info, which is basically that Twitter is a huge hog, Facebook surprisingly isn't, and google play services also seems to be spinning its wheels a lot when I'm doing nothing. But most of my juice was going to powering the wifi radio.
Android M has a setting to turn off wifi when the phone is sleeping. I was reluctant to do this at first because I figured my apps would just start wasting my data instead. However, you also have the ability to selectively limit apps' ability to use cellular data when running in the background. In an app's settings you can click "Data Usage", then "Restrict app background data."
I did this for all the apps that gsam identified as being the wifi/battery users. And frankly there are almost no apps that I actually want using data when I'm not using the app itself anyway, except SMS and gmail. (I wish there was a way to just say "actually shut this app down when I close it", so I could activate it for most apps!)
Anyway -after doing this, I activated the setting to turn off the wifi radio when the phone was sleeping.
Result? 2% battery drain overnight, and minimal cellular data use. Amazing.
(Btw - I also uninstalled the twitter app and just put a link from chrome on my desktop. The web mobile app is very good anyway and I'm not much a twitter addict so this is a fine alternative that is a lot less intrustive for me).
Click to expand...
Click to collapse
I just got the phone a couple days ago. I appreciate the info here. I have also read that if you just turn wifi to 2.4 GHz only that it will keep the battery drain from happening. I don't use twitter or facebook so don't have to worry about those. Google play services has been a problem since marshmallow. If we could root we could use something like Amplify to stop all the wakelocks, but root is getting hard to come by on these new phones.
I noticed on Gsam that my phone will sleep well for a while, then the "held awake" category starts to take off. I have to reboot to get it to doze again. I have agressive doze and doze on the go activated in Greenify. Not sure what gets it started, but it would be nice to be able to kill it off without rebooting.
I bought a USB C to regular USB and have been charging without the Turbo Charger and the battery is doing so much better.
I was getting frustrated with the battery performance.
Sent from my XT1650 using XDA-Developers mobile app

Battery Life and Wakelocks

Hi guys,
so i newly setup my phone recently with OOS 4.0.3 in order to have a clean phone for the most efficient use.
For my surprise, for the first time using the 3T my energy efficiency was very good, i managed to get 4,5h SOT with the first 50% because i had almost no drain when the screen was turned off.
I attached the screenshots.
Basically, i just flashed OOS 4.0.3 and the newest franco kernel and magisk for root. I didnt use greenify (which i usually do), just the strict standby option in the android settings.
So far so good, but now to the part i cant understand.
I installed gsam battery monitor and gave it root access, so i can have detailed battery information.
From that point, i experienced again the standby drain combined with wakelooks, as u can see in the screenshot starting around 60% of the battery.
So far i uninstalled the app, i used greenify, but i cant get back when i had no wakelocks.
Is it really because of Gsam Battery? How can get away the standby drain without setting up the phone completely new?
PS: I also deactivated some of the access rights of apps, especially for play services.
Is it possible that they regain the access by themselves or that google play services is draining the battery
LazerH said:
Hi guys,
so i newly setup my phone recently with OOS 4.0.3 in order to have a clean phone for the most efficient use.
For my surprise, for the first time using the 3T my energy efficiency was very good, i managed to get 4,5h SOT with the first 50% because i had almost no drain when the screen was turned off.
I attached the screenshots.
Basically, i just flashed OOS 4.0.3 and the newest franco kernel and magisk for root. I didnt use greenify (which i usually do), just the strict standby option in the android settings.
So far so good, but now to the part i cant understand.
I installed gsam battery monitor and gave it root access, so i can have detailed battery information.
From that point, i experienced again the standby drain combined with wakelooks, as u can see in the screenshot starting around 60% of the battery.
So far i uninstalled the app, i used greenify, but i cant get back when i had no wakelocks.
Is it really because of Gsam Battery? How can get away the standby drain without setting up the phone completely new?
PS: I also deactivated some of the access rights of apps, especially for play services.
Is it possible that they regain the access by themselves or that google play services is draining the battery
Click to expand...
Click to collapse
Don't deactivate app rights of play services. It would break the functionality randomly and u won't know what happened. Just enable and reboot. Next time something happens, check the stat in gsam battery monitor. It's a good app and I am using it from 3 years.
It's not gsam I've had it installed on every phone for years and I always get amazing battery life.
I dont use google apps at all besides gmail and maps sometimes. But ill try around if it makes a difference.
I also cant believe that GSAM really is the problem there, but i didnt change anything else, i was just surprised of the good battery life and wanted to see the characteristics of battery statistics when i have a normal standby drain.
And immediatelly from that point on, the standby drain changed as u can see on the screenshots, even after uninstalling GSAM.
I now get 2h SOT with 50%, not 4,5.
So, is it possible that anything influencing that is changing by itself?
I didnt install any app or changed any setting, all i use was setted up in the beginning (franco, magisk, viper, all apps)
Yes google play store and google play services if you downloaded it and installed it that way? Google ruins battery life very randomly. If you restored a titanium backup or sideloaded the app then I have no clue. Even if you didnt do anything different there are a ton of things that can go wrong with android in the background. Recharge and reboot and start over.
954wrecker said:
Yes google play store and google play services if you downloaded it and installed it that way? Google ruins battery life very randomly. If you restored a titanium backup or sideloaded the app then I have no clue. Even if you didnt do anything different there are a ton of things that can go wrong with android in the background. Recharge and reboot and start over.
Click to expand...
Click to collapse
tried everything already + wiping cache/dalvik
I just now wiped also system and dirty flashed the ROM + the stuff i need. Ill see it that solves the deal.
I just cant accept to not have the control over my phone as thats one of the advantages of rooting. I got the same battery life with same usage with my 2,5 year old OnePlus One.
I run the same apps on every phone and this phone has doubled the performance and battery compared to my nexus 6 note 5 and nexus 6p. First phone I've owned that actually sleeps when I turn off the screen.
954wrecker said:
I run the same apps on every phone and this phone has doubled the performance and battery compared to my nexus 6 note 5 and nexus 6p. First phone I've owned that actually sleeps when I turn off the screen.
Click to expand...
Click to collapse
The OPO with CM back then was a dream.
Are u using any apps or adjust settings in order to tweak that behavior?
LazerH said:
The OPO with CM back then was a dream.
Are u using any apps or adjust settings in order to tweak that behavior?
Click to expand...
Click to collapse
I've been on CM13 since the day it came out Dec 11th. I was getting amazing battery and standby on stock since I got the phone late November. I use xposed for tweaking everything but no modules or apps or settings for battery savings.
LazerH said:
Hi guys,
so i newly setup my phone recently with OOS 4.0.3 in order to have a clean phone for the most efficient use.
For my surprise, for the first time using the 3T my energy efficiency was very good, i managed to get 4,5h SOT with the first 50% because i had almost no drain when the screen was turned off.
I attached the screenshots.
Basically, i just flashed OOS 4.0.3 and the newest franco kernel and magisk for root. I didnt use greenify (which i usually do), just the strict standby option in the android settings.
So far so good, but now to the part i cant understand.
I installed gsam battery monitor and gave it root access, so i can have detailed battery information.
From that point, i experienced again the standby drain combined with wakelooks, as u can see in the screenshot starting around 60% of the battery.
So far i uninstalled the app, i used greenify, but i cant get back when i had no wakelocks.
Is it really because of Gsam Battery? How can get away the standby drain without setting up the phone completely new?
PS: I also deactivated some of the access rights of apps, especially for play services.
Is it possible that they regain the access by themselves or that google play services is draining the battery
Click to expand...
Click to collapse
I found 4.0.3 would get wakelocks from location service. I have installed firmware from OOS 3.5.4 and used Leandroid, since then I've had my old battery life back.
damiensturdy said:
I found 4.0.3 would get wakelocks from location service. I have installed firmware from OOS 3.5.4 and used Leandroid, since then I've had my old battery life back.
Click to expand...
Click to collapse
I like that app, but its only fully functional with SuperSU. Do u know if there is any similar app also working with Magisk?
LazerH said:
I like that app, but its only fully functional with SuperSU. Do u know if there is any similar app also working with Magisk?
Click to expand...
Click to collapse
Which app? Magisk?
Magisk has its own root now. Fyi
Navi44 said:
Which app? Magisk?
Magisk has its own root now. Fyi
Click to expand...
Click to collapse
I know, but the app still asks for root permission with SuperSU for all the foot options
LazerH said:
I like that app, but its only fully functional with SuperSU. Do u know if there is any similar app also working with Magisk?
Click to expand...
Click to collapse
Some parts of it only work with SuperSU, sure. The important bit that fixes the MRa big does unfortunately.
Not found a magisk equivalent, but I'm eager to find one!
I just recently got my 3T two weeks ago running OOS 4.0.3 and I also notice a lot of wakelocks, especially when on mobile data (3G/4G).
I am still tinkering to figure out what are the root causes for wakelocks in this case.
I suggest you install BetterBatteryStats from XDA, it does provide a lot of good info. GSAM is good too but I prefer BBS. You can grant it permissions to Battery_Stats if you are not rooted.
Here are my findings so far:
Google Services likes to access the GPS a lot, so I turned of Location History. This resulted in fewer wakelocks when the screen is off.
I have changed the GPS and set it to GPS Only so that it doesn't use the cell towers and WiFi to help determine a location. I am not sure if this makes a difference for wakelocks yet.
I know Nougat has doze, I am not sure how well it works...fortunately there is Aggressive Doze in the battery section of the settings. I have not tested this yet but this is something I will look into once I have determined all others aspects that may be causing wakelocks.
I do have the LED notification light enabled and I am using LightFlow to manage it. It works in conjunction with the built-in LED settings from OOS. This is fine, but I do believe this may cause wakelock issues.
Once again, in my experience, I get a lot of wakelocks when I am on mobile data compared to being on WiFi and I am not sure why there is a difference.

Categories

Resources