MIUI kills background processes and possible solution - Xiaomi Mi 5s Guides, News, & Discussion

Hi all
I discovered that MIUI very aggressively kills background processes, which are needed for Push functions. Affected apps on my device (now with Global 8.0.3.0, but also with Chinese developer 6.x.x. Haven't tested 7.x.x.) are Touchdown, KIK, Gmail, Threema and others.
Those apps don't seem to have Push correctly working, some apps get messages with several hours delay.
I allowed all those apps to Autostart in the Settings -> Permissions.
There is an option in the Android Developer Options (To enable Developer Options Settings App > About Phone > MIUI Version > Keep on tapping till it is enabled.) called MIUI Optimization, which seems to have an effect on the memory process killing, but maybe also on the Permission functions. After I disabled this option and rebooted, several apps were running, although they weren't in the autostart permitted list. It's possible though, that they were active before the reboot and MIUI restarted them after the reboot.
Source:
https://forum.xda-developers.com/re...de-redmi-note-3-sd-mtk-multi-tasking-t3358433
Turn On MIUI Optimization : This option enables a pleothora of MIUI based settings & optimizations as per the guidelines set by the MIUI developers. This setting can sometimes cause a variety of issues on non-MIUI based apps such as Google Apps & Apps from Google Playstore. Its better to disable if you rely on Google Playstore for apps & services.
With the MIUI Optimization Enabled, some users reported the following issues.
- Cannot set third-party launcher like Nova, Apex or Google Now Launcher.
- Wallpaper cannot be set using in-built options via custom launchers.
- Occasional lags, stutters or freezes while scrolling web-pages & long lists.
- Custom apps set as default restore to default MIUI apps on reboot.
- Cannot set accessibility services on reboot.
- Background apps cannot sync data.
- Music players stop playing after sometime.
- UI Animations are not synced properly.
Click to expand...
Click to collapse
I'm testing now if my mails are correctly delivered again, because that was buggering me the most. This worked fine on my old Sony Z1C and also Huawei Y6 II.
So far it doesn't seem to help though, but I'm testing a bit further.

Thanks!!!

patoberli said:
Hi all
I discovered that MIUI very aggressively kills background processes, which are needed for Push functions. Affected apps on my device (now with Global 8.0.3.0, but also with Chinese developer 6.x.x. Haven't tested 7.x.x.) are Touchdown, KIK, Gmail, Threema and others.
Those apps don't seem to have Push correctly working, some apps get messages with several hours delay.
I allowed all those apps to Autostart in the Settings -> Permissions.
There is an option in the Android Developer Options (To enable Developer Options Settings App > About Phone > MIUI Version > Keep on tapping till it is enabled.) called MIUI Optimization, which seems to have an effect on the memory process killing, but maybe also on the Permission functions. After I disabled this option and rebooted, several apps were running, although they weren't in the autostart permitted list. It's possible though, that they were active before the reboot and MIUI restarted them after the reboot.
Source:
https://forum.xda-developers.com/re...de-redmi-note-3-sd-mtk-multi-tasking-t3358433
I'm testing now if my mails are correctly delivered again, because that was buggering me the most. This worked fine on my old Sony Z1C and also Huawei Y6 II.
So far it doesn't seem to help though, but I'm testing a bit further.
Click to expand...
Click to collapse
You can also use, Push Notification Fixer from Google play. I only had the problem when using chinese rom. After switching to global, the notification a lot better

Go to the security app and inside saving battery settings and uncheck apps you don't want Miui to manage.

Done that now too, although I have already disabled the battery saver. I wonder if this will help a little, at the moment I don't get messages/notifications to my smartwatch, for example.

Hi,
This guide helped me (somehow): http://www.forbes.com/sites/bensin/...ions-on-xiaomis-miui-8-for-real/#1434cfd94e1b.
The 5 steps in short are:
Settings --> Battery & performance --> Manage apps battery usage --> choose apps --> select app that should receive push notifications and set "No restrictions"
Settings --> Permissions --> Autostart --> activate for all apps that should receive notifications
Settings --> Notifications & status bar --> App notifications --> select relevant app and activate "Priority"
In the overview of running apps/app manager lock the relevant apps (swiping down)
Settings --> Additional settings --> Developer options --> Memory optimisation --> set to "Off"
Push notifications now work perfectly on one phone (Redmi 3s with latest stock global rom stable), while i have still some troubles on another one (Mi 5s with latest xiaomi.eu stable). For the later the mail client (k9 mail) does not poll the mailboxes at the defined intervals (while k9 works fine on the redmi). Maybe also a configuration problem of k9, have no idea yet...
Regards,
gp

I have stopped using k9 because of those kind of problems. Now I use Sol Mail

EMJI79 said:
I have stopped using k9 because of those kind of problems. No I use Sol Mail
Click to expand...
Click to collapse
k9 is indeed cumbersome to the extent that you have a lot of settings and you have to apply many of them for each individual account separately. Sometimes less is more...
But once you managed that you can make use of the export/import settings function.
Most important feature for me is that all account settings are kept inside the app and can not be queried by other apps (which would be the case if the info is stored in the android account store).
Never tried Sol Mail so can't tell how this app manages the accounts...

I don't know either.
I choose Sol Mail after I had choose K9 because they offer unified view for received and sent message from every account into one single screen.

EMJI79 said:
Go to the security app and inside saving battery settings and uncheck apps you don't want Miui to manage.
Click to expand...
Click to collapse
patoberli said:
Done that now too, although I have already disabled the battery saver. I wonder if this will help a little, at the moment I don't get messages/notifications to my smartwatch, for example.
Click to expand...
Click to collapse
Ok, can now confirms that it indeed helped Not perfect, but much better.

Related

running apps

from the apps screen i went into remove apps/manage applications and then running apps .I was amazed at what it said was running , stuff i had not used for days, did a restart and checked again and there's still loads running like stocks that i never use or htc news must be about 40 things running, this must contribute to poor battery performance how are others stopping them running?
combat goofwing said:
from the apps screen i went into remove apps/manage applications and then running apps .I was amazed at what it said was running , stuff i had not used for days, did a restart and checked again and there's still loads running like stocks that i never use or htc news must be about 40 things running, this must contribute to poor battery performance how are others stopping them running?
Click to expand...
Click to collapse
Go to Menu > Settings > Applications > Running Services and just click on them and stop them?
You can disable News & Stock through Menu > Settings > Accounts and Sync and then disable them there.
I noticed with my previous DHD the battery life was pretty poor, so went to Running Services to see if any useless process was still running. Indeed, some sudoku process was running for 5 days which prevented the phone from going into Sleep mode. Going to Menu > Settings > About phone > Battery, Awake time was almost 50% of Up time!
My running services currently are:
HTC Sync
Network Monitor
CSPeopleSyncService
Calendar
Google Services Framework (2 processes)
HTC Sense (2 processes)
Maps
Mail (2 processes)
Swype
Wekko306 said:
Go to Menu > Settings > Applications > Running Services and just click on them and stop them?
You can disable News & Stock through Menu > Settings > Accounts and Sync and then disable them there.
I noticed with my previous DHD the battery life was pretty poor, so went to Running Services to see if any useless process was still running. Indeed, some sudoku process was running for 5 days which prevented the phone from going into Sleep mode. Going to Menu > Settings > About phone > Battery, Awake time was almost 50% of Up time!
My running services currently are:
HTC Sync
Network Monitor
CSPeopleSyncService
Calendar
Google Services Framework (2 processes)
HTC Sense (2 processes)
Maps
Mail (2 processes)
Swype
Click to expand...
Click to collapse
thanks for the reply i can force stop but they seem to be there again after a restart how can yo stop this , my syncs are all off yet news still appears as running?
don't worry about it. Android manages this for you.
Just because it is a running process, doesn't mean it is using processor or battery. Killing this processes will use more battery as it will just automatically restart.

I suggest you to install some aps to get a better functionality at your Honor 7

yes i know that this tools are helpful for most devices, but i find them also necessary on my Honor 7. Maybe you find that too
QuickShortcutMaker -> will set soft links to internal functions of your device (stepcounter on B180 or B190 etc.)
you will find it here -> https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut&hl=en
See here too -> http://forum.xda-developers.com/honor-7/general/honor-7-functionality-t3203977
Call End Tone Free -> play a sound and vibrate if a call was interrupted or ended.
you will find it here -> https://play.google.com/store/apps/details?id=com.tomatox.callendtone
Needs autostart app because it doesn’t start after reboot!
Network Monitor -> This app gives you a alarm and a notification if you have lost the GSM signal!!! Monitoring/Logging/Alarm
you will find it here -> https://play.google.com/store/apps/details?id=msd.n2g.n3g
see here too -> http://forum.xda-developers.com/honor-7/general/how-recognize-to-lose-gsm-signal-honor-t3367093
Missed Message Flasher .> play a sound or flash screen when a call or message has arrived you
you will find it here -> https://play.google.com/store/apps/details?id=com.tomatox.missedmessageflasher
Smart Sound Profiles -> let you create and use different sound profiles
you will find it here -> https://play.google.com/store/apps/details?id=com.tartar.soundprofiles&hl=en
Screen Manager -> let your screen stay on if selected apps are in foreground / switched screen off if something is in front of your screen
you will find it here -> https://play.google.com/store/apps/details?id=com.nbondarchuk.android.screenmanager&hl=en
NetGuard -> Firewall and Adblocker for rooted and not rooted devices!!!
you will find it here -> https://play.google.com/store/apps/details?id=eu.faircode.netguard&hl=en
But i suggest to use -> https://github.com/M66B/NetGuard because this version will have more features!
see here too -> http://forum.xda-developers.com/android/apps-games/app-netguard-root-firewall-t3233012
Battery Notifier Pro BT -> Battery alarm notifications with features and options not found in other apps
you will find it here -> https://play.google.com/store/apps/details?id=com.larryvgs.batterypro&hl=en
Lux Auto Brightness -> You have control over how much brightness will be applied for any given light condition.
you will find it here -> https://play.google.com/store/apps/details?id=com.vitocassisi.luxlite
Auto Starter -> If some of your apps are to old to start at reboot
you will find it here -> https://play.google.com/store/apps/details?id=de.defim.apk.autostarter
Sorry but the description seems to be in German only.
and at least the best music player i ever heared! (i had tested more than 15 different players!)
Neutron -> Music Player with EQ - give him a chance!
you will find it here -> https://play.google.com/store/apps/details?id=com.neutroncode.mpeval
last Edit: update on 11.06.2016
missed messgae flasher and net guard are handy at times, thanks for sharing..
Apps suggestion updated because "Signal Strength Warning" failed.
non-toxic said:
Apps suggestion updated because "Signal Strength Warning" failed.
Click to expand...
Click to collapse
nice
This is offtopic, but System App Remover allowed me to remove system apps, especially Gapps I don´t use. The coolest thing is the deleted app can go to a trash bin while I tested H7 for errors and only then decide to permanently delete the app. For example, I replaced Swype keyboard by a updated and more powerful version.
I found it much more cleaner and straightforward than Titanium Backup. But root is required.
@non-toxic have you give it a go at B380?
[end of off-topic]
zinko_pt said:
This is offtopic, but System App Remover allowed me to remove system apps, especially Gapps I don´t use. The coolest thing is the deleted app can go to a trash bin while I tested H7 for errors and only then decide to permanently delete the app. For example, I replaced Swype keyboard by a updated and more powerful version.
I found it much more cleaner and straightforward than Titanium Backup. But root is required.
@non-toxic have you give it a go at B380?
[end of off-topic]
Click to expand...
Click to collapse
no, i had useed Link2SD
updated first post because getting new results
non-toxic said:
updated first post because getting new results
Click to expand...
Click to collapse
nice
My H7 plays a beep when ends a call. I've not setup anything in particular, it just does...
i had add some new apps: see first post
Auto Brightness; Auto Starter (Auto Run); Neutron m_u_s_i_c_p_l_a_y_e_r
I'll try out the music player.. Nice!
I have changed my suggestion for "VELIS" Auto Brightness" to "LUX Auto Brightness" because this app seems to have a better working on Honor 7

battery life with resolutions

I have not seen real comparisons yet of battery at all 3 resolutions. Has anyone tested? I'm running at the lowest today just to see. Honestly screen is fine and can barely tell the difference at lowest res
curious for this as well. Got fairly good life out of it with factory settings at 1080. Switched to 1440 last night and cant really tell a difference in resolution but i think battery life is hurting.
EDIT: Tmo S8 with update, for reference.
Because I also couldn't tell a difference, I immediately switched to the lowest resolution. With the following settings, I had 92% battery left at the end of a work day where I would have had about 60% on the Nexus 6p:
- Brightness always at max and disable auto brightness. Bluetooth on, WiFi off.
- Disable pretty much every Samsung feature, gesture, and Samsung app. Made as Nexusy as possible (still using Samsung launcher, which is fine, and I uninstalled Google because I don't really use Google Now and suspect it's a battery hog. The only voice feature I was using was "ok Google navigate home", but now the maps app just let's you save directions as home screen shortcuts).
- Going through the permissions settings in the advanced app options menu in Samsung settings, I disabled all permissions for each app except the ones I know they need.
- Installed Package Disabler Pro and blocked a **** ton of stuff, including in the system packages. Anything with the word bixby in it, all of the T-Mobile apps except visual voicemail (anyone know if I can disable that and still get visual voicemail via the Samsung phone app??), and most of the Samsung apps except things with the word clock or calendar in them because I assumed the overall ROM relies on them but I could be wrong.
- Once done with everything, close all apps then go into settings > device maintenance > optimize now, then reboot the device.
- This CAN have VERY good (potential) battery life, better than the Nexus 6p when reviews were suggesting it was pretty bad.
.psd said:
EDIT: Tmo S8 with update, for reference.
Because I also couldn't tell a difference, I immediately switched to the lowest resolution. With the following settings, I had 92% battery left at the end of a work day where I would have had about 60% on the Nexus 6p:
- Brightness always at max and disable auto brightness. Bluetooth on, WiFi off (only whole at work).
- Disable pretty much every Samsung feature, gesture, and Samsung app. Made as Nexusy as possible (still using Samsung launcher, which is fine, and I uninstalled Google because I don't really use Google Now and suspect it's a battery hog. The only voice feature I was using was "ok Google navigate home", but now the maps app just let's you save directions as home screen shortcuts).
- Going through the permissions settings in the advanced app options menu in Samsung settings, I disabled all permissions for each app except the ones I know they need.
- Installed Package Disabler Pro and blocked a **** ton of stuff, including in the system packages. Anything with the word bixby in it, all of the T-Mobile apps except visual voicemail (anyone know if I can disable that and still get visual voicemail via the Samsung phone app??), and most of the Samsung apps except things with the word clock or calendar in them because I assumed the overall ROM relies on them but I could be wrong.
- Once done with everything, close all apps then go into settings > device maintenance > optimize now, then reboot the device.
- This CAN have VERY good (potential) battery life, better than the Nexus 6p when reviews were suggesting it was pretty bad.
Click to expand...
Click to collapse
Did you actually know what you were disablinh in pdp
km8j said:
Did you actually know what you were disablinh in pdp
Click to expand...
Click to collapse
Kind of, but not entirely.
It has a section for verified safe-to-disable apps. If that isn't enough, there's a section for "system" packages where I avoided disabling anything that I want pretty confident wouldn't affect the overall system (like I didn't disable anything that has to do with sound or audio for example, even though a few of them looked like bloat). I'm the system section however is where you can disable bixby and carrier related ****. There's a search section, which is very helpful (e.g. search "bixby' and disable everything).
I have the advantage of having messed with phones and done trial and error with a much less organized app that essentially does the same thing, which has always been very popular for topped devices, called Titanium Backup.
Finally, when you're done blocking everything you want to block, hot the menu button (top right) and clear the data of disabled packages! VERY good app overall in my opinion, beat $1.50 spent in a long time!

How to disable/adjust the background task limit?

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

Android 10 for MI A2 has arrived :)

just checked update is there
1283.7mb to download . i didn't test it yet good luck
Portugal??
Arrived in Italy.
Camera Api 2 not supported
I haven't test it in full (obviously) but there are already some annoying glitches...
emmc bug is still present
n0b0dy666 said:
I haven't test it in full (obviously) but there are already some annoying glitches...
Click to expand...
Click to collapse
No problems for me so far. Loving it
n0b0dy666 said:
I haven't test it in full (obviously) but there are already some annoying glitches...
Click to expand...
Click to collapse
What kind of glitches?
on mine i can't remove the top most notification on settings (customize your a2 phone with wallpapers, blabla)
L.E. and the notification led was broken for a bit, fixed itself after a few restarts.
No boot loop (I was afraid)
It took about 5 minutes to restart, after password took about 3 minutes with the message your phone is starting, and it restarted again, then everything is fine.
*Camera API2 not enabled, (Though this would be it but...Xiaomi)
*the downloads issue from past update is gone
*camera seems fine,
*there's this app called "Device Personalization Services" which just crashes, it can be unistalled though
*persistance Custumize your Mi A2 message at the top of settings (can't dissmiss it?)
Everything else seems fine so far.
Gestures in third party launchers don't work
So I've installed it, here are some important points worth mentioning :
1- no camera 2 api
2- no ARCore
3- The device personalisation services which is the app responsible for app suggestions in app menu and smart replies etc. is now visible via app menu and it shouldn't
4- Google play music is now force installed, you could uninstall it in pie and Oreo
5- remember how we complained about xiaomi not adopting to new Google material design guide lines by making dialog corners edgy ? Well it became seriously worse, everything is pointy and I don't like it
6- Google Assistant gestures are not working
7- all new features are working pretty well including new gestures and system wide dark mode and new theming options in developer options, tho unlike pixels system wide dark mode doesn't apply at boot screen
8- I suspect there's again some noises coming from camera, better check that yourself
9- there's an annoying banner in settings about some suggestions which you can't get rid of , possibly because of Device Personalisation Services app being faulty
10- if you have 2 users set on your phone you can't see the user switcher until you turn it on and off in settings
11- The security patch is still from December so expect another OTA in near days before next month which possibly includes bug fixes and January patch
12- some quick step ( default launcher ) features aren't working, you wanna guess which ? You're damn right, the ones related to Device Personalisation Services.
13- a lot of lagging, well there's nothing really there to say about it, is it? Expect some annoying lags.
14- the trusted face option is removed from smart Lock so you can't unlock your device with face recognition at the moment.
What about disabling Device Personalisation app?
i'll add a few bits:
- no longer says charging quickly (i hope it's just a display thing and still fastcharges)
clear cache on the device personalization services and it should stop crashing on load (still doesnt open, but wont see the force close)
Bluetooth is not working to me
Anyone can confirm?
carlosm182 said:
Bluetooth is not working to me
Anyone can confirm?
Click to expand...
Click to collapse
nope, working here
iluvatrix said:
What about disabling Device Personalisation app?
Click to expand...
Click to collapse
Hi, I don't think you should disable it, well you can uninstall it but that would be pointless. Device Personalization Services is an app which was present in OS since Android pie and it has always been hidden as a part of system apps, now due to a bug it's not working and it's being shown in apps list like any other app
Audio
Multimedia audio doesn't seem to work yet the other audio channels seem fine, anyone else?
LonelyGlitch said:
So I've installed it, here are some important points worth mentioning :
1- no camera 2 api
2- no ARCore
3- The device personalisation services which is the app responsible for app suggestions in app menu and smart replies etc. is now visible via app menu and it shouldn't
4- Google play music is now force installed, you could uninstall it in pie and Oreo
5- remember how we complained about xiaomi not adopting to new Google material design guide lines by making dialog corners edgy ? Well it became seriously worse, everything is pointy and I don't like it
6- Google Assistant gestures are not working
7- all new features are working pretty well including new gestures and system wide dark mode and new theming options in developer options, tho unlike pixels system wide dark mode doesn't apply at boot screen
8- I suspect there's again some noises coming from camera, better check that yourself
9- there's an annoying banner in settings about some suggestions which you can't get rid of , possibly because of Device Personalisation Services app being faulty
10- if you have 2 users set on your phone you can't see the user switcher until you turn it on and off in settings
11- The security patch is still from December so expect another OTA in near days before next month which possibly includes bug fixes and January patch
12- some quick step ( default launcher ) features aren't working, you wanna guess which ? You're damn right, the ones related to Device Personalisation Services.
13- a lot of lagging, well there's nothing really there to say about it, is it? Expect some annoying lags.
14- the trusted face option is removed from smart Lock so you can't unlock your device with face recognition at the moment.
Click to expand...
Click to collapse
1- requires device with pie release(ours oreo)
2- arcore with sdm660 ? hell no
14- it is completely removed in ten. not xiaomi's fault
x_avier said:
No boot loop (I was afraid)
It took about 5 minutes to restart, after password took about 3 minutes with the message your phone is starting, and it restarted again, then everything is fine.
*Camera API2 not enabled, (Though this would be it but...Xiaomi)
*the downloads issue from past update is gone
*camera seems fine,
*there's this app called "Device Personalization Services" which just crashes, it can be unistalled though
*persistance Custumize your Mi A2 message at the top of settings (can't dissmiss it)
Everything else seems fine so far.
Click to expand...
Click to collapse
it is necessary to perform hard reset?
jordiop said:
Gestures in third party launchers don't work
Click to expand...
Click to collapse
That's an android thing, not Mi A2 thing. It's like that on every phone with android q

Categories

Resources