Explanation of Nougat Battery Consumption and Workarounds for Better Battery Life - Huawei P9 Guides, News, & Discussion

Hello guys. This topic is pretty long and it is hard to read all of it but try to read all of it till end.
Well, let me begin. The main problem of the nougat update is the dramatic increase of battery consumption (for me at least) But why this is happening?
Actually this is a matter of battery managers. Huawei had created a great phone but obviously they messed things up in the software side. Google announced "Doze" feature with Marshmallow. If we could have a brief explanation of "what doze is" is it is basically a battery protection policy created by google. In Android, apps have the ability to use what’s called a “wakelock” to prevent your phone from going into a power-saving deep sleep mode. This deep sleep mode usually kicks in when your phone’s screen is off, but that can get in the way of how some apps work. For example, if you’re using a fitness tracker, you don’t want your phone turning off GPS or your accelerometer just because your phone is in your pocket with the screen turned off.
In principle, this is a good concept. Apps keep your phone awake and working when they need to, and let it sleep when they don’t. This is a problem, though, when every developer thinks their app is important enough to keep your phone on all the time. That’s why apps like Facebook kill your battery, even when you’re not using them.
Doze helps solve this problem by periodically blocking wakelocks and shutting off network access if your phone goes unused for a while. It will then periodically allow apps to check in during “maintenance windows” every so often (these windows occur less frequently the longer you don’t use your device). Here is a graphical explanation of how doze works versus time:
http://itresan.com/wp-content/uploads/2016/05/doze-header.jpg
Doze helps solve this problem by periodically blocking wakelocks and shutting off network access if your phone goes unused for a while. It will then periodically allow apps to check in during “maintenance windows” every so often (these windows occur less frequently the longer you don’t use your device)
If we turn back to the main topic, as I mentioned before, Huawei has some difficulties combining it's own features with google's. Huawei has its own battery manager. That's why you are not receiving some notifications from facebook or whatsapp. That is because that freaking battery manager shuts everything off but still, since it has a very poor approach, the system drains battery. It is basically a matter of doze does not kicking in. As you can see, the battery usage when the screen is turned on is about the same. However, the same thing cannot be seem when the screen is off.
So what to do in order to save some juice?
-There is some workarounds for doze kicking in like these ones:
https://play.google.com/store/apps/details?id=com.yirgalab.dzzz
https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze
These two apps have different approaches. I prefer ForceDoze as it seems the google's intended way.
I want to highlight this item because this might be the most important thing in this topic. If you don’t do anything with your phone, Doze will still do its job. It runs almost invisibly in the background. Occasionally you’ll get a few messages at once, rather than spread over a few minutes, but for the most part there’s no noticeable change. In other words this is a bit different from the conventional full deep sleep and you do not have to afraid from doze as you do with the full deep sleep.
-DO NOT CLEAN YOUR RAM TOO OFTEN. This will cause closed apps re-open and hence, more cpu usage.
-No! Cleaners, Task managers and other stuff does not work! As I mention before, they even lead more battery consumptions.
-Huawei has poor google service implementations. Even one or two implementation has some bugs that causing battery drain(for example: google backup). Try to turn them off.
-Know when to reboot your phone. Too frequent reboots may do the same thing as you cleaning your ram. However, rebooting cleans app caches so the system will work smoother. Once a week or two weeks is fine I suppose.
Please hit the "Thanks" button if you like and please point out the missing things and if you see a mistake please warn me for correcting it. I hope you liked the topic.
Have a nice day!

Doze is problem for me. I don't have push notification by the night.

darrr1 said:
Doze is problem for me. I don't have push notification by the night.
Click to expand...
Click to collapse
It's probably not because of the doze but the huawei's power manager itself.

Problem starts when phone is not active longer than 2-3 hours. In root I removed phone manager and it did not help fix the push notification problem

darrr1 said:
Problem starts when phone is not active longer than 2-3 hours. In root I removed phone manager and it did not help fix the push notification problem
Click to expand...
Click to collapse
Assuming that you are on huawei release (not los releases), untick your app from close apps after screen lock. Then go to apps, settings, special access, and make the system ignore battery optimizations for the spesific app you want to get notification from.

I did everything what I can without succes.

furkey said:
Assuming that you are on huawei release (not los releases), untick your app from close apps after screen lock. Then go to apps, settings, special access, and make the system ignore battery optimizations for the spesific app you want to get notification from.
Click to expand...
Click to collapse
first thanks for this tip. i hate it that i dont receive whatsapp messenges all the time, i hope it will work now.
BTP:
I assume huawei did not remove "doze" from our firmware, but maybe they replaced it with theire own battery manager?
Is there a complete source for doze, so we can check if everything is there? If yes it should not be that hard to activate doze and deactivate the huawei one.
But i guess we need at least the kernel sources to clear things up?

xtcislove said:
first thanks for this tip. i hate it that i dont receive whatsapp messenges all the time, i hope it will work now.
BTP:
I assume huawei did not remove "doze" from our firmware, but maybe they replaced it with theire own battery manager?
Is there a complete source for doze, so we can check if everything is there? If yes it should not be that hard to activate doze and deactivate the huawei one.
But i guess we need at least the kernel sources to clear things up?
Click to expand...
Click to collapse
Doze is not on kernel level but it is on software level. Programmatically we can activate what is left from doze or at least simulate it. However, if there is a certain need for doze we should cook a whole new rom and yes, it requires open source too.
But, let's clear a thing here: Huawei did not completely removed doze. Actually, I think they can't do that if they wish to use Android. Just some settings of Huawei conflicts with doze and prevent its functioning.

I'm using the honor 9 with emui 5.1 (android 7.0) and screebl (app used to control how and when screen locks/times out) is constantly getting killed. I have added it to ignore(=allow to run) in battery optimization and it's activated as a device administrator. It is not selected to close (power intensive app prompt) or instructed to close when screen goes off. Yet it repeatedly is getting killed - is there something else I need to do? I can't seem to find anything else I can do to stop it from being killed and it's a major nuisance.

antimatter.web said:
I'm using the honor 9 with emui 5.1 (android 7.0) and screebl (app used to control how and when screen locks/times out) is constantly getting killed. I have added it to ignore(=allow to run) in battery optimization and it's activated as a device administrator. It is not selected to close (power intensive app prompt) or instructed to close when screen goes off. Yet it repeatedly is getting killed - is there something else I need to do? I can't seem to find anything else I can do to stop it from being killed and it's a major nuisance.
Click to expand...
Click to collapse
Could you finally solve this?
I also have and Honor 9, and have the same problem with aplicacition radardroid. Is getting killed, and also have all configured to prevent this...

Try by having both in the Settings
-Battery/Close apps after lock screen (uncheck in the list)
-Apps/Settings gear/Special access/Ignore battery optimization (make it allowed)

Thank szgfg,
Both are already well configured, but still closing the app.

mikicl said:
Thank szgfg,
Both are already well configured, but still closing the app.
Click to expand...
Click to collapse
Check also is not being closed by the automatic cleanup (so add it to clean whitelisted apps) and that is not being closed due to high consumption...disable that on battery settings... Let the advertisement but do not let phone administrator close that apps automatically
Enviado desde mi EVA-L09 mediante Tapatalk

Hi jcalderonv74,
Thanks for your answer. I didn't know about the clean whitelisted apps, was a surprise to find it. But unfortunetly, everything was well configured.
Option to avoid being closed due to high consumption was already OK.
So nothing to change, everything was as it has to be. Seems more a software problem in EMUI 5.0

After some days without touching anything in the phone's configuration, finally observed that everything is working fine. All aplications configured keep opened, and it's only Radardroid aplication that sometimes closes alone (only sporadically after a recent update)
Seems more an error in Radardroid aplication that in telephone's software. So I'm not worring more about that.

Related

[Q] Z3 Dual D6633 + Lollipop: from heaven to Hell

