Dear OP2 friends,
HUGE DISCLAIMER:
Below setup works for MY use and needs. If you are like me it will work for you too, if not go find information somewhere else and don't complain "I cannot get the same results" or things like that. It takes common sense and experience to achieve and understand below info. If you don't have common sense, I pity you, if you don't have experience it's OK. If you are polite and follow the XDA rules I don't mind answering your well structured questions, and maybe others don't mind too, there are a lot more experienced people on XDA than me.
If your question is related to any of the apps/threads mentioned below, please go to that (app) thread, that's why I have put the info right there, one click away.
battery life is something we all want to be endless, well we can't have that, but at least we can improve it from a certain point.
This is what I have been doing for the past weeks and the results are incredible, that's why I decided to share them.
First of all sharing this information is ambiguous because it's somewhat device and user dependent especially how people use it and what apps are installed.
I know that but I believe with the right approach you can get the same results as me, hopefully even better, on the OP2 and possibly other device as well.
I have 148 apps installed at the moment and sometimes even more than 200. If you control your apps properly there is no limit to the amount of apps installed related to battery life.
There are numerous threads on improving battery life out there already so please check out those threads first.
Extreme battery threads:
https://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
https://forum.xda-developers.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588
You can also post your BBS logs there, please don't do that in this thread as I will not investigate them.
Most useful info is already out there so I would appreciate it to go look there first before cluttering this thread. If not I will close this thread.
Let's get started:
improving battery life on Android is (unfortunately) always a combination of things, there is no 1-push button (yet).
In this case I use the following:
- privacy guard (baked in almost any Nougat ROM)
- custom kernel (I use Boeffla: original thread here, I use the Linaro version from ZaneZam)
- Greenify (original thread here)
- Wakelock blocker (built in ROM) + WakeBlock app (optional, original thread here)
- Alarm Blocker (built in ROM)
- Doze apps
- BetterBatteryStats (for finding your excessive wakelocks, thread here)
Obviously you have to be rooted to implement all of this.
The ROM of my choice is RR unofficial.
I like it because of the functionality and features but I believe any ROM with the above features should be able to achieve the same results.
Speaking of results, below screenshots are from my last cycle before writing this thread. One charge got me almost through 3 full days (66 hours).
I fully charged in the afternoon, got through the evening and the first night, then got through the full second day and night, then got through another full day and night and charged only again in the next morning.
If your still following, those are 66 hours of straight juice...
EXPLANATION: There is ALWAYS a tradeoff between SOT (screen on time) and how long your battery will last in one cycle. On my below cycle you can see that I have "only" 4 hours of SOT but almost 3 days of battery life. That is light usage.
If I would use my phone more (more SOT) the battery life cycle would have been significantly shorter. If you complain to me that you "only" have 24hrs of battery life but you show me a SOT of 7-8 hours, I would consider that great battery life! It's all relative...
I have never used one battery cycle from 100% to 0% in one go so I don't know the max SOT I would get with my setup. I would guess around 6.5-9 hours depending on the activity (gaming <=> ebook reading, mobile data <=> wifi, ...). It's all relative...
The screenshots in the bottom of the post might bring clarity for you.
See the following posts for more explanation.
Thanks to:
@nicesoni_ash
@Lord Boeffla
@ZaneZam
@oasisfeng @GioBozza @chamonix
@ssrij @The Peterle
Privacy Guard:
*setting things up wrong without thinking straight can delay notifications or not execute certain tasks*
I enable this for all user apps because I don't want any app keeping the system awake. I even have this enabled for some system apps like:
Calendar storage
Google play services
Google play store
Google app
cLock
I mostly disable all locations (if it's not a location dependent app), keep awake, run in background and even start at boot (if the app doesn't need to start on boot) toggles.
Again, use your common sense to figure out if a app needs to run on boot (for example, youtube doesn't need to run on boot, tasker does for starting up along with the system boot).
obviously some system apps need to run in the background for example cLock or calendar storage otherwise your weather and calendar will not update...
You can also configure all the apps on a gradual basis. You let the privacy guard as is on clean install an if you see excessive wakelocks from a certain app, you start blocking it one by one.
Custom kernel:
I use Boeffla config app with always the latest version of his kernel compiled by ZaneZam (Linaro 6 version).
The latest as of the time writing this thread is LOS14.1-beta14 in combination with config app 2.4.34.
I use profile IMPULSE TUNED V3.0, no lags, good performance and crazy battery life.
Screenshots of my minor changes, the rest is identical to the stock IMPULSE TUNED V3.0 profile.
Greenify:
*setting things up wrong without thinking straight can delay notifications or not execute certain tasks*
I Greenify a lot of apps, as much as I can basically, even system apps.
I cannot give too much advice on this part so please go to the Greenify thread to ask related questions. For me it's mostly a hit and miss and right now my config is a big hit.
If you want to know if you can Greenify a particular app you can ask me.
Configuration below in screenshots.
Wakelock Blocker (+ WakeBlock app):
*setting things up wrong without thinking straight can delay notifications or not execute certain tasks*
I personally think this feature is essential in getting good battery life so I'm glad it's integrated in the ROM of my choice (since we don't have xposed yet).
In combination with the WakeBlock app it basically works like Amplify on Xposed, but ROM integrated.
This part is the hardest to explain because it's different for most users. On the screenshots below you can find most of my blocked wakelocks (without losing functionality).
The procedure to block wakelocks is the same as all the other parts explained above and below:
Let your system run for some hours/days (essential!).
After that, trough BBS you can find your excessive wakelocks and through wakelock blocker you can block them completely. If you don't want to completely block the wakelocks you can use the WakeBlock app to put a timer like in Amplify for Xposed, for example I want wakelock x to run every 9999 milliseconds....
Alarm blocker:
*setting things up wrong without thinking straight can delay notifications or not execute certain tasks*
Another essential feature for keeping your device under control.
I block a lot of alarms (without losing functionality) so get ready...
Doze apps:
I use Force Doze from the Playstore to put my device in Doze mode as soon as the screen goes off.
Naptime is an alternative but I find it to generate too many wakelocks (sometimes up to 19 per hour).
I might change this app once in a while if there are better alternatives that come up.
Anyway Force Doze will work for now.
reserved. will add some advices.
CounterC said:
Doze apps:
I use Force Doze from the Playstore to put my device in Doze mode as soon as the screen goes off.
Naptime is an alternative but I find it to generate too many wakelocks (sometimes up to 19 per hour).
I might change this app once in a while if there are better alternatives that come up.
Anyway Force Doze will work for now.
Click to expand...
Click to collapse
Lesser wakelocks means not necessarily lesser drain, good example is definitely the very first lines from this Thread of an old friend from galaxy s3 lte times, he implemented microG on his device and achieved lesser wakelocks but no significant impact on his battery life(see here), what I want to point out is that this equation (more wakelocks - more battery drain) isn't so simple unfortunately, even if true for most of the time, regarding to franco's naptime, I personally made very good experience with this app in combination with his custom kernel, I think especially in this combination it's absolutely recommended..
Furthermore some inspiration about battery life a wonderful guide with plenty of useful information, the absolute majority is generally valid, so don't get confused by the i9305 tag...
Sent from my OnePlus 2 using XDA Labs
Sam Nakamura said:
Lesser wakelocks means not necessarily lesser drain, good example is definitely the very first lines from this Thread of an old friend from galaxy s3 lte times, he implemented microG on his device and achieved lesser wakelocks but no significant impact on his battery life(see here), what I want to point out is that this equation (more wakelocks - more battery drain) isn't so simple unfortunately, even if true for most of the time, regarding to franco's naptime, I personally made very good experience with this app in combination with his custom kernel, I think especially in this combination it's absolutely recommended..
Furthermore some inspiration about battery life a wonderful guide with plenty of useful information, the absolute majority is generally valid, so don't get confused by the i9305 tag...
Click to expand...
Click to collapse
Good point Sam, that's why I always say check BBS first if it's actually a wakelock, then treat it properly (disable or time-lapse it).
Overnight drain
does blocking the *alarm* wakelock cause the system to reboot!?
aditya_pan said:
does blocking the *alarm* wakelock cause the system to reboot!?
Click to expand...
Click to collapse
No, not with me.
Related
Good Day all,
I have benefitted greatly from Google and XDA. So I thought I would provide a consolidated way of saving our battery's grace from Android System demonic drain.
I am running Euphoria with Furnace, and I had loads of Gapps installed.
I tried multiple attempts over a 3 days period and did many researches back and forth. And it came down to these few main culprits:
1. Android Location Services
2. Google Play Services
3. Qualcomm Location Services
4. Google Now Launcher
5. Unwanted Sync
Tools I have used to assist in this matter.
1. Disable Service - here
2. Greenify
3. Privacy Guard (should be in built in most custom roms)
4. Titanium Backup
Basically the highest causing drain came from Google Play Services and Qualcomm Location Services. These items persistently wakes the phone up and runs on the background. Using greenify on there further cause issues as greenify tries to hibernate these services over and over again, making this a self-made draining routine.
I followed this thread on Google Play Services drain fix and used the Privacy Guard to perform those tricks. I ran through ALL Google Related Apps and as long as "Keep Awake", "Wake up" or "Auto Start" is enabled, I disabled them. I also look through apps I suspect were waking phone up by looking at the last activation of those events (Keep Awake, Wake Up, Auto Start).
Next I followed this thread on Guide to disable google play internal services using Disable Service app. I also took the opportunity to look at both 3rd party apps and system apps to see if there are services that could be disabled. I disabled Apex Notifier as I realize I didn't needed its service.
Then the next sneaky culprit was the Qualcomm Location Services. Even though I froze them with Titanium Backup, they persist in the system. So making a backup of them, I uninstalled them completely. Hasn't caused me any issue with GPS or Maps. They are namely, com.qualcomm.location and com.qualcomm.services.location. Both appeared as LocationServices 1.0 on Titanium Backup.
I went ahead to Greenify many Google Apps, namely Google App, Google Play Store, Google Services Framework, Google+. I also Greenify many apps that Greenify suggested would slow system down or appear to run in the background which I have no use for.
Lastly I uninstalled Google Now Launcher as it was persistently coming up as alternative home launcher even though I froze it. And I also went through settings of apps to make sure sync were turn off. I only kept Calender and Contacts and Gmail Sync on.
Now I have reduced Android System from 34% to 2% and increased my SOT from 2++ hours to 4++ hours at least. Not an out of earth SOT, but I believe that's decent.
Hope I helped and I wish you all the best in your endeavour to reduce Android System Drain. Cheers.
Thanks bro
Will try and give feedback asap
Suscribed, Rated, and Thanked.
I didn't had time to do any research on this, and this thread appeared on the right time.
Thanks
Paradoxxx said:
Suscribed, Rated, and Thanked.
I didn't had time to do any research on this, and this thread appeared on the right time.
Thanks
Click to expand...
Click to collapse
metuncc said:
Will try and give feedback asap
Click to expand...
Click to collapse
Your feedbacks will be appreciated. It works for me and I hope it works for you. And hopefully help many others that face our problem. Cheers
I can't seem to find App Ops anywhere..
Edit: found it by the name "Access lock" but there is no google play services in there..
bestest609 said:
I can't seem to find App Ops anywhere..
Edit: found it by the name "Access lock" but there is no google play services in there..
Click to expand...
Click to collapse
It should be found in settings page, "Privacy".
I know that this guide is meant for CM based ROMs but I said to myself "ehh, what the hell" and I tried it on my Cloudy 2.2 and the results were horrible. Had to fully charge my device twice in order to go through 22 hours and a total of 2h of screen on time which consisted mostly of browsing and messaging. Wakelock Detector told me that the device was mostly asleep and everything was normal in the Batter Usage menu. Usually I get around 18-20h on a full charge with 2,5-3h SoT. Maybe the locations tweeks were not liked by my Tasker app and caused a huge battery drain, although it didn't appear that much as a wakelock trigger.
I am wondering if the problem was caused by Tasker or the stock ROM itself, but badly I do not have the time now to tweak around and I am reverting back to my previous configuration.
steelclaw said:
I know that this guide is meant for CM based ROMs but I said to myself "ehh, what the hell" and I tried it on my Cloudy 2.2 and the results were horrible. Had to fully charge my device twice in order to go through 22 hours and a total of 2h of screen on time which consisted mostly of browsing and messaging. Wakelock Detector told me that the device was mostly asleep and everything was normal in the Batter Usage menu. Usually I get around 18-20h on a full charge with 2,5-3h SoT. Maybe the locations tweeks were not liked by my Tasker app and caused a huge battery drain, although it didn't appear that much as a wakelock trigger.
I am wondering if the problem was caused by Tasker or the stock ROM itself, but badly I do not have the time now to tweak around and I am reverting back to my previous configuration.
Click to expand...
Click to collapse
Try using GSam battery monitor to find out the real culprit. I used that to boil down to the final two irritants - Qualcomm LocationServices.
Really enjoying the app.
Here are the screenshots:
https://www.dropbox.com/sc/fvzvyvdsfqr1e89/AABeH-BwUHKOjpqnXaFcATbaa
steelclaw said:
Really enjoying the app.
Here are the screenshots:
https://www.dropbox.com/sc/fvzvyvdsfqr1e89/AABeH-BwUHKOjpqnXaFcATbaa
Click to expand...
Click to collapse
Kernel OS issue I am not too sure what issues are they. The issues I had was high Android OS drain.
@JokerAce my friend ...nice to see you posting useful advice ....gonna grab it ...especially qualcomm service....thanks mate
/LG-G3/d-855/16Gb/Titanium Black/
m1trand1r said:
@JokerAce my friend ...nice to see you posting useful advice ....gonna grab it ...especially qualcomm service....thanks mate
/LG-G3/d-855/16Gb/Titanium Black/
Click to expand...
Click to collapse
Thanks mate )
I just received my Nexus 6P and absolutely love it.
I am wondering if any of you have had good experiences with any utility/tool apps for this device. Apps such as Greenify, CM Cleaner, etc. are a couple I've heard of and was curious if these are helpful or not.
Thanks!
I don't use any utility apps so my response is probably not what you're looking for. There's not really a need for Greenify anymore since Marshmallow introduced Doze unless you want Aggressive Doze mode found in Greenify -- which is again unnecessary if you're using Android N Developer Preview which features an aggressive Doze mode.
Not sure too much on CM Cleaner, but if I had to use one I'd probably use CCleaner since I use it frequently on the PC and it works really well. If you choose to not use a cleaner, someone on here or Reddit reported clearing your cache every-so-often from Settings > Storage & USB > Cached data is useful and may even improve battery life.
Synapse - for use with AK kernel.
Naptime and Servicely by Franco are both nice apps.
Recently by chainfire helps keep recent apps section from being over crowded and adds some extra features.
Then you have the more common stuff you likely already use like "better battery stats", "adaway", " afwall+",.... Not sure about greenify on Marshmallow, I believe the Doze feature built into android does something similar to all apps, but do not quote me on that as I don't really know how how they work, just greenify put apps to sleep and then google calls it doze which is just another word for sleep.
+1 to the not necessary argument.
Get viper4android to improve your audio. Ex Kernel Manager is also pretty awesome. Otherwise explore and see what fits your needs!
jdawggs316 said:
I just received my Nexus 6P and absolutely love it.
I am wondering if any of you have had good experiences with any utility/tool apps for this device. Apps such as Greenify, CM Cleaner, etc. are a couple I've heard of and was curious if these are helpful or not.
Thanks!
Click to expand...
Click to collapse
You definitely don't need anything like CM Cleaner, those things are total rubbish, they use more resources than they claim to save. Doze is pretty good at getting the device to sleep when it isn't in use, but some people still use Greenify. I use BetterBatteryStats to monitor to power consumption, f.lux to automatically adjust screen temp at night, Faster GPS to aid in getting a quick GPS lock, and Flashfire for flashing certain things when I absolutely need to on the go.
I use All in One Toolbox to control the myriad of aggressive apps that feel they should launch/run everything i start my phone.
Thanks for the replies guys!
I plan on rooting the 6P today, and I have had experience with such apps as SetCPU, Rom Toolbox, etc. But that has probably been about 2 years ago.
What are the go-to root apps for stock android (not sure I'm ready for ROMs yet)?
1. Flashfire, very powerful tool for flashing things (especially useful for taking OTAs when rooted).
2. Ampere Measures current going in while charging, (pretty useful when my fast charger broke).
3. Naptime , improves standby time immensely (Doze on screen off).
4. Faster GPS, much faster GPS lock as I dont really like leaving location on all the time.
5. BetterBatteryStats, huge info on power consumption.
6. F.lux, (Changes colour temperature based on location and sunsets, warmer colours after sunset, less obtrusive to the eyes.
7. Adaway, gets rid of ads ... yay
8. Viper4Android, best EQ and FX processor available.
I'm posting this based on a number of requests from other users; regarding optimization of the OnePlus 3T. In general I feel like this phone is already very good. Has great performance and a solid battery. The one issue I suffered was the "Mobile Radio Active" bug. I will explain more about it in this guide.
NOTE - This guide isn't finished yet. I'll try my best to get to it when I get a chance, but for the time being I will share with you all what I have documented so far. Some of my content was referenced from other online sources, so I want to be sure that I state that.
If you have any questions, suggestion, or are interested in adding to this, please let me know.
Before we begin, I’ll start out by listing my configured device. My configuration may be different than yours due to the rom. If you use a custom rom, you need to be careful with some of the options.
That being said…
I am using the 64Gb OnePlus 3T. My bootloader is unlocked, my device is rooted using SuperSU v 2.79 and I use the custom recovery “TWRP 3.0.4-1”
The applications I use:
Amplify - https://play.google.com/store/apps/details?id=com.ryansteckler.nlpunbounce
ForceDoze - https://play.google.com/store/apps/details?id=com.suyashsrijan.forcedoze
Greenify - https://play.google.com/store/apps/details?id=com.oasisfeng.greenify
L-Speed - https://play.google.com/store/apps/details?id=com.paget96.lspeed
LeanDroid - https://play.google.com/store/apps/details?id=com.teqtic.leandata
Naptime - https://play.google.com/store/apps/details?id=com.franco.doze
Power Nap - https://play.google.com/store/apps/details?id=net.jzhang.powernap
Xposed - https://forum.xda-developers.com/attachment.php?attachmentid=3921508&d=1477916609
Xposed Framework - http://dl-xda.xposed.info/framework/sdk23/arm64/xposed-v87-sdk23-arm64.zip
Some of these are personal preference so you don’t need them if you don’t want to.
NOTE – Also, I am on Stock OOS 3.5.4. The reason for this is because I was experiencing battery drain due to a bug known as “Mobile Radio Active”. This is a bug that affects users even with the new OS, and unfortunately I don’t think it has been fixed even with Nougats new doze feature. Basically even though doze is enable, your radio still draws battery in the background even though it’s not in use. Xposed has a plugin to fix this issue; however since Xposed isn’t available for Nougat this is why I am still on Marshmallow.
You can read more about the bug here:
https://forum.xda-developers.com/xposed/modules/xposed-mobileradioactivefix-t3189393
And the fix is here:
http://repo.xposed.info/module/com.pyler.mobileradioactivefix
This is a fairly in-depth tut, so I’ll try to go through this as quickly and painlessly as I can. If you have any questions, feel free to ask.
Amplify
Limit the following:
ALARM
Alarms(Allow every 600 seconds)
• com.android.internal.telephony.data-stall
Alarms(Allow every 1800 seconds)
• com.oasisfeng.greenify.CLEAN_NOW
Alarms(Allow every 3600 seconds)
• android.appwidget.action.APPWIDGET_UPDATE
Alarms(Allow every 7200 seconds)
• android.content.syncmanager.SYNC_ALARM(delays sync
Alarms(Allow every 10800 seconds)
• android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED
• com.facebook.common.executors.WakingExecutorServic e.ACTION.ALARM.com.facebook.katana
• com.google.android.apps.hangouts.CLEANUP_DB
• com.pushbullet.android/.gcm.GcmFixReceiver
• com.android.server.action.NETWORK_STATS_POLL
• com.diune.pictures.intent.action.MEDIA_CHECK
• LocationManagerService
Alarms[LOCATION](Allow every 41400 seconds)
• ALARM_WAKEUP_LOCATOR(com.google.android.gms.nlp.AL ARM_WAKEUP_LOCATOR)
• ALARM_WAKEUP_CACHE_UPDATER
• ALARM_WAKEUP_BURST_COLLECTOR(com.google.android.gm s.nlp.ALARM_WAKEUP_BURST_COLLECTOR)
• com.google.android.gms.location.fused.GPS_ALARM_BA LANCED_ACCURACY
• ALARM_WAKEUP_ACTIVE_COLLECTOR
• ALARM_WAKEUP_PASSIVE_COLLECTOR
• ALARM_WAKEUP_BURST_COLLECTION_TRIGGER
• com.google.android.intent.action.SEND_IDLE
• ALARM_WAKEUP_ACTIVITY_DETECTION
• com.google.android.location.reporting.ACTION_UPDAT E_WORLD
Alarms(Allow every 93600 seconds)
• android.app.backup.intent.RUN
• com.google.android.gms/.checkin.EventLogService$Receiver
• com.google.android.gms/.checkinCheckinService%Receiver
Alarms(REGEX Blocking)
• ALARM_WAKEUPxxxxx
Procedure
• Open Amplify.
• Select Alarms from the menu.
• Tap the list icon on the top right corner
• Tap + button on top.
• Add the following code to 'Enter Regex to match
• ALARM_WAKEUP[0-9]+
• Set the interval to 9999999 seconds.
WAKELOCKS
Wakelocks(Allow every 800 seconds)
• WakefulIntentService[GCoreUlr-LocationReportingService]
• RILJ
• NetworkStats
Wakelocks(Allow every 3600 seconds)
• WeatherUpdateService
Wakelocks(Allow every 10800 seconds)
• SyncLoopWakeLock(delays sync)
• *net_scheduler*
• GCoreFlp
• Icing
• Wakeful StateMachine: GeofencerStateMachine
• NfcService:mRoutingWakeLock
• wake:com.pushbullet.android/.gcm.GcmService
• SyncService(Package: Push Bullet)
• ai(Package: Push Bullet)
• ae(Package: Push Bullet)
• AsyncService
Wakelocks(Allow every 41400 seconds)
• NlpWakeLock
• NlpCollectorWakeLock
• LocationManagerService
• Config Service Fetch
Wakelocks(Allow every 9999999 seconds)
• *job*/com.facebook.katana/com.facebook.analytics2.logger.LollipopUploadServi ce
• JobSchedulerHack-com.facebook.analytics2.logger.LollipopUploadServi ce
• UploadServiceLogic-com.facebook.analytics2.logger.LollipopUploadServi ce
• *job*/com.facebook.orca/com.facebook.bugreporter.scheduler.LollipopService (com.facebook.orca.Messenger)
• *job*/com.facebook.katana/com.facebook.bugreporter.scheduler.LollipopService (com.facebook.katana.Facebook)
SERVICES
Services(Block/Deny)
NB:I don't use Location Service. That's why I've disabled the location Services. If your'e using Location service, do not disable the services with location and GPS tag
• com.google.android.gms.analytics.AnalyticsService
• com.google.android.gms/com.google.android.location.internal.GoogleLocatio nManagerService(Location Service)
• com.android.gms.Feedback.FeedbackService(Breaks Play Games)
• com.android.gms.ads.AdRequestBrokerService
• com.google.android.gms/com.google.android.location.network.NetworkLocationService(Location Service)
• com.google.android.location.geofencer.service.Geof encerProviderService(GPS Service)
• com.google.android.gms/com.google.android.location.copresence.service.ProximitySettingInjectorService
• com.facebook.katana/com.facebook.analytics.service.AnalyticsService
• com.facebook.orca/com.facebook.analytics.service.AnalyticsService
• com.android.cellbroadcastreceiver/.CellBroadcastAlertService
• com.android.cellbroadcastreceiver/.CellBroadcastConfigService
POWERNAP
Power Nap for Xposed is the SONY's stamina mod for non-Sony devices. When your screen is off, Power Nap maximizes your device's deep sleep time by stopping services, alarms and wakelocks from waking the device when the screen is off. You can get notification from the apps you've whitelisted.
Set the Endurance Mode to Always ON.
You can use Power Nap along with Greenify and Amplify for a better sleep time. You have to whitelist both Greenify and Amplifyfor proper working of both the modules.
If you use IMs and need Push Notifications,you have to whitelist those apps along with Greenify and Amplify.
See My list Of whitelisted apps.(Varies according to users):
• AndroidSystem
• Greenify
• Amplify
• Xposed
• Clock
• ForceDoze
• LeanDroid
• L-Speed
• Powernap
• Naptime
Greenify and L-Speed in 2K17. haHAA
Ignore the idiot above i have proven greenify makes a difference because doze on the go is a thing. Why are you using 3 doze apps that essentially do the same thing, just use one.
Also get rid of L-speed its a pile of crap flash franco kernal and use the battery profile or flash elemental x and use AKT.
Regarding that bug can't you just disable synch on everything that's what i did on everything except gmail and calander and i have no issue
@EuEra
Yeah regarding the doze, I was trying to figure out which one worked best for me. I'm still trying to figure out which one does the best job.
Which doze app do you recommend? Also thanks for your suggestion of the kernel. I can give them a try and see which one suits me. Do you have a preference between the 2 you mentioned?
One of the doze apps that I use actually does a good job of stopping all sync's like you mentioned, but I have to look back at it and try to figure out which option would work best for me. I appreciate the input though. As I mentioned if I get some more time I'll try to investigate this a little further and update it.
Also, are you running Marshmallow or Nougat? If nougat, which firmware are you on?
@xpissio - Lspeed might be unneeded, but you don't have to come off negative. You laugh about it, and maybe it's unnecessary for the OP3T, but I will tell you when I had the S7 it was a VERY much needed app due to the lag of Touchwiz and Samsungs overbloated crap on the device. In that regard, I do find the application useful, and maybe some other will too.
As for Greenify, I do believe that's a solid app and it DOES indeed help all phones regardless of how good your battery and performance is.
m0d hipp¥ said:
@EuEra
Yeah regarding the doze, I was trying to figure out which one worked best for me. I'm still trying to figure out which one does the best job.
Which doze app do you recommend? Also thanks for your suggestion of the kernel. I can give them a try and see which one suits me. Do you have a preference between the 2 you mentioned?
One of the doze apps that I use actually does a good job of stopping all sync's like you mentioned, but I have to look back at it and try to figure out which option would work best for me. I appreciate the input though. As I mentioned if I get some more time I'll try to investigate this a little further and update it.
Also, are you running Marshmallow or Nougat? If nougat, which firmware are you on?
@xpissio - Lspeed might be unneeded, but you don't have to come off negative. You laugh about it, and maybe it's unnecessary for the OP3T, but I will tell you when I had the S7 it was a VERY much needed app due to the lag of Touchwiz and Samsungs overbloated crap on the device. In that regard, I do find the application useful, and maybe some other will too.
As for Greenify, I do believe that's a solid app and it DOES indeed help all phones regardless of how good your battery and performance is.
Click to expand...
Click to collapse
Personally i prefer elemental x with the AKT tweaks you get a lot of control over what specifically you want for example i use the extreme battery saving profile (there are about 6 different profiles each for performance, balanced and battery) just search oneplus 3 akt in google. A lot of people love franco kernal as well it has 1 profile for each he has an app to go with it a free one and a paid one with more features.
I only use naptime, i am on the latest nougat 7.1.1 OOS 4.1.1 obviously i don't have exposed or i would use power nap as well. I think it's worth backing up and trying the latest OOS unless you really need xposed or something.
What battery time are you getting? On average i get 2.5-3 days with 6-8 hours screen time.
I get what you're getting now in terms of battery life, but when I went to nougat, I was lucky to get a day out of my battery. I don't even use it that often. I mean I use facebook once or twice a day for maybe 15 mins, I don't play games, I use hangouts as my messenger, but most of the time I message from my computer as it is. Honestly I was shocked when I barely had a day out of the phone because when I went to the battery stats it only had about6 apps listed there and they were all system apps. Then when I went to "Cell Standby" option I could see the Mobile Radio active was consuming the 2nd most amount of battery despite screen being off and device being idle.
Anyway, thanks for your input. I went ahead and tried the franco kernel atm on my current MM rom, but I will consider giving Nougat another shot. Thanks for your feedback!
OnePlus 3T with Resurrection Remix Nougat (Official)
Normal use: 1,5-2 days (Selected sync on, dual-sim, Data always on, Auto-brightness) - Phone calls, Messaging, Messanger, bit of Facebook and Insta or YouTube.
SOT ~ 7-9hrs (best results were about <11hrs, but in my opinion it's not something that you can get while normally using your phone).
My suggestions:
- turn off selected syncs, that you don't necessary need (in my case Google Docs, Photos etc.)
- Ambient Display
- Low on gestures
- Dark themes in custom roms or Dark Mode in OOS
- Animations in 0.5x or nothing
- Don't kill apps in recents, let it work by itself
- Turn off auto update apps or notify about updates
- Low on widgets
- Turn off background data in Facebook/Instagram and all unnecessary apps
- Turn off vibrations, if it's not that important to you
- Get rid of Google App and Google Now if you're not using it
- Block location authorizations as often as you can
- Use dark wallpapers
piotrkruczek said:
OnePlus 3T with Resurrection Remix Nougat (Official)
Normal use: 1,5-2 days (Selected sync on, dual-sim, Data always on, Auto-brightness) - Phone calls, Messaging, Messanger, bit of Facebook and Insta or YouTube.
SOT ~ 7-9hrs (best results were about <11hrs, but in my opinion it's not something that you can get while normally using your phone).
My suggestions:
- turn off selected syncs, that you don't necessary need (in my case Google Docs, Photos etc.)
- Ambient Display
- Low on gestures
- Dark themes in custom roms or Dark Mode in OOS
- Animations in 0.5x or nothing
- Don't kill apps in recents, let it work by itself
- Turn off auto update apps or notify about updates
- Low on widgets
- Turn off background data in Facebook/Instagram and all unnecessary apps
- Turn off vibrations, if it's not that important to you
- Get rid of Google App and Google Now if you're not using it
- Block location authorizations as often as you can
- Use dark wallpapers
Click to expand...
Click to collapse
Dzieki Potr!
Jesus, 9 Apps, Xposed, And a page long list of blocking stuff? And in the end you randomly stop getting notifications (my experience with greenify)?
On my Note 4 i did similar things to get through the day (2 hours SoT) but the 3T is really great in that regarde.
I'm on stock OB4, Franco Kernel without battery tweaks. No aggressive doze, or any battery saving options and i get over 3 days of standby with 6 hours SoT. This includes BT Streaming which drains without the screen being on.
I really see no need for any restrictions on this phone. Except when you install Facebook. Which you should never do. It's a well known fact that facebook drains your battery like crazy. Even if you never actively open it throughout the day.
about L Speed: It depends on the phone and on the usage. On my Galaxy S5 and My Oneplus X I can get like 30% more SOT with a little bit more performance. My 3T I can user three days and I have a 6h SOT. With L-Speed 6.5 - 7h. But it doesn't make the screen on time better for me, rather the screen off. I have with L-Speed 0.2% battery drain in a hour with the screen off, compared to 0.7-0.9% without.
My advice: Try it out and give the amazing dev a feedback. He's very friendly and he helps if you have a bad result.
If you have lower performance or more battery drain with L-Speed and you don't wanna give feedback, just uninstall it and reboot -> all changes are back to stock
Thanks all! The feedback is all good. The problem with phones is everyones experience is going to be a little different. I agree facebook/messenger drains battery, but there are other apps as well that do the same... playstore, google now, etc... I like googlenow because of the updates I get for weather, sports things like that. However it does use up battery and resources in the background even when it's not in use. Facebook; same thing. I like staying in touch with friends and family. If there was a less resource hog version of these apps I'd definitely consider without it limiting my options. The utilities I posted are just some of my preferences, but I'm always open to hear suggestions and others' recommendations.
I agree with the battery life, in general I'd say it's very good, but from my experiences in the past I just had bad luck I suppose with the "mobile radio active" bug; as I have explained above. It's really a hit or miss sort of thing. I've done clean installs, full wipes, etc and it seems to still be hit or miss for me. At first I had several days and then after about a week or 2, I noticed the battery life dropped significantly. That's when I used these utilities to help out with the life of the battery and for me it made a difference.
I actually REALLY like nougat, but I also use a few plugins I really like that require Xposed framework, which obviously isn't supported in nougat yet. I've been busier than normal last several weeks, but if I get a chance to backup everything I might consider doing another clean install of nougat and see how things go.
these features can also be found in the custom roms anyway
m0d hipp¥ said:
Thanks all! The feedback is all good. The problem with phones is everyones experience is going to be a little different. I agree facebook/messenger drains battery, but there are other apps as well that do the same... playstore, google now, etc... I like googlenow because of the updates I get for weather, sports things like that. However it does use up battery and resources in the background even when it's not in use. Facebook; same thing. I like staying in touch with friends and family. If there was a less resource hog version of these apps I'd definitely consider without it limiting my options. The utilities I posted are just some of my preferences, but I'm always open to hear suggestions and others' recommendations.
I agree with the battery life, in general I'd say it's very good, but from my experiences in the past I just had bad luck I suppose with the "mobile radio active" bug; as I have explained above. It's really a hit or miss sort of thing. I've done clean installs, full wipes, etc and it seems to still be hit or miss for me. At first I had several days and then after about a week or 2, I noticed the battery life dropped significantly. That's when I used these utilities to help out with the life of the battery and for me it made a difference.
I actually REALLY like nougat, but I also use a few plugins I really like that require Xposed framework, which obviously isn't supported in nougat yet. I've been busier than normal last several weeks, but if I get a chance to backup everything I might consider doing another clean install of nougat and see how things go.
Click to expand...
Click to collapse
1st of all thank you for the post and for other people who replied , I think ( hope ! ) That I learned something , and I'll try to implement it.
2nd as you said for Facebook alternative I can recommend "Friendly" or the other option is "Simple" it's a framework app for the Facebook web , try I think you will get it useful and battery friendly
Never liked the Facebook app for Android and never understood the need to make two separate apps. The need for the app then the messenger is totally useless. There are tons of Facebook alternatives, but why download those alternatives when you can view Facebook through mobile browser. You would think that with the billions Facebook makes they'd have a better R&D team working on a better Facebook app without 50 permissions and battery hog.
Sent from my ONEPLUS A3000 using Tapatalk
Xpcounter said:
1st of all thank you for the post and for other people who replied , I think ( hope ! ) That I learned something , and I'll try to implement it.
2nd as you said for Facebook alternative I can recommend "Friendly" or the other option is "Simple" it's a framework app for the Facebook web , try I think you will get it useful and battery friendly
Click to expand...
Click to collapse
Why even bother for any apps when you can get notifications of Facebook on chrome
I've posted this guide on reddit already, but thought it might be useful here as well. A lot of users promote intense usage of package disablers to reduce battery drain, but this is not required to such an insane extend.
---
After experimenting with my S8 for 2-3 months now, I've collected some data and constructed some basic idea on how to fight wakelocks without having to root your device. I'll try to lay down everything here under a few categories.
First of all, I'll say that I tried using my S8 with a package disabler with hundreds of apps and services disabled, and also tried using it with no package disabler at all. I did not see a significant difference. It's too hard to determine if there is one, but I have to note that disabling TOO MUCH can actually hurt your battery usage.
Finally, I settled on using the device with a disabler again, only this time I disabled things strategically after some investigation with battery stats measurement and wakelock detection.
The apps I used were:
BK Package Disabler + BK Plugin
Better Battery Stats or GSam
These are paid apps, but I am happy with what they can do. BK can be replaced with another disabler (as long as it gives you control over individual package services) and BBS can be replaced with GSam Battery Stats, which is free.
General tips on using these apps:
BBS will require your device to have USB debugging enabled, so that you can connect the phone to your PC and unlock the permission manually. You need an ADB command prompt to do that, and you need to give it the following permission with the following command (read more here).
Code:
adb -d shell pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS
You can use BBS if you do not restart your phone while testing. If you do, it will wipe stats and likely not activate for another few hours, or until you charge again.
You should be using BBS to observe Deep Sleep percentage in the Summary tab (which should be above 95% when the phone is left in idle mode for hours), and Partial Wakelocks to find individual wakelocks that come from apps. Kernel wakelocks are hardly ever something you can do anything about and shouldn't be observed too much, no point in that unless you are rooted. The highest kernel wakelocks should be the ones related to your screen-on time - they are easy to point out as their awake time equals your screen on time.
BK Package disabler, or any other disabler for that matter, WILL require admin privileges to work on your device, so keep that in mind.
BK Package disabler should be used in tandem with BBS, only once you have found wakelocks and/or managed to understand which service is the actual cause. I will give examples below.
---
So, let's start.
Google Play Services battery drain
This one really sucks and it seems to plague any Android device at some point. Most often than not, this problem will occur after you do a system update without doing a factory reset. Last time it occurred on my S8 was right after I did the AQI7 update, after having very good idle drain previous to updating.
What to do in this case?
Log out of your Google account(s).
Enroll for Google Play Services BETA. To enroll, scroll down on this page and find the beta button OR Find Play services in your App list, and do "Uninstall updates", then update it right after that.
Turn off your phone and then boot it in recovery mode (Hold volume up + bixby key, then also hold power button) and select Wipe Cache - This will erase Dalvik cache.
Reboot the phone and delete system cache from the Storage settings
Log back into your Google account(s).
Charge your device and then observe idle drain overnight, or over a few hours.
If this process does not help your problem at all, you might have to do a factory reset to cure the services issue, or the problem might be related to something else, like a google service from some particular app. Use BBS to investigate wakelocks as you check your idle drain.
If this process helps you, but you see the issue again in future without changing anything, try going to the Developer Settings, look for active processes, and find Google Play services. Open them and then hit 'STOP' for each of their sub-services. Don't worry, they will restart on their own. After doing this, you might reboot your phone as well. Last time this little chore helped me out and the drain went away.
---
General Wakelocks
It's normal to get wakelocks even on a perfect system, but BBS will show exact percentages on each of them. Normal wakelocks usually show 0-1% of awake time for a session. If you start seeing numbers like 3%, 7% , 9%, or more, on some specific wakelock, then there is definitely a problem.
Wakelock battery drain will usually appear in your Android System/OS drain stats, so it's impossible to determine without an app.
The most common wakelocks for me are:
- *net_scheduler* wakelock - this one can be related to your WiFi connection. In order to fix it you should have access to the router's settings, and that is not always possible. If you do have access, you can try changing the Wi-Fi channel (choose channel based on Channel Width, for example 40Hz width on 2.4GHz network could use channel 11), and Beacon Interval (set the interval to the highest possible). I found this helped in my case. This wakelock can also be related to google play services - check the previous part of the post on how to possibly resolve the GPS issue. Also, the wakelock can appear under the icons of other apps, when there is little you can do to track down exactly why it happens.
- *com.google.android.gms.measurement* wakelock - this is a VERY common one in my case, and BBS usually shows it comes from Google Services, but always has a specific app icon next to it. In order to resolve this wakelock I had to do the following:
Open my package disabler and go through each app that might be using background data, or the app that is shown next to that wakelock, and then open their lists of individual services. I searched for:
1. AppMeasurementService
2. AppMeasurementJobService
3. Firebase... any service starting with Firebase in its name
These services are related to apps collecting some usage statistics on how you use them and sending them back somewhere, probably the app vendors. You do not need them for any app to be functional, and many apps don't have them. For some reason they can keep your device awake for long periods of time. I disabled them on ALL apps I could find them in and it seemed to resolve a lot of wakelocks after investigating the next following days. This process was probably one of the things that helped me the most with hunting down daily wakelocks as the drain is very stable for me now. For example, today I came back from work with 20 hours of phone usage since charge, almost 1h of SoT and 75% battery left. Other days, I have come back from home with 10 hours of usage, 1.5h of SoT and ~60%. I've seen a lot of improvement lately after doing all of the suggested things and keeping Google services at bay in parallel to that.
---
Bluetooth wakelock
This one was the most inexplicable to me. I never use Bluetooth, or turn it ON for any reason at all. I could not understand why the wakelock occurs.
Ultimately, my solution was to completely disable the Bluetooth System package and all services in it through the BK disabler.
I know this solution doesn't sound good to anyone, but at the same time it might be useful if you also do not use BT at all.
I plan to buy BT headphones in the near future and will be re-enabling this, and at that point I will start observing the behavior of the package once again and maybe turn it on/off at will if the wakelock re-appears too often.
---
Other wakelocks
The general rule here still applies. First, you record your usage with BBS. Then you note down which wakelocks appear on top, and google them as best as you can. Search is your friend here, as the wakelocks are endless and it is impossible for me to list them all and give solutions for even a small percentage of them. Sometimes you might get lucky and find an easy fix. In other times, there will be no easy explanation, or no explanation at all. Such is the nature of Android.
In some cases the wakelocks might be specific services that you can disable for specific apps. In other cases, they will be too general and it will be unclear why they occur. For example, I sometimes get *net_scheduler* wakelock with the Viber app, that can last for 20-30 minutes at random times, and still have not found a way to resolve that, other than uninstalling Viber completely (which is not a bad idea but sadly some of my contacts insist on using that crap. Telegram is your friend).
---
General Tips:
Use an AMOLED black theme. System theme from Samsung Themes (!) and individual app themes / status bar from Substratum. Do not use overlays for the system UNLESS you do not use samsung themes. I found out that Samsung themes do a better job at painting all system apps black, while some substratum overlays miss a few things. It will also be a LOT less painful to update overlays as you uninstall all of them and re-install them, because using Samsung for the system means less packages from Substratum to be installed. REMEMBER to always uninstall system overlays and statusbar overlays (ALL overlays if you want to be super safe) before doing a system update! Otherwise you can soft-brick your device.
Use auto-brightness and make sure to make it as low as you are comfortable with in rooms that you stay often in (like your own room, your office room, etc). Smart auto-brightness will remember you preference and you will hardly ever use more brightness than you need.
Turn off notifications for any apps that are not essential to you. In fact, I have turned off everything except Gmail, because I have a habit of checking my phone very often and do not miss out on anything, while notifications have become a bit annoying to me anyway.
Put almost all of your apps to 'Always Sleeping' in the device optimization app.
Do NOT always sleep apps that you need to be awake, like your Messaging app, Home Launcher, utility stuff like Navbar Apps, Keyboard. Put those in the 'Unmonitored' category instead.
DE-OPTIMIZE your fingerprint scanner from battery optimization settings if you are having issues with waking up the device with it. It is optimized by default if I remember correctly.
If you are feeling BRAVE, you can do your own investigation for each app that you use often to look for any services that might look like Analytics services. Experiment at your own risk, but generally such services are always a benefit to turn OFF for both battery and privacy reasons.
---
Overall, that's it. If I remember something, I will update the thread. Hopefully this can help someone.
In my personal results, I've managed to achieve a 0.3% idle drain per hour with Wi-Fi active during a test of 12 hours of standby. As visible in the screenshot, the Wi-Fi signal is not even perfect.
Here is an example of idle drain with about 1h 10m of SoT at the time it was taken.
---
Feel free to use this guide in conjunction with Neomancr's general battery and performance tuning guide
Thanks!
magarto said:
Thanks!
Click to expand...
Click to collapse
No problem!
This should be on top! Thanks a lot!
The "Service Disabler" functionality has been removed from the latest app version due to Google Play policies.
Fortunately we can find the previous apk version in the developers website.
https://kunkunsoft.wordpress.com/news_2/
Cheers!
hey thanks a ton for this article! My battery is horrible...REALLY. 2 h ost...I've just completed the first part. please explaind better what do you mean with "sign out from Google accounts" step by step. and in my case BBS was not adb enabled...I was not able to see wakelocks. the command explained here https://alexus.org/howto/better-battery-stats-no-root/amp (the google play store version) granted permissions for me. maybe you want to update the guide! I'll let you know how it goes.
cheers
@brokich
Could you please point us exactly to what are the main apps with AppMeasurement and Firebase services?
Until now I have found only the Google play store app.
Thanks for your great guide.
Thanks for the guide. Starting to debug battery issues. Meanwhile tried setting up the black theme. What do you mean by installing only Samsung theme? Do you mean a specific theme made by Samsung electronics or any black theme from Samsung theme market?
Here are the correct adb commands to BBS, as shown in the app in first start:
adb -d shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS
adb -d shell pm grant com.asksven.betterbatterystats android.permission.DUMP
adb -d shell pm grant com.asksven.betterbatterystats android.permission.PACKAGE_USAGE_STATS
My background with android is long and rocky.
A long time ago in a galaxy far away, I had a Samsung Galaxy S, then a S2.
I can remember a Google Nexus phone in there somewhere.
Then at some point I switched over to Windows Mobile for many years.
A couple of hears ago I came back to android with a Samsung Galaxy S8+ and I hated it.
Recently I upgraded to a OnePlus 6T McLaren and here I am.
I had been expecting to see android happily use up 7, 8 or even 9GB of ram before the background task manager would begin to kill tasks.
Except that I seldom saw android use much more than 5GB of ram.
And worse, background tasks were being killed on a regular basis.
Widgets would stop working overnight, or even in just a few hours.
Spotify would close while a playing a playlist.
A quick search on XDA reveals that many users believe that Android will just use up as much ram as your phone has.
However, that is simply not true.
And so, I began my quest to have Android use as much ram as the phone could provide.
In my case, 10GB.
- I understand that there is an inherent trade-off between keeping background apps running and battery usage. I can live with extra battery usage in exchange for keeping my widgets running or Spotify running for an entire playlist.
- I realized very quickly that in order to achieve the results that I was looking for that the phone would have to be rooted. So rooting was one of the first things that I did.
Step 1.
I started with the basic stuff that a quick google search would provide;
- Settings -> Battery -> Battery Saver (off)
- Settings -> Battery -> Adaptive Battery (off)
- Settings -> Battery -> Battery Optimization -> widget app (don’t optimize)
- Settings -> Battery -> Battery Optimization -> Spotify (don’t optimize)
- Settings -> Battery -> Battery Optimization -> Advanced Optimization -> Deep Optimization (off)
- Settings -> Battery -> Battery Optimization -> Advanced Optimization -> Sleep standby optimization (off)
- Settings -> Apps -> Widget app -> Battery -> Background Restriction (app can use battery in background)
- Settings -> Apps -> Spotify -> Battery -> Background Restriction (app can use battery in background)
This helped but not enough to make the widgets or Spotify usable.
Step 2.
I supposed that my specific background tasks that I wanted to keep running were being killed because of the many other apps that were running in the background.
I searched for and found Tomatot DeBloater scripts for the Oneplus 6.
Excellent! Just what I was looking for.
I chose the Tomatot-Debloater-OOS-Light-2.3.zip and installed it.
This helped some more but not enough to make the widgets or Spotify usable.
Step 3.
I realised that there were still some apps running in the background that I didn’t use or want.
So I used Titanium Backup to freeze the following apps;
- Calendar
- Calendar Storage 9
- Contacts (O+)(I replaced with google contacts)
- Dashboard
- Drive
- Face Unlock
- Gboard
- Gmail
- Google
- Google partner setup 9
- Google play music 8
- McLaren AR
- Messaging (O+)(replaced with google messaging)
- OK google enrollment 9
- Oneplus system 1
- Youtube
Perfect! These apps were no longer competing for phone resources with the apps that I wanted to run.
This helped some more but not enough to make the widgets or Spotify usable.
This did make the phone feel faster and smoother.
The phone is much more responsive and fluid to my input.
This made me realize that the apps were being closed not due to a lack of phone resources, but a background task manager being aggressive.
Presumably for battery saving purposes.
I changed my focus to adjusting that background task manager.
Step 4.
Enable the recent screen ‘LOCK’ on the widget app and Spotify.
This didn’t do anything for me.
Everything that I’ve read on it says that it just stops the task from being killed when you click on kill all tasks.
The lock doesn’t lock the task from being killed by the background task manager.
Step 5.
Further google searching led me to believe that the OEM kernel was limiting background tasks.
I choose ElementalX-OP-3.09 and the EX Kernel Manager.
I had to read a lot of google university material to make any sense of the settings in here.
I’m not sure that I fully understand even now.
Eventually, I ended up with the following settings;
Memory
- Adaptive Low Memory Killer (disabled)
- dirty ratio (20)
- dirty background ratio (5)
- min free kbytes (12398)
- vfs cache pressure (100)
Memory -> Low Memory Killer
- apply on boot
- Foreground app (72mb)
- Visible apps (90mb)
- Secondary server (108mb)
- Hidden apps (200mb)
- Content Providers (587mb)
- Empty apps (783mb)
This helped a lot.
This almost made the phone usable to the state that I wanted.
But the widget and Spotify would still stop running overnight and by morning the apps would have to be reopened to get them to run again.
At least the apps would run most of the day without being killed.
Still not the behaviour that I expected from a phone with 10GB of ram.
Ram usage was still not going much over 5.5Gb even if I opened up many apps at once.
Can I ever get ram usage up to the 10Gb that I have?
Step 6.
The last thing that I tried yesterday afternoon was to increase the background task limit in the build.prop.
ro.vendor.qti.sys.fw.bservice_limit=5 (changed it to 60)
ro.vendor.qti.sys.fw.bservice_age=5000 (changed it to 10000)
Yes, I know that I am on PIE and there isn’t supposed to be any effect.
No, I don’t know yet if this had any effect.
I am hopeful.
The widget app didn’t close last night, but Spotify did.
I am getting closer!
This is the best that I could do on my own without asking for help.
So here I am posting my question and asking for help.
How do I get the apps that I want to run to not be killed by the background task manager?
OR
How do I get the phone to use the 10GB of ram?
I feel that I am missing something.
With any luck, one of you smarter persons will be able to point it out to me.
As an aside from all of these changes the phone feels very smooth and fluid.
Except for apps closing that I don’t want to, this phone is a great experience and a pleasure to use.
Apps that I want to run are staying open much longer then before I started.
It’s now just an overnight issue.
And getting the phone to use over 6Gb of ram.
I would suggest that I am 90% happy with it now.
KERNAL: ElementalX-OP6-3.10
ROM: STOCK OOS 9.0.11
PHONE MODEL: 6013 O+6T McLaren
Tomorrow I may try making this change to the build.prop file;
ro.vendor.qti.sys.fw.bservice_enable=true to false
Don't know if it will help or not.
Wow dude, interesting read, i will sign up for notifications from this thread hoping you get your answer because i have the exact same problem but with my work app, throwing it all out of whack and making me a target to big fines (in the $1,000's) and potentially reducing my marketability!
The attached screenies are from before i realized that the app getting killed in the background is what causes the problem (I've left it in the foreground HOURS a few times and it works perfectly!)
UPDATE:
Good news!
I seem to have solved my issue.
Time will tell for sure though.
But this morning and all day today, Spotify and the widget app have been running without closing.
AND I have seen memory usage up to 6.8GB used.
Here are the further steps that I took;
- ro.vendor.qti.sys.fw.bservice_enable=true (changed it to false)
I didn't really notice much of a change.
But then I noticed that perhaps the limit of 60 tasks was not high enough.
I seem to have that many apps open and limiting to just 60 may be an issue.
- ro.vendor.qti.sys.fw.bservice_limit=60 (changed it to 120)
THIS!
This seemed to have worked for me.
All apps seem to be open and be staying open.
Today I got a message/warning from android telling me that the widget app is consuming the battery in excess but I ignored the warning and android did not close the app or stop the widget from running.
I will keep an eye on the phone for the next few days to confirm that this actually solved my issues.
My next step will be to see what effect if any this has had on my battery usage.
I am curious to see if it's all that bad...
geeksquad2 said:
UPDATE:
Good news!
I seem to have solved my issue.
Time will tell for sure though.
But this morning and all day today, Spotify and the widget app have been running without closing.
AND I have seen memory usage up to 6.8GB used.
Here are the further steps that I took;
- ro.vendor.qti.sys.fw.bservice_enable=true (changed it to false)
I didn't really notice much of a change.
But then I noticed that perhaps the limit of 60 tasks was not high enough.
I seem to have that many apps open and limiting to just 60 may be an issue.
- ro.vendor.qti.sys.fw.bservice_limit=60 (changed it to 120)
THIS!
This seemed to have worked for me.
All apps seem to be open and be staying open.
Today I got a message/warning from android telling me that the widget app is consuming the battery in excess but I ignored the warning and android did not close the app or stop the widget from running.
I will keep an eye on the phone for the next few days to confirm that this actually solved my issues.
My next step will be to see what effect if any this has had on my battery usage.
I am curious to see if it's all that bad...
Click to expand...
Click to collapse
Nice find, I checked my build.prop and found this. No wonder my apps are killed
Code:
#ifdef VENDOR_EDIT
#[email protected] modify for app memory
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_limit=5
ro.vendor.qti.sys.fw.bservice_age=5000
#endif/*VENDOR_EDIT*/
EDIT: I see a lot of custom ROM's have "ro.vendor.qti.sys.fw.bg_apps_limit=60" to the build prop, I wonder if that going to make a difference
UPDATE:
I am a silly goose.
I broke a cardinal rule while troubleshooting.
I may have had a few too many wobbly pops and made two changes at a time, thus when change was affected, I was unable to determine properly which change caused the affect.
The rule is, "only make one change at a time when testing".
Yes, all of my apps stay open all the time.
I am getting the behaviour that I was looking for.
However it wasn't necessarily changing the build.prop bgservice_limit from 60 to 120 that did it.
Let me back up a bit.
Earlier I had suggested that locking an app to the recent screen didn't do anything for me, and that in my reading it only locks the app from being killed by you when you try to close it manually.
However in reading up on the oneplus framework-res.apk I found a reference to an oneplus whitelist of apps that will never be killed, and a reference to the recent screen app lock that suggests that oneplus will add a locked app to the whitelist and not kill it.
In the course of a single day, I had inadvertently edited the build.prop and locked the widget app to the recent screen thus breaking the one change at a time rule.
So the next morning and the following days when all apps were staying open I attributed it to changing the build.prop not realizing that it could also have been the app lock.
Last night I realized my mistake.
I unlocked the widget app from the recent screen and went to bed.
When I woke up this morning the widget app was not running for the first time in days.
Also the notifications that I was receiving about the widget app consuming excessive battery have stopped.
It would appear that I was wrong in my earlier observations regarding the app lock mechanism.
It appears to be very useful for keeping apps running all the time.
Did changing the build.prop have any affect on keeping apps open?
Maybe?
I have noticed that my battery life has gone for a complete ****.
I can barely get 24 hours out of the phone.
Worse is that it doesn't matter if the screen is on or not, battery usage remains the same.
i.e. with the screen off and the phone put down, battery life appears to be used at the same rate as when the phone is in use.
I had expected the battery life to be not as good, but I didn't expect it to go to for a **** that badly.
There must be a balance between aggressive app management and acceptable battery life.
The phone didn't display this behaviour until I changed ro.vendor.qti.sys.fw.bservice_enable=true to false.
I think that today I will change ro.vendor.qti.sys.fw.bservice_enable= back to true and observe the battery tomorrow.
kantjer said:
Nice find, I checked my build.prop and found this. No wonder my apps are killed
Code:
#ifdef VENDOR_EDIT
#[email protected] modify for app memory
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_limit=5
ro.vendor.qti.sys.fw.bservice_age=5000
#endif/*VENDOR_EDIT*/
EDIT: I see a lot of custom ROM's have "ro.vendor.qti.sys.fw.bg_apps_limit=60" to the build prop, I wonder if that going to make a difference
Click to expand...
Click to collapse
I think that ro.vendor.qti.sys.fw.bservice_limit= and ro.vendor.qti.sys.fw.bg_apps_limit= are essentially the same thing, except for android versions.
ro.vendor.qti.sys.fw.bg_apps_limit= is for Android 7: Nougat and below.
ro.vendor.qti.sys.fw.bservice_limit= is for Android 8: Oreo and above.
Someone more knowledgeable than me should chime in here though.
Do you think any of this could have to do with the way the phone keeps disabling push in Gmail? (Every other day I need to set my O365 exchange in Gmail back to push because it automatically changes to the default of checking every 30 mins.)
Any conclusion?
Did you guys manage to solve this issue please by editing the build prop?
Latest smurf kernel rc14b seems to have solved the RAM management issue. I haven't had any apps closing in background since using it.
thank you for the thread!
What did you find in the end?
How did you set this ?
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_limit=5
ro.vendor.qti.sys.fw.bservice_age=5000
So what's the verdict on the buildprop edits? Do they make a difference?
I notice that sometimes my on-going weather notification doesn't update, or gets killed off. I also have an app that controls rotation per app, and that also seems to stop doing it's thing after a while.
Just want to share. If you are rooted with Magisk, try appsystemizer module. System apps don't get killed by oneplus as aggressively. Tried it with accubattery and it works.
I am so glad I stumble across this, I just want to say, changing
ro.vendor.qti.sys.fw.bservice_limit=5 to 120
ro.vendor.qti.sys.fw.bservice_age=5000 to 10000
Keep apps in ram for much longer then original! For me the battery life is unaffected, might even be better.
scloss84 said:
I am so glad I stumble across this, I just want to say, changing
ro.vendor.qti.sys.fw.bservice_limit=5 to 120
ro.vendor.qti.sys.fw.bservice_age=5000 to 10000
Keep apps in ram for much longer then original! For me the battery life is unaffected, might even be better.
Click to expand...
Click to collapse
Also want to solve this issue.
On which OOS Version you are? (i am on 10.3.1)
Does this really work in newer OOS Versions?
I have read elsewhere that those settings dont work on newer versions, sadly, cant find the thread/source.
thx
pOpY
popy2006 said:
Also want to solve this issue.
On which OOS Version you are? (i am on 10.3.1)
Does this really work in newer OOS Versions?
I have read elsewhere that those settings dont work on newer versions, sadly, cant find the thread/source.
thx
pOpY
Click to expand...
Click to collapse
I'm actually Oneplus 6, OOS 9.0.9.
I also read that it doesn't work on Android 10 because magisk doesn't mount /system in Android 10, but there is a magisk module workaround that you can use. And hopefully magisk will update in the near future to fix that. Just google "Android 10 can't edit build.prop" and you'll find heaps of info.
This is what I have in my build.prop file and it seems to help. I have Oreo it works great on my phone I don't know about later versions of Oreo.
ro.vendor.qti.sys.fw.bservice_enable=true
ro.vendor.qti.sys.fw.bservice_age=5000
ro.vendor.qti.sys.fw.bservice_limit=5
ro.sys.fw.bg_apps_limit=64