MIUI kills background processes and possible solution

patoberli

Senior Member
Dec 1, 2010
550
90
48
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.
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.
 
Last edited:

aghiopro36

Member
May 9, 2012
19
3
0
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.
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
 

patoberli

Senior Member
Dec 1, 2010
550
90
48
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.
 

grandma_p

Member
Dec 21, 2016
13
5
0
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:
  1. Settings --> Battery & performance --> Manage apps battery usage --> choose apps --> select app that should receive push notifications and set "No restrictions"
  2. Settings --> Permissions --> Autostart --> activate for all apps that should receive notifications
  3. Settings --> Notifications & status bar --> App notifications --> select relevant app and activate "Priority"
  4. In the overview of running apps/app manager lock the relevant apps (swiping down)
  5. 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
 

grandma_p

Member
Dec 21, 2016
13
5
0
I have stopped using k9 because of those kind of problems. No I use Sol Mail
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...
 

EMJI79

Senior Member
Sep 7, 2014
1,940
209
83
Paris
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.
 

patoberli

Senior Member
Dec 1, 2010
550
90
48
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.
Ok, can now confirms that it indeed helped :) Not perfect, but much better.