Sony xperia Z3 Dual D6633 Android 5.0.2 Build 23.1.1.E.0.1
Hi there,
Upgraded my Z3 to lollipop last week and, despite the fact that the upgrade itself was flawless, I think I went from a device that used to work like a charm to one full of annoyances.
On day #1, noticed the batt drain skyrocket. 3h after disconnecting it, it was at 68%, half way through the morning. WTF? was my first thought. On a typical day on kitkat, I was able to end the day at 40% at least.
The second thing I´ve noticed was the phone app. It starts giving me errors, saying that the "network could not be reached" when I try to dial a number. If I insist for 4, 5 more times, it crashes. Dialing is only possible again if I reset the phone.
The third thing is the lock screen. It seems that lollipop has a drop down menu that makes it possible to enable/disable lots of things, like communications and even setting the phone in airplane mode. Imho that´s a huge liability / security risk and it appears that there is no way around that.
Still about the lock screen, it seems to have a bug: if you have any activesync account setup, not notifications will show up, no matter how you configure it (to show all or hide sensitive content).
So, I had only one thing to do, after reading forums etc... factory reseting it.
Surprise! All problems are still there.
Does any1 have any tips on those?
Thanks in advance.
There will be a widget on one of the screens which keeps refreshing itself and I found that to be the battery killer on my 6603.
Did you use any specific app to pinpoint the culprit?
1. It is possible that the battery levels are calibrating and will be imprecise for a while after the update, using the device normally for a couple of days will fix it, or at least this is what I observed in many phones I owned.
2. This is very weird and I can't help you with. If not even factory reset did help you may have some corrupted data on one of your contacts maybe? Try to make a thread about this issue on the Sony forum.
3. I noticed that as well, but even on pervious versions you could turn off the phone so I don't think it changes anything. Make sure to disable the multi user options that would allowanyone to add a new user from the lock screen.
4. Another weird thing, I use exchange accounts on my phone and I don't have any problem on mine. See point 2.
Under
settings>sound and notifications>when device is locked
Set to hide sensitive notification content or don't show notification content at all.
This should fix lock screen displaying email notifications from your exchange account.
Also, unlock phone, pull down notifications, pull down again to reveal quick settings, hit the edit button (pencil) and remove icons but clicking and holding and drawing them to the top. Unfortunately this removes them even when phone is unlocked but of your worried about unauthorised toggling of things on off its the best you can do I think.
As for battery drain, check the battery usage in
Settings>power management
Make sure stamina mode is on, toggle it off then on to make sure.
Select battery usage and check to see if any apps are using more than they should. Make sure brightness is set low but enable adaptive brightness under display settings.
ozzy lion said:
Under
settings>sound and notifications>when device is locked
Set to hide sensitive notification content or don't show notification content at all.
This should fix lock screen displaying email notifications from your exchange account.
Also, unlock phone, pull down notifications, pull down again to reveal quick settings, hit the edit button (pencil) and remove icons but clicking and holding and drawing them to the top. Unfortunately this removes them even when phone is unlocked but of your worried about unauthorised toggling of things on off its the best you can do I think.
As for battery drain, check the battery usage in
Settings>power management
Make sure stamina mode is on, toggle it off then on to make sure.
Select battery usage and check to see if any apps are using more than they should. Make sure brightness is set low but enable adaptive brightness under display settings.
Click to expand...
Click to collapse
That's not a smartphone anymore, with all functions shut down and brightness low.
This phone has the best screen, use it at least 50% brightness.
I have no issues with the brightness down. It bumps up nicely in brighter conditions and will even max out in daylight. If I ever need it brighter then it's easy to boost temporarily. It's a small price to pay for nearly 24 hours of battery with 5 hours screen on time.
I never mentioned shutting down functions. The only thing I mentioned removing was the toggles that concerned the op on the quick settings. Removing mobile data and aeroplane mode from quick settings hardly cripples the device, I never use these anyway.
I don't think it very useful that there's not more customisation available here such as a complete set of separate lockscreen settings. But if all you can do is comprise then what else can you suggest?
I don't think unlocking the bootloader and installing a custom ROM is something the op wants to do.
ozzy lion said:
I have no issues with the brightness down. It bumps up nicely in brighter conditions and will even max out in daylight. If I ever need it brighter then it's easy to boost temporarily. It's a small price to pay for nearly 24 hours of battery with 5 hours screen on time.
I never mentioned shutting down functions. The only thing I mentioned removing was the toggles that concerned the op on the quick settings. Removing mobile data and aeroplane mode from quick settings hardly cripples the device, I never use these anyway.
I don't think it very useful that there's not more customisation available here such as a complete set of separate lockscreen settings. But if all you can do is comprise then what else can you suggest?
I don't think unlocking the bootloader and installing a custom ROM is something the op wants to do.
Click to expand...
Click to collapse
You said stamina.
Stamina means already some functions off.
Update:
1. Batt drain
Remains without an explanation. My daily use profile is basically the same as before the update. 3PM and I am at 28%, with stamina on. I can´t recall a day, running kitkat, that I would hit the charger at night with 28% of batt remaining (and I still have 4h to go). It was always on 40% ish. GSAM is reporting that 47% of the batt drain is caused by apps and, from that, 30% is represented by android core apps + android system + kernel. I might be wrong, but I think it is related to reindexing, contact + agenda sync etc and it will probably get lower eventually (I hope!)
2. Phone App giving errors
I think I have isolated the problem. It seems to be caused by TrueCaller.
3. Lock screen
Regarding the drop down menu, It is clear now that what I think is a problem is, in fact, by design and there is no way around it without rooting. But regarding the notifications, I just removed both activesync accounts and I started getting notifications in the lock screen again. So, my guess is that there is a policy of some sort that is being interpreted by the phone as it should hide all notifications from the lock screen.
In fact, there are lots of things that got blocked / disabled because of those policies. Here is a list of things that were disabled and now appear to be working again, after the removal of the activesync accounts:
. notifications are showing again in the lock screen;
. smart lock;
. screen lock options (none, swipe, pattern);
note: I thought that I would be able to enable services in Accessibility, like LastPass or App Advisor by Norton, but it still does not work (I try to enable any of them, but pressing "ok" on the warning dialog does nothing and the only option working is "cancel").
Thinking about resetting it again...
Hi, if problems are persistant you can always downgrad software at KitKat by using FlashTool and wait Lollipop 5.1 (5.1 will probably solve many problems).
StealthNet said:
Update:
1. Batt drain
Remains without an explanation. My daily use profile is basically the same as before the update. 3PM and I am at 28%, with stamina on. I can´t recall a day, running kitkat, that I would hit the charger at night with 28% of batt remaining (and I still have 4h to go). It was always on 40% ish. GSAM is reporting that 47% of the batt drain is caused by apps and, from that, 30% is represented by android core apps + android system + kernel. I might be wrong, but I think it is related to reindexing, contact + agenda sync etc and it will probably get lower eventually (I hope!)
2. Phone App giving errors
I think I have isolated the problem. It seems to be caused by TrueCaller.
3. Lock screen
Regarding the drop down menu, It is clear now that what I think is a problem is, in fact, by design and there is no way around it without rooting. But regarding the notifications, I just removed both activesync accounts and I started getting notifications in the lock screen again. So, my guess is that there is a policy of some sort that is being interpreted by the phone as it should hide all notifications from the lock screen.
In fact, there are lots of things that got blocked / disabled because of those policies. Here is a list of things that were disabled and now appear to be working again, after the removal of the activesync accounts:
. notifications are showing again in the lock screen;
. smart lock;
. screen lock options (none, swipe, pattern);
note: I thought that I would be able to enable services in Accessibility, like LastPass or App Advisor by Norton, but it still does not work (I try to enable any of them, but pressing "ok" on the warning dialog does nothing and the only option working is "cancel").
Thinking about resetting it again...
Click to expand...
Click to collapse
A new firmware version has dropped for the Z3 which I think fixes your issues with notifications.
I received it OTA yesterday, I'm running the Balkans customisation.
Thank you for the tip! I hope it does! Will keep it posted here just for the reference. I am starting to feel other "symptoms" as well, like bluetooth instability (you pair a device and it stops working, have to pair again).
.
Just hit another weird thing.
I am not being able to create a new vpn connection. I am trying to use the PureVPN and IPVanish client software, but when I try to setup the conection, I receive a disclaimer, saying that my traffic might be monitored, with a "CANCEL" and "OK" options. The OK doesn´t work, only "CANCEL".
My device is encrypted and I have also noticed that I am not able to decrypt it.
Also, If I go to Accessibility and try to enable a service, the same thing happens: a disclaimer appears, saying that the service might observe my actions, with a "CANCEL" and "OK" options. The OK doesn´t work, only "CANCEL".
Any ideas?
Ok, just a quick fup: the ability to create VPNs from apps is disabled if you encrypt the phone. It seems that if you create if before encrypting, it won´t be disabled; but you wont be able to create a new vpn from an app downloaded, after encryption.
Regarding the Accessibility > Services, after a *lot* of research, I have found that Twilight was the culprit. For the reference:
https://code.google.com/p/android/issues/detail?id=79637

