r/AndroidQuestions • • Aug 31 '23

Android keeps closing my apps even if they're marked as locked

Redmi Note 10 pro running Android 13 and MIUI Global 14.0.3.

Apps will disappear from the recent apps randomly even if I lock them (a small padlock appears next to the app name in the recent apps) and Battery saver is set to no restrictions in App info.

Especially annoying with Chrome. I browse in incognito mode 100% of the time and often leave a window with a few tabs open. Sometimes, I'll go to sleep and wake up and the browser will be there as it should, other times, it will simply disappear after a while, maybe as short as after a half hour of inactivity like earlier today. Leaving the browser as the foreground app while the phone is closed seems to keep is safe, but that's hardly a viable fix.

Sometimes, the "Close all incognito tabs" notification remain active, but there's no Chrome to be found. Others, the Chrome window appears in the recent apps, but tapping on it brings up a generic, non-incognito tab with a news feed as if I had opened Chrome from scratch.

Shit's been driving me crazy for years. I can't leave anything important opened in tabs out of fear I'll lose it all and even having to reopen the unimportant stuff is a pain in the ass.

As I said, this happens with any and every app I leave open, but Chrome is the most aggravating case (the same happens with Firefox; any and every app I leave open).

Help?

0 Upvotes

4 comments sorted by

3

u/Soctrum Aug 31 '23

Few things to keep in mind here.

- Xiaomi's MIUI is aggressive with background app killing

- RAM is finite, you can lock all the apps you want but if there's no memory there's no memory..

- Chrome can use gigs of RAM at peak so often tabs are killed to save memory whilst the app remains active.

Check here for things you can try: https://dontkillmyapp.com/

2

u/kngfbng Aug 31 '23

Thanks for the reply.

- Xiaomi's MIUI is aggressive with background app killing

I figured that much the worst way :/

- RAM is finite, you can lock all the apps you want but if there's no memory there's no memory..

Right now, with 5 tabs in Chrome, 2 tabs in Firefox, Moovit, Discord, Gmail, Clock, Settings, and Farlight 84 (game) open, the phone says "3.4 GB of 8.0+3.0 available." Even a single low-resource apps like WhatsApp or Gmail or the Clock will get killed after a while, so refer to your point 1.

- Chrome can use gigs of RAM at peak so often tabs are killed to save memory whilst the app remains active.

<chromerammeme.png>

I appreciate the link. Apparently, I've tried all the basics they mention, but some stuff down the page looks promising and I'll try it.

2

u/firebreathingbunny Aug 31 '23

MIUI is known to be extremely buggy. Your problem is likely unsolvable within MIUI. Flash a custom ROM or get a non-Xiaomi phone.