Craig's Root Batter Saver - Lollipop Supported!

So i got installing all the battery saver apps, greenify etc... they all close apps and not much else, my version comes from the mind of an electronics engineer view point...
hardware drains power NOT some little app running in the background! (Purely software programmer logic... )
So my app grabs what states wifi/gps/bt/modem at the time the screen goes off...
When the screen comes on, it re enables them! Eg go bed with 95% wake up with 94% put in your pocket it just does it...
The 2nd feature is the lost/stolen phone feature while the app itself can not get your gps data (no permissions for it) it can switch gps on/off...
So you send "on" without the surrounding quotes, the app will then switch on gps/wifi/modem/bt... it then disables itself
Now you can use wheres my droid or any other location finding app to easily pinpoint your lost or stolen phone (try getting a location with gps/agps/data disabled which people often do to save power!)
(Includes option to keep wifi/gps untouched from the app)
as for ads!... the ui has 1 ad, no popups or notifications ... and when activated the activity with the ad on is destroyed and can't touch battery life ... at all
Craig's Root Battery Saver!
https://play.google.com/store/apps/details?id=saver.battery.craigs.craigsbatterysaver
Well done
Holy crap! Someone replied (first for me here lol)
Thanks!
To be honest, your app is great when it comes to save battery, but in my opinion your approach is plain wrong in terms of the main purpose of a smartphone - receiving notifications in a timely manner, not when you turn on the screen manually. The same purpose can be achieved by using DS Battery Saver, which will in addition turn on mobile data once per specific time interval to receive push notifications.
And you should reconsider your opinion about "software does not drain battery but hardware does". Check this great thread for example. I am using a combination of different apps (Greenify, Amplify, Power Nap) to tame aggressive services/alarms/wakelocks and I am able to achieve a battery drain close to 0.0% per hour while screen is turned off with WiFi, mobile data and location turned on the whole time without losing instant notifications.
The app supports wake up notifications (well, will... the app's not quite finished yet, been too busy to get everything finished)
If you had gone to the playstore you'd have seen
Also you might want to reconsider what i said..... hardware drains it not software!
You refer to wake locks ... well believe it or not, wake locks turn on hardware which drains the battery, i program microcontrollers with the esp8266 / bluetooth / compass / etc ...
Software can only drain the battery if it's purposely trying to max out the cpu, and if it did you'd know it's malware... there are wakelock detectors too
Craig Capel said:
The app supports wake up notifications (well, will... the app's not quite finished yet, been too busy to get everything finished)
If you had gone to the playstore you'd have seen
Click to expand...
Click to collapse
I came across this, therefore my reference to DS Battery Saver, that already is capable of exact those things. Nevertheless, your app is doing what it was designed for - saving battery (and this is pretty good, indeed).
Craig Capel said:
Also you might want to reconsider what i said..... hardware drains it not software!
You refer to wake locks ... well believe it or not, wake locks turn on hardware which drains the battery, i program microcontrollers with the esp8266 / bluetooth / compass / etc ...
Software can only drain the battery if it's purposely trying to max out the cpu, and if it did you'd know it's malware... there are wakelock detectors too
Click to expand...
Click to collapse
Well, I am familiar with what wakelocks are. But without software, that produces a wakelock, there would be no noticable drain, right? Thus we can go round and round here, I guess. From my point of view the most battery drain on an Android device is the result of poorly programmed software (which results in an unneccessary wakelock) and alarms waking up your device, not from ****ty hardware. You can hunt down those wakelocks/alarms by using apps like Better Battery Stats or Wakelock Detector and reduce them to a minimum without losing functionality. Therefore I consider this as a better approach.
But without software, that produces a wakelock, there would be no noticable drain, right? Thus we can go round and round here, I guess. From my point of view the most battery drain on an Android device is the result of poorly programmed software
Click to expand...
Click to collapse
Unless the software drains it by intensive cpu work, anything else has to be hardware, if i power a gps module, talk to it via uart to enable/disable it... then it's hardware doing it not software..
Take Qualcomm, the newer cpus support an embedded DSP
https://gigaom.com/2014/12/12/5-things-to-expect-from-qualcomms-flagship-mobile-chip-in-2015/
Qualcomm*made that feature possible*in the Snapdragon 800*with its DSP, and they’re pushing hot words even farther. New devices will have the ability to passively listen, using only a small amount of power, for more than just the word “OK.” Qualcomm calls this feature Snapdragon Sense.
The first feature it will enable is a much faster Shazam search. So if you find yourself too slow on the draw when trying to identify unfamiliar music, you’ll love this: When you boot up Shazam, it’ll already have been listening just a little bit, so it can identify the song in a few seconds.
Click to expand...
Click to collapse
As hardware gets smaller and uses less power, then things like the embedded dsp chip will allow you to use wakelocks without little drainage, but were no where near that yet...
think of it like this... software simply carries instructions which can turn on hardware via a field effect transistor, that binary 1 value shows up as 3v logic and the fet begins to conduct between the drain and source, this sets a flip flop and the hardware starts wasting power...
Or to put it another way after the software enables the hardware via a gpio the software stops, or better still, show me software draining the battery with all hardware services disabled... it can't
Good
Does it really work ..
Don't you believe the title? (Really works!)
Craig Capel said:
As hardware gets smaller and uses less power, then things like the embedded dsp chip will allow you to use wakelocks without little drainage, but were no where near that yet...
Click to expand...
Click to collapse
True words. I can also see your other points and do agree with them. But as you said, we are not even close to a system where wakelocks do not drain as much as they currently do. Would we have such a system, your app wouldn't be required, I guess. Therefore taming the unneccessary wakelocks is a good way to achieve a great battery life without losing functionality for the moment.
Awesome
Awesome!!!
Can't open the settings and this sound makes me rly angry lol. Why it makes this sound? (even my phone is silence)
Gesendet von meinem ONE A2001 mit Tapatalk
There are no settings... work in progress (says so in the play store readme)
I've had the flu for the past week so i've not been developing much... expect updates shortly to remove the "settings" option which annoyingly is placed there by default... i never put it there
The sound is cool no? ... it plays a low volume sound to indicate the app is working!
Alright, update includes support for android 4.1 for gps now... i'm slowly working my way through android oddities and different techniques to switch hardware / on and off and with 5 phones to use 4 of them use kitkat!
Had to stop for a break i've had the flu all week, throwing up constantly, later on i'll add the finishing touches to wake up notifications as right now it's extreme power saving mode...
Stay tuned.... oh and i found a bug supporting lollipop, fixed that too, so if you have lollipop and it never worked, it should now ...
Antibiotics did the trick! It was sadly not the flu but some rare bug...
I've almost finished the autowakeup every x minutes 5, 10, 20 min intervals..
Unless someone here can think up a value or maybe add it as an option.
.
I removed the blocking side of things prior i used a thread/sleep now i use a timer event this stops the lag when unlocking the device on older models...
nive work :good:
I dumped the smart check (as far as i can tell anroid never fails, so i removed it)
It should now be seamless between lock screen and the main screen without any more lock up due to the threading...
Enjoy!
great!! will try it. thanks!

[GUIDE] Improve Battery life and performance (no root)

MFirst of all i want to apologyze for my bad English.
After the nougat update i start getting a really bad battery life and have to charge the phone 3 times a day. I start digging in the problem and do test in search for a better battery. I managed to improve my 3hous SoT to get between 4.30 to 6 hours SoT.
The tweaks in this guide are not magical, there are just tips that help me improve a lot my battery life. There is no need to unlock bootloader or to root the phone. The idea is to make a good balance between functionality and battery life. Everyone can choose what thinks they want to sacrifice for battery life and what they want to keep. All the steps that are listed here are reversible and can't harm your device in any way. It is pointed to people that do not know a lot of this subject.
My advice is to full apply all the steps and after getting a good battery life start to enabling the features that you want to have on the phone one by one and test battery.
At the end of this guide there is a section with improvements wich aim is to make the moto x style look like more like the news motorola Phones.
Simple Tips for Battery life:
-After a major OS upgrade it is important to do a full factory reset, full wipe. When logging with your google acount start the device as a new device. Do not restore apps!
-Try to not use the Turbocharger. Based on my own experience, a good 1-2 Amp charger get a lot more juyce that the turbo charger. It may sound weird to you but i tested this a lot of times and really see and important difference. I only use the turbocharge when i am in a hurry.
-Do a full calibration of your battery. Let the battery get to 0%. Turn the phone off and let it charge to 100% and left it plugged a little bit more. After that unplugg the phone, restart it and see if the % is still 100%. If not plugg the phone again after a 100% charge and repeat the process until you get a full 100% charge or near that number.
-A good advice if to left the phone charging in the nigth, or when you think it is a good moment. After get to 100% of the charge, unplugg the phone, restart it and plug it again. For my the battery is not getting a good reading after Nougat update. After a restart i always "lost" like 8% of charge. I do this every time i charge the phone.
-The NOUGAT room is draining battery very very fast when there is bad celular signal. So if you are not having a good celular signal it is a good advice to put the phone in airplane mode until you change your location. Also, there is drain with bad wi-fi signal so try to avoid that too. It is not strong like the celular drain but can influence in your final results.
-Turn off location when you are not using it. If you have to use it try to use the "battery saver mode" and put high accuaricy when you are going to use the GPS for a precise fix or navigation. Google Play Services have and excess use of wackelocks due to location, they are listed ass NLPcollectorwackelock and NLPwackelock.
-If you are on Wifi turn off data and if you are in data turn off Wifi. If you can use both try to use Wifi with a good wifi signal. It uses a little bit less battery that 4G for me.
-Unninstall apps that you are not using or going to use in a short-mid time. They may be running in the background and eating
juice.
-Turn off automatic brigthness. Put your brigth to the minimun you are happy with. I used mine almost in the minimun and i see the screen perfect. Also remember that the power scale is non linear. Putting the wheel in the half of the brigthness bar is not getting you "half the brigthness of the screen".
Download autobrigth switch https://play.google.com/store/apps/details?id=com.abrody.brightness&hl=es_419 .This make you turn autobrigthness on with a click. This is very usefull if you are outside, let you see the screen with 100% and then let turn it off when you are inside. It is a easy way to manage brigthness.
IMPORTANT:When you are not using your device it must go to sleep mode. It is a mode where the CPU is almost turned off and it doens't drain much battery. Later in this guide i will explain how to properly install a Battery monitor program. It is very important to watch if the device is sleeping ok and there aren't apps with bad behaviours keeping the device awake and draining your battery. This can be seem in GSAM Battery monitor watching the held awake tab. If an app is keeping your device awake you have to uninstall or contact the developer and tell him about your problem with his app.
Tunning the system to Optimize the Battery and Performance:
For this part you will need to have installed ADB drivers, you can download and install from here:
https://forum.xda-developers.com/showthread.php?t=2588979
You have to activated debug mode on the phone:
Go to settings, about phone, tap 7 times the Compilation Number until you see a message saying that you are a developper. Now go to settingss, developer and activated USB DEBUG mode. To see what apps are running in the background on your phone go to settings, developer, in execution.
Also you will need to install 4 more free apps, later they can be uninstalled if you want:
App inspector to know the name of certain package:
https://play.google.com/store/apps/details?id=bg.projectoria.appinspector
App Ops to manage special permissions of apps:
https://play.google.com/store/apps/details?id=com.findsdk.apppermission&hl=es
Shizuku Manager is needed to give the permissions necesary to App Ops:
https://play.google.com/store/apps/details?id=moe.shizuku.privileged.api
Gsam battery Monitor for monitoring apps usage:
https://play.google.com/store/apps/details?id=com.gsamlabs.bbm&hl=es
The aim of this part of the guide is to disable all the features and apps that may be drainning your battery.
All of this can be reverted one by one after getting a good battery and testing the results and the impact on battery life:
-Turn off location, bluetooth, NFC.
-Go to moto app and turn off Moto Voice, Moto screen, Wave to wake. I keep the flaslight and the cam gesture on but you can dissable them if you want.
-Go to settingss, Motorola privacy and turn off enhancet device support and help us with bla bla.
-Go to settings, security, back up and turn off data back up.
-Go to settings, location, turn of Google location History and share location of google. In the Rigth upper corner tap on the 3 dots and turn of bluetooth scanning and wifi scanning.
-Go to settings, google, search, and turn off all the features like feed, nearby, voice detection, notifications, doodles, google fit, firebase App Indexing.
-Go to settings, google, security, dissable google play protect,etc. (If you consider this ass important do not disable it)
-Go to settings, apps, tap the 3 dots in the upper rigth corner and tap on show system apps. Disable Motorola device manager and Motorola notifications. Also delete the apps data.
-Go to accounts and turn off syncronizations of all the things you really don't need. For instance in google account i left on contacts, Chrome and Contacts info only.
-If you are using chrome go to settingss, site configuration. Turn off location, notifications, sync in the background. In the sync settings just let the chrome sync only what you need.
-Disable all google and motorola apps that you are not using. For instance Google Duo, hangouts, play music, play books, play games, carrier services, Motorola connect, talkback, devices help, etc.
-Search for apps that ask for permission you think they don't need it. Speacially location.
-Turn off special permission that you think apps don't need. The special permission can be managed going to settings, apps, tap the wheel, advance-special acces:Look to "change system settings" and "get over other aplications". Also turn off acces to data usage for Google Play and Google Play services.
-Go to settingss, security, trusted agents, disable smartlock.
-If you have apps like greenify installed, uninstall them.
-If you have home widgets be sure that they are not using your location and also if it posible put the refresh time to the minimum.
-I don't use GBOARD, it was not working ok for me and also draining battery. So i search in the internet and donwload the latest google keyboard version before GBOARD, it works perfect. I do not recommend GBOARD as it is not working ok and it is not propperly optimized.
Using ADB for Background process:
The next step consist of disabling System process and apps that you no not need to run in the background, for example MotoCare:
Motocare is a system process that runs in the background and collects info of your device use even if you turn off motorola privacy features. That not makes much sense but it is there and can't be disable in a easy way.
After installing ADB, drivers and turning on USB DEBUG MODE, plug the phone, go to the search bar in windows and search for CMD. Open it.
Write:
abd devices
Is everything is ok you will see a device in the list that is your Moto x Style. If not figure out what is the problem, make sure DEBUG MODE is on and that you give the propper permission in the phone.
Then write:
adb -d shell pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS
This will let you see full wakelock list in GSAM Battery Monitor app. This is very important to know if there is an app keeping your device awake.
next:
abd shell
cmd appops set "com.motorola.motocare" RUN_IN_BACKGROUND ignore
cmd appops set "com.motorola.motocare.internal" RUN_IN_BACKGROUND ignore
This last two lines will stop motocare. After this go to apps, with "show system apps" on search motocare and motocareint and delete all the data. After that check that motocare is not running in the background.
cmd appops set "com.motorola.ccc.ota" RUN_IN_BACKGROUND ignore
cmd appops set "com.motorola.ccc.checkin" RUN_IN_BACKGROUND ignore
This will turn off OTA services. If you want to take an OTA after this, (if motorola ever send another OTA for our device) you can just go to settingss, about phone and check for update manually. (After enabling Motorola device Manager and Motorola Notification). Anyway is there is a new OTA you probably are going to know it from XDA forums.
You can use the same command to disable apps that you don't need to run in the background but you want to use.
To use this commands just open app inspector, search the app you want. Copy the package name and use the command with that package. Anyway in the next step i will show you a easy way to do the same with other apps that are not from the system.
If you want to re enable and app to run in the background just reinstall it or write the same sentence changing "ignore" for "allow":
For example with Facebook. If you search it in app ops the package name is com.facebook.katana . The name of the package is "katana" because it is like smashing your battery with a Katana lol.
adb shell
cmd appops set "com.facebook.katana" RUN_IN_BACKGROUND ignore
to enable it:
cmd appops set "com.facebook.katana" RUN_IN_BACKGROUND allow
My advice is to not use this command with google services or with system apps you don't know what they do in your phone. It may get you in a problem.
Now we are going to see another way to stop apps for running in the background. This is usefull with apps that you want to keep and don't want to run in the background.
For example in my case, i use facebook app but don't want it to run in the background. Also i disable all navitagion apps to run in the background, Here we go and google maps in my case. They both work perfect when I open they, don't need them running in the background. I let apps like WhatsApp, Instagram, Tinder, Facebook Messenger to run in the background because i want to know when someone send a message and don't want to wait until i open the app. If you don't need the notifications my advice is to don't let run in the background. That will get you a considerable amount of battery. Whatsapp have a lot of battery drain. For some reasons it has the acelerometer turn on a ridiculous amount of time and it triggers google play services wackelock PackageMeasuremntservice.
Connect the phone via usb and launch terminal as we did before, search bar and search button, type CMD and open it. Open Shizuku Manager
Wrote in the terminal:
adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/files/start.sh
if you do it rigth you will see that the server starts running. Now unplugg your phone, close shizuku manager and open App Ops. If you turn off your phone you will have to repeat the process in order to get app ops running again.
Search for apps that you don't want to run in the background. In the permission settings there is "run in the background", you can turn it off or on from there. It has exact the same effect that doing it in the ADB terminal ass we did it in the previous step. But motocare can't be disabled from the app.
Also you can manage all the permission from the apps one by one in a lot better detailed way than from the stock app settings..
There is also a trick with google play services and location. I am getting a big wake up with NLPcollector and variants. If you turn off the network location permission in google play services it will stop the wakelock even if you have your location ON. That make google play services almost drainless. The problem is that some apps may not get a correct location in "battery saving mode" because they use google play services. This is fixed turning on high presition mode or device only mode and letting the GPS do the location work only when you need it.
Finally you can tweak all your apps permissions and see the battery results. The two most important permission related to battery life are the location and the background one. Try to disable location for everything you don't need to be tracking you.
Tunning your Moto X Style:
To get the new Camera app from motorola:
Go to apps, search for stock camera app and disable it. Delete all the app data. Go to settings, security and turn on "Unkown Sources".After that donwload the moded camera app from this tread:
https://forum.xda-developers.com/moto-x-style/themes-apps/moto-camera-6-0-43-10-modded-apk-t3459690
Restart your phonr and Install it! Now you have the new camera app . It work almost perfect, the only things that are not working for me are: Twist to change to selfie mode, shutter time in pro mode and white balance in pro mode. Don't forget to thanks the developer for this great app. Also turn off Unkonw Sources after the installation.
To get the Moto Z command Widget:
Donwload and install this app:
https://forum.xda-developers.com/moto-maxx/themes-apps/moto-z-command-center-widget-t3417171
Don't forget to turn location of the widget off, you can put your location manually and save battery.
Launcher 3:
https://forum.xda-developers.com/moto-z-play/themes/moto-z2-play-launcher-google-root-t3623608
It is the new Motorola Stock Launcher. You can try the Moto G5 Launcher too, it is in XDA.
Unlock Method:
The phone doesn't have fingerprint scanner but a good alternative is to use face unlock. LG and Samsung do a lot of marketing of something that is build in on android stock and work almost perfect. Go to security, turn smartlock on.Then go to smartlock and turn on face detection. It works like a charm, is almost instantaneous. My advice is to do this after getting a good battery life as smartlock features can affect battery. Make sure you don't have on trusted places on Smartlock as it drains your battery. Also if you have location ON it may drain your battery even if you don't have trusted place on, so take care. The trusted face feature on its own drains a negligible % of battery.
As i stated in the beggining:
If you want the best battery life you always have to do a compromise between it and features of the phone. For example i love moto display and the wave to wake feature but it takes so much juice of my phone.
My advice is to do all the steps, make sure you are getting a good battery life and after that start reenabling one by one the features you need and watching the impact of them in your battery life. Also i know that some of the stuff i mention may have a negligible impact in battery for themselves but when you put all together they do make a difference. My phone is draining almost 0% on stand by mode with doze. I let it with a %, go to sleep and when i wake up i have the same %.
At this moment i am testing battery on my phone and seeying wich features do make a big diference in battery life.
For instance i am using smartlock, face unlock with location off and in security settings i have android device manager enabled. They seems to not affect the battery performance so much. I will continue testing features to see wich ones are the main offenders.
Any suggestion or any question is welcome! Also if this helps you please let me know and post your battery life before and after.
Great guide, although might a bit extreme for some people to do all of these things.
I can tell you the biggest increase in battery life i have seen is to disable the Moto Display and Moto Gesture to wave over the display... My idle usage has stopped in half and maintains around 2% with it all off.
acejavelin said:
Great guide, although might a bit extreme for some people to do all of these things.
I can tell you the biggest increase in battery life i have seen is to disable the Moto Display and Moto Gesture to wave over the display... My idle usage has stopped in half and maintains around 2% with it all off.
Click to expand...
Click to collapse
Yes, i know that for some people it may be too much, but the guide is divided in parts so anyone can take what they seem comfortable with.
I agree with you, wave to wake and moto display are the main offenders and i feel that with nougat the battery drain of this features get agravated a lot more. It is a shame because i really like that features but they drain your battery even with the screen on..
Great guide, thanks
With the Nougat update my sot is way better up to 4 h, while on mm it was around 3.5h.
I just wonder why buy a phone with features like wave hand, etc. and not using them?
That's a pity that Moto doesn't have d2w like lg phones, it's very handy.
I don't like to look for button to press it every time.
I know that's everybody's choice. Just my 2 cents.
Does turning off all location stuff that you mentioned affects any usability, notifications, etc?
Sent from my XT1572 using XDA-Developers Legacy app
2be3_80 said:
Great guide, thanks
With the Nougat update my sot is way better up to 4 h, while on mm it was around 3.5h.
I just wonder why buy a phone with features like wave hand, etc. and not using them?
That's a pity that Moto doesn't have d2w like lg phones, it's very handy.
I don't like to look for button to press it every time.
I know that's everybody's choice. Just my 2 cents.
Does turning off all location stuff that you mentioned affects any usability, notifications, etc?
Sent from my XT1572 using XDA-Developers Legacy app
Click to expand...
Click to collapse
If your SOT increased on Nougat, it is because the OS is more efficient elsewhere... hardware power draw cannot be changed with software.
Why not use the gestures? Like anything else, they are unnecessary for normal operation and consume extra battery, waiting for detect you waving your hand over the display takes some power, not a lot, but over 10-12 hours it is noticeable... Why buy a phone with gestures if your just going to turn them off? Because the pluses outweigh the negative and there is no perfect device.
Moto probably doesn't implement DT2W because the screen technology they use would require the screen (digitizer actually) to be powered all the time, increasing idle battery draw from 2-5% per hour. It is implemented in some 3rd party kernels and ROMs, but few people use it because over 12 hours of sleeping time, it consumes 25%-50% of your battery capacity. :/
I'm not going to get into the other stuff, things like disabling Google Play services and location services and stuff like that, just take away too much functionality for my taste for what you gain. In general when not traveling, I need 3 hours of SOT in a day and this device generally makes that. When traveling (which I did on very regular basis for years until this week) I was under 50% before 9am and near dead by noon if I didn't charge or connect to battery pack. So in general these optimization are not enough to do what I need, so I just skip them.
2be3_80 said:
Great guide, thanks
With the Nougat update my sot is way better up to 4 h, while on mm it was around 3.5h.
I just wonder why buy a phone with features like wave hand, etc. and not using them?
That's a pity that Moto doesn't have d2w like lg phones, it's very handy.
I don't like to look for button to press it every time.
I know that's everybody's choice. Just my 2 cents.
Does turning off all location stuff that you mentioned affects any usability, notifications, etc?
Sent from my XT1572 using XDA-Developers Legacy app
Click to expand...
Click to collapse
For my after nougat update the battery life go to Hell. I was getting 3hs lf SoT wich is unaceptable for me.
I understand your point and i really like wave to wake. It is nice. For my is nicer to have 5hs or more of SoT. In nougat my wave to wake eats battery like crazy and i really don't need it much. Answering your question, disabling motocare only disable motorola remote support. All the other moto stuff doesn't affect the phone, only disable the OTAs. There is nothing in the guide that compromise basic functionality of the phone, maybe only disabling location permission on google play services with app ops can affect location on some apps. As i stated in the end, everyone have to chose between functionalitis and battery life.
After i managed to get 6hs SoT i start to enabling things and test how was my battery life. I will stop in the 5 hours SoT limit.
At this moment i reenable: moto voice, location in saving mode, smart lock with face unlock, android administrator to lock the device remotely and i am getting between 5hs to 5:20hs SoT. Next step is to try with moto display.
NahuelMS said:
For my after nougat update the battery life go to Hell. I was getting 3hs lf SoT wich is unaceptable for me.
I understand your point and i really like wave to wake. It is nice. For my is nicer to have 5hs or more of SoT. In nougat my wave to wake eats battery like crazy and i really don't need it much. Answering your question, disabling motocare only disable motorola remote support. All the other moto stuff doesn't affect the phone, only disable the OTAs. There is nothing in the guide that compromise basic functionality of the phone, maybe only disabling location permission on google play services with app ops can affect location on some apps. As i stated in the end, everyone have to chose between functionalitis and battery life.
After i managed to get 6hs SoT i start to enabling things and test how was my battery life. I will stop in the 5 hours SoT limit.
At this moment i reenable: moto voice, location in saving mode, smart lock with face unlock, android administrator to lock the device remotely and i am getting between 5hs to 5:20hs SoT. Next step is to try with moto display.
Click to expand...
Click to collapse
I have run ADB commands and after each and everyone I had no confirmation dialogue nor anything.
I have rebooted device and how can I check if I had done everything right?
Sent from my XT1572 using XDA-Developers Legacy app
2be3_80 said:
I have run ADB commands and after each and everyone I had no confirmation dialogue nor anything.
I have rebooted device and how can I check if I had done everything right?
Sent from my XT1572 using XDA-Developers Legacy app
Click to expand...
Click to collapse
If you have done everything rigth you wont see the apps running unless you open they. To see process in execution you have to go to seetings, about device, tap 7 times build number until you get the message that you are a developer.
Go to seeting again, you will see developer option. In there you search for in execution. If you do everything rigth you wont see motocare or moto things runnings. Same with the apps like facebook, etc. They only appear in execution when you open they or have they in recent apps.
Let me know if your battery get improved.
This if from last test:
Enabled moto display, moto voice, face unlock, location in battery saving mode. Disabling background things really help with battety life.
NahuelMS said:
This if from last test:
Enabled moto display, moto voice, face unlock, location in battery saving mode. Disabling background things really help with battety life.
Click to expand...
Click to collapse
That's really good achievement.
I can't get close to your results.
I have disabled moto apps running in background, location off, Moto display on, wave hand on.
I only use WiFi/network when needed.
Hmm what could be the culprit?
On this charge I think I will get about 4h sot.
Sent from my XT1572 using XDA-Developers Legacy app
2be3_80 said:
That's really good achievement.
I can't get close to your results.
I have disabled moto apps running in background, location off, Moto display on, wave hand on.
I only use WiFi/network when needed.
Hmm what could be the culprit?
On this charge I think I will get about 4h sot.
Sent from my XT1572 using XDA-Developers Legacy app
Click to expand...
Click to collapse
Yes, i think the average for those conditions is 5 hs (mine conditions)
Are you using turbocharger? How old is your phone? Maybe the battery is getting bad? Did you disable apps like facebook running in the background? Installed Gsam Battery monitor amd check there isn't an app eating your juice or keeping your device awake? Do you have good signal? My best advice is to do all the steps of the guide and see how much of battery life are you getting in that condition. Them start reenabling things like moto voice, moto display and finaly wave to wake. Did your battery got improved dissabling moto stuff?
Wave to wake for my on Nougat was a battery hog. Maybe try to disable it and see how much your battery improves!
My phone is from February 2017, never used turbocharger (I believe it's killing battery over time). Not using Facebook.
When updated to Nougat I did factory reset and disabled various Google apps that I don't use, like Duo, Google+, etc.
My sot was around 4 h with Moto display and wave hand gesture. After disabling Moto stuff from your guide though ADB I haven't noticed any improvements. I will observe few more days. I don't have any Moto update processes running in background.
I use Gboard and like it very much, so it's a keeper for me.
Thanks
Sent from my XT1572 using XDA-Developers Legacy app
2be3_80 said:
My phone is from February 2017, never used turbocharger (I believe it's killing battery over time). Not using Facebook.
When updated to Nougat I did factory reset and disabled various Google apps that I don't use, like Duo, Google+, etc.
My sot was around 4 h with Moto display and wave hand gesture. After disabling Moto stuff from your guide though ADB I haven't noticed any improvements. I will observe few more days. I don't have any Moto update processes running in background.
I use Gboard and like it very much, so it's a keeper for me.
Thanks
Sent from my XT1572 using XDA-Developers Legacy app
Click to expand...
Click to collapse
Try one or two days without wave to wake and see how much battery you can get. I don't think Gboard should be a deal breaker in battery life in comparison with google keyboard, i don't think it is the problem. Maybe there is an app keepping your device awake? Your phone is almost new so i doubt from battery problems. Can you post a screenshot of battery usage and signal, awake time, etc, from your android battery usage?
This is from today with mid usage and time with low signal:
Today I did factory reset and will observe how it goes without tweaks but with most apps shipped with phone disabled that I don't use
2be3_80 said:
Today I did factory reset and will observe how it goes without tweaks but with most apps shipped with phone disabled that I don't use
Click to expand...
Click to collapse
If you allready did a factory reset i don't think it will give much battery in same conditions and take into account that android take some cycles to calibrate the system and the apps, so battery duration should getting extended during the first week until it reach a plateau.
Just an FYI... Up until a week or so ago, I was averaging 2h 45m to 3h screen on time in an average day and since I started using my phone for work (BYOD program, always had a separate work device before) the battery life started really mattering so I made the following changes...
- Dropped Facebook and Messenger (MASSIVE battery hog apps, always at the top of the list) and moved to Facebook Lite (yes, you can get it in the US, just have to use APKMirror, and it includes Messenger services in the same app)
- Dropped Accuweather (was keeping device awake and accessing location dozens to hundreds of times per hour) and switched to 1Weather
- Dropped Microsoft Outlook (keeping device awake and using background data, and a Device Administrator I didn't want) and switched to Nine
- Dropped OpenSignal (was using background data and waking device very frequently)
- Disabled Moto Display entirely
- Disabled Moto Action Wave to Wake
These 6 things are all I have done... I keep all services active, high accuracy location, all accounts and services syncing, no background data restrictions, no disabled apps, backup and other services like Motorola services all running, no adjustments in permissions, using Gboard as my default keyboard, and I have ~120 apps installed, 80% of which are occasional use only. I use a Quick Charger about 50% of the time for boost charging at work or when traveling, but overnights it is on a standard (5v/1.8A) charger and not QC. I have seen my Doze and Deep Sleep times increase significantly, with Deep Sleep time approaching to 75%... And Screen On Time over a normal day increasing by nearly an hour on average... In fact, yesterday I had my best SoT in over a year with 4h 28m over a 16 hour day in mixed use, including a 6 hour YuGiOh tournament where I used the phone to keep score of my matches (with marginal LTE service and no WiFi), going out to eat 20 minutes away, and then back home for some video game time with friends and still have 20% battery remaining when it went back on the charger, probably could have gotten 5.5 hours if I pushed it near zero. Making it sufficient for daily use for me again.
Am I saying this is the answer for everyone? No, but install a good battery monitoring tool like GSAM Battery Monitor and see what is using your battery (make sure to enable advanced reporting, requires ADB connection)... and don't just look at the default screens, dig into the app after some use. The "View % Power Used" screen only tells part of the story... Make sure to look at View Number Times Waking Device, View GPS Time Used, and View Time Held Awake because some things are not always so obvious. Accuweather for one was "hiding" some of it's usage in Android System and Google services in the View % Power Screen, but when you looked in View Time Held Awake and View GPS Time Used, it became evident it was doing something.
Some other apps which can be culprits are shopping apps, they often track where you are frequently... such as Walmart, Sam's Club, Best Buy, CVS, and most other dedicated apps for shopping. Alternative messaging apps like Messenger, Whatsapp, Kik, Skype, Viber, SnapChat (currently the #1 battery killer out there according to several sources), etc. often keep the device awake and use background data. Airline and other travel apps often check your location every minute or even more frequently even when not open. "Optimizer" apps like LionMobi Power Battery, CleanMaster, and similar tools are worthless and usually consume more resources than they help with. News apps like BBC News often use background data and keep the device awake... Some of these apps might be worth it's battery consumption for your usage, maybe not, the point is to know the problem and decide if it's needs to be fixed or not.
All I am saying here is that before you blame the device or hardware, make sure it isn't your software or usage that is the real culprit, but sometimes it does take some digging.
The last update to the clock app is buggy for me. It is using massive CPU and kepping my device awake for hours. It is important to check if it is working ok.
NahuelMS said:
The last update to the clock app is buggy for me. It is using massive CPU and kepping my device awake for hours. It is important to check if it is working ok.
Click to expand...
Click to collapse
I would try clearing the clock cache / data
On Gsam the clock doesn't even show up on my CPU usage.
Hemidrosis said:
I would try clearing the clock cache / data
On Gsam the clock doesn't even show up on my CPU usage.
Click to expand...
Click to collapse
Allready did that but it didn't fix it. The problem was sporadiclly. Finally uninnstaled the update, cleared all the data and updated again, no sign of the problem for now! Thanks!
Facebook lite and messenger lite if you use those services help a ton all by themselves. Shopping apps I disallow them using background data and location. It's doesn't take that long to grab location once open. Saves a great deal of data and battery.. Amazon apps turn off background data takes care of most battery drain issues related to them.

[Guide] My Battery Optimization Guide for OnePlus 6

Hello everyone,
This guide is for non-rooted, stock-firmware phones. It is geared more towards getting good stand-by times, but of course this will also benefit screen-on time. It has some OnePlus-specific things but also many non-specific to one manufacturer. It does not contain miracle information, but from my experience it can help quite a bit. It assumes that you keep phone, mobile data, Wi-Fi and sync enabled at all times. Those are core features of any phone and are not means to save battery. The optimization steps are listed in the order which I think impacts battery life. You may or may not apply some or all of the things listed, depending on your own needs.
So:
1. Go to Settings->Battery->Battery optimization->[tap on the 3 vertical dots on the upper right corner] and enable the phone's "Advanced Battery Optimization" (aka. Aggressive Doze) feature, while at the same time whitelisting apps from which you need instant notifications, like Whatsapp or Outlook, etc. For other apps notifications may be delayed. Some applications like AdBlock Plus for Samsung browser also need whitelisting to work properly. Just go by trial and error with finding which applications need whitelisting.
2. Enable "Developer Mode" by going to Settings->About Phone and tapping 7 times on the "Build Number". Then go to Settings->Developer Options and enable the "App Wi-Fi Multi/Broadcasting Filter" option. I did not find any app impacted negatively by this, even casting to Chromecast works fine.
3. Go to Settings->Display->Ambient Display and disable the "Lift up display" and "Wake screen on notifications" options (which are useless compared to a true Always-On Display option anyway), and instead put the phone's RGB notification LED to good use. The Light Flow (one of many, but in my opinion the best) app can customize the LED color for different types of notifications, as well as setting a priority or cycling between colors. Since the LED's "always-on" nature, it is actually much more useful than a dead screen that only wakes up when lifted. When I use Light Flow, I set the LED blinking speed to "Always On" and a diffent color for each app. Works much better than any "ambient" mode.
4. Go to Settings->Display->Themes and enable the "Dark Theme". It reduces power consumption for OLED displays such as the one from the OnePlus 6.
5. Social media apps (especially Facebook) are battery hogs because they need to continuously gather your personal data and usage information. If you are only an occasional user, prefer uninstalling those apps and instead using the browser to access your account. This will also benefit you in other areas, like productivity
6. Keep Location off until you need it. This will ensure that the system does not wake up the GPS due to some obscure request from an app that can also work without knowing your location.
7. Go to Settings->Apps->Application list, tap on each app and review permissions. Remove Location permission for apps that you don't want to unknowingly wake up your GPS and draining your battery. I prefer to only allow Location access to Google Maps and Waze but your mileage may vary.
8. Disable Face Unlock. Activating the front camera so often does consume quite a bit of battery, as can be seen in battery stats. And as you may have read, it is not very secure anyway. As the rear-placed fingerprint sensor makes it almost unusable for me (for example I cannot unlock it while in the car cradle or on the desk), I chose to use the Smart Lock features with my Bluetooth smartwatch and my home Wi-Fi network and my phone stays unlocked while my smartwatch is around, which eliminates the necessity for both face unlock and fingerprint reader.
9. Prefer using software from companies that do not live from user data (like Google and Facebook). Collecting as much user information as possible requires wide system access and takes up a lot of battery. I like to replace Gmail with Microsoft Outlook (even for my Gmail addresses) and I use Samsung Internet instead of Chrome. The Samsung browser seems to be the most battery-efficient browser available, way above Firefox. Microsoft Edge may also be a good alternative.
10. Use an ad-blocker if supported by your browser. Animated ads and additional loading of ad-related content contributes quite a bit to the web browsing battery drain.
11. Go to Settings->Accounts->Google and for each Google account, tap on it and then disable syncing for information that you do not need synced. Clicking on a Google account shows you sections of info to be synced. Disable what you don't need. For example, you may only need Contacts syncing for your primary Gooogle account and not all of them. Same with Google Fit data, pictures, etc.
12. Go to Settings->Apps->Special Access->Usage Access and disable this access for OnePlus Switch and Google Play Store (not for Google Play Services, it may have unwanted side effects). This stops these apps from consuming system resources and battery to continuously collect usage data.
13. Go to Settings->Apps->Application list and disable applications that you don't need and can be disabled (some cannot be disabled).
14. Opt out of (do not enable) the "send diagnostic information" checkboxes whenever you are asked for, unless you are really selfless and want to give [a percentage of your battery life] to the community Go from app to app and see if it has this or similar setting (sometimes these settings are sugarcoated into "enhance your experience by sending your data to us"). Disable if found.
15. Do not enter your OnePlus account information. This will activate all kinds of data-sending services that will contribute to the battery drain.
16. Wipe cache after each update, especially if you notice worsened battery drain. To wipe cache, turn off the phone, then hold Power + VolDown buttons continuously until it starts, keep holding until a menu appears. After you enter your phone password you can choose "Wipe Cache/Data" section which brings another menu, choose "Wipe Cache" then after confirmation, choose Reboot.
17. If you are not using the landscape mode a lot, prefer to lock the phone rotation in portrait mode (the toggle is present among the quick toggles) and only unlock the rotation when needed. From what I have read, somehow the auto-rotation seems to unnecessarily cause some activity (even wake-locks), and from my experience I did see a bit of improvement from this tweak, looks like more than placebo.
18. If you already have a OnePlus 6, this does not apply. But if you are after ultimate battery life, keep in mind, less chips means less power draw if all else is equal, and RAM memory needs continuous refresh, so a model with 6GB of RAM may be a bit more power-efficient than one with 8GB RAM, especially given the fact that still-large 6GB of RAM virtually guarantees that there will be no extra overhead related too app reloading.
Hopefully this will help some people.
Below you will find some of my usual stand-by times after the optimization. Since update 5.1.7 battery life seems to be improved even further (see last 2 screenshots - with 5.1.7 and 5.1.8).
Thanks for all this. Most of the things I already did myself, but some of them actually make a lot of sense but I've never thought about it before.
Already very happy with the battery life I'm getting, but very curious if it will be even better now.
Thanks for this nice pice of guide!
All of this means nothing if you have really bad cell reception like me. -105 to -112 dBm at the office. Drains like hell in standby.
Cst79 said:
1. Go to Settings->Battery->Battery optimization->[tap on the 3 vertical dots on the upper right corner] and enable the phone's "Advanced Battery Optimization" (aka. Aggressive Doze) feature, while at the same time whitelisting apps from which you need instant notifications, like Whatsapp or Outlook, etc. For other apps notifications may be delayed. Some applications like AdBlock Plus for Samsung browser also need whitelisting to work properly. Just go by trial and error with finding which applications need whitelisting.
Click to expand...
Click to collapse
By Whitelist you mean changing it to "Not Optimize correct?
mesajoejoe said:
By Whitelist you mean changing it to "Not Optimize correct?
Click to expand...
Click to collapse
Correct !
well done on post [emoji106]
Dumb question, is Advanced Optimization (with some apps not optimized as needed) definitely more efficient than normal, with every app set to optimize as by default (and everything works)?
Why isn't there 3 settings for every app: not optimized, optimized, and advanced optimized?
and i got this today... now charging...
Muntasir Mahmud Saif said:
and i got this today... now charging...
Click to expand...
Click to collapse
Looks pretty great ! Did you use the optimizations from this guide ? Any other tips ?
Cst79 said:
Looks pretty great ! Did you use the optimizations from this guide ? Any other tips ?
Click to expand...
Click to collapse
no bro...i always make my own optimization...no offense though... I'll post the guide later on...
Cst79 said:
15. Do not enter your OnePlus account information. This will activate all kinds of data-sending services that will contribute to the battery drain.
Click to expand...
Click to collapse
Hi Bro,
Sorry that i not so understand what this item 15 means.
xiah1512 said:
Hi Bro,
Sorry that i not so understand what this item 15 means.
Click to expand...
Click to collapse
As you may know, especially if you purchased your phone or accessories from the OnePlus website or accessed the OnePlus forums or support, you can create a OnePlus account online. At phone setup, OnePlus asks you to optionally enter this account for various benefits. Do not enter this information when/if asked. Or, if already entered, you can delete it from Settings->Accounts.
Cst79 said:
As you may know, especially if you purchased your phone or accessories from the OnePlus website or accessed the OnePlus forums or support, you can create a OnePlus account online. At phone setup, OnePlus asks you to optionally enter this account for various benefits. Do not enter this information when/if asked. Or, if already entered, you can delete it from Settings->Accounts.
Click to expand...
Click to collapse
Ok, Thanks bro.
For those suggestions that cut down on network chit-chat, this also serves as a partial data usage optimization guide. Thanks for taking time to enumerate all these suggestions. I found a few slam-dunks in this list.
Cst79 said:
As you may know, especially if you purchased your phone or accessories from the OnePlus website or accessed the OnePlus forums or support, you can create a OnePlus account online. At phone setup, OnePlus asks you to optionally enter this account for various benefits. Do not enter this information when/if asked. Or, if already entered, you can delete it from Settings->Accounts.
Click to expand...
Click to collapse
What does adding that account allow you to do?
Muntasir Mahmud Saif said:
no bro...i always make my own optimization...no offense though... I'll post the guide later on...
Click to expand...
Click to collapse
how did you fix the massive overnight drain eventually?
I'm getting 8% drain overnight, I dont think that's normal.
-marco- said:
how did you fix the massive overnight drain eventually?
I'm getting 8% drain overnight, I dont think that's normal.
Click to expand...
Click to collapse
You are on 5.1.6?
Joyarup said:
You are on 5.1.6?
Click to expand...
Click to collapse
I am, yes.
-marco- said:
I am, yes.
Click to expand...
Click to collapse
I was also facing this weird issue, then I noticed that the phone wasn't deep sleeping for some reasons, I rebooted it before going to sleep and it went to deep sleep fine and the drain was around 2% on LTE standby overnight. I will try different kernels too, currently using EX.

A couple strange things

Given the less friendly finger print reading I have taken to double tapping on the screen to turn it on. But relatively often it does not respond to a double tap. Is anyone else experiencing that?
The other one is that at many web sites I go to a pop up message box will come up asking if they can read my device's location. The answer box NEVER responds to a click. The screen will be dim. I have to back up 1 screen which closes the query box. I actually expect that one of my apps that have privileges to over write other apps is the culprit, but I don't see why they would mess with that one function, especially when at that moment those apps aren't being brought up. Any thoughts on this?
Increase screen sensitivity if you haven't already.
Yes I've experienced the double tapping unresponsiveness and decided to have AOD on all the time instead despite additional battery drain just to bypass this issue.
boogiecornejo said:
Yes I've experienced the double tapping unresponsiveness and decided to have AOD on all the time instead despite additional battery drain just to bypass this issue.
Click to expand...
Click to collapse
That's what I do on the 10+
Battery drain is slightly less than 1% @ hour.
For me it runs best/most efficiently with no power management* running other than the system power setting to optimized.
*some apks are package blocked otherwise all buckets show as active in Developer Options. If this is not the case unwanted power management is active.
I'm running Pie; not sure how Q will respond. I found it's best to let Android handle power management exclusively other than blocking serial power hogs like Google Backup Transport and Framework Services Framework. I don't use these.
blackhawk said:
Increase screen sensitivity if you haven't already.
Click to expand...
Click to collapse
Thanks for the suggestion. It is already active.
Here's another interesting thing: every now and then (actually several times during the course of a day) after turning the screen on the bio didn't with nor the location, and it forces me to enter the pin to get into the phone. I even have it set to not lock if hooked to my hearing aids and it still happens.
ewingr said:
Thanks for the suggestion. It is already active.
Here's another interesting thing: every now and then (actually several times during the course of a day) after turning the screen on the bio didn't with nor the location, and it forces me to enter the pin to get into the phone. I even have it set to not lock if hooked to my hearing aids and it still happens.
Click to expand...
Click to collapse
I keep my phone with me at all times, don't let others use it and never lock it. Makes life easier.
It's a steep learning curve with these devices... make sure it has the permissions it needs like being able to change system settings.
blackhawk said:
That's what I do on the 10+
Battery drain is slightly less than 1% @ hour.
For me it runs best/most efficiently with no power management* running other than the system power setting to optimized.
*some apks are package blocked otherwise all buckets show as active in Developer Options. If this is not the case unwanted power management is active.
I'm running Pie; not sure how Q will respond. I found it's best to let Android handle power management exclusively other than blocking serial power hogs like Google Backup Transport and Framework Services Framework. I don't use these.
Click to expand...
Click to collapse
Hmmm... The setting to read it loud is a system setting itself (in Accessibility settings). I don't think there are any permissions to make. I did just look and nothing is apparent.
ewingr said:
Thanks for the suggestion. It is already active.
Here's another interesting thing: every now and then (actually several times during the course of a day) after turning the screen on the bio didn't with nor the location, and it forces me to enter the pin to get into the phone. I even have it set to not lock if hooked to my hearing aids and it still happens.
Click to expand...
Click to collapse
ewingr said:
Hmmm... The setting to read it loud is a system setting itself (in Accessibility settings). I don't think there are any permissions to make. I did just look and nothing is apparent.
Click to expand...
Click to collapse
Permission to change system settings is in it's own listing apart from permissions in each app settings.
Could be more than one apk needed to make all work right.
Make sure power management not doing it.
In Developer Options>Standby Apps, all apps listed there should show as having their buckets as "active" if they not, power management is active.
You don't want that.
ewingr said:
I actually expect that one of my apps that have privileges to over write other apps is the culprit
Click to expand...
Click to collapse
one of the apps is interfering as you correctly suspect

Categories

Resources