How to prevent Android from killing apps?

Nabukodonosor

Senior Member
Nov 19, 2009
277
15
0
Kraljevo
www.toolsify.com
So, I have this issue, where most of my apps can't stay in recent apps overnight. They all get killed, all but 5 I have noticed. I did the battery optimization thing for all apps I use on a daily basis. I have edited build.prop file and added sys.keep_app_1=com.whatsapp and so on for the rest of my apps. I also did that in the local.prop file. None of it worked. How to prevent my phone from killing apps overnight?
 

Nabukodonosor

Senior Member
Nov 19, 2009
277
15
0
Kraljevo
www.toolsify.com
I am rooted. OK, I will try it. Thanks. It shuts my app very VERY aggressively. For instance, I was watching some youtube video yesterday, and in the other app I was searching for some products and was going back and forth between YouTube and Google Chrome, and every couple of times it restarted YouTube app, even though I was using it 2 minutes ago.
 

dedebekri

Senior Member
Aug 15, 2012
433
225
73
I am rooted. OK, I will try it. Thanks. It shuts my app very VERY aggressively. For instance, I was watching some youtube video yesterday, and in the other app I was searching for some products and was going back and forth between YouTube and Google Chrome, and every couple of times it restarted YouTube app, even though I was using it 2 minutes ago.
Both youtube and chrome are resource hungry apps, that's why it keeps reloading.

I guess your device is 3 gb version as mine.

Mi A2 Lite cihazımdan Tapatalk kullanılarak gönderildi
 

a1291762

Senior Member
Nov 20, 2012
561
248
73
yasmar.net
My previous phone was 2Gb running android 6. Now i have a mi a2 life 4Gb and it is OK except for 2 games.

Apparently there's some AI that learns what you use but after many weeks no change.

Most apps open pretty fast. It's only these 2 games that I run daily. Annoying to have to wait for them especially since the old phone was able to keep them cached.

I tried the low-memory config (magisk module) but it didn't help. I guess android has changed its algorithm. I'm resigned to it.
 

bluesaka111

Member
Mar 13, 2018
43
7
8
Connect it to a monitor, install Taskbar app and SecondScreen app, enable Freeform windows and turn your phone into a mediocre PC. Assuming you can get all the resources back from OS's hidden service threads of course.
 

Cappucinto

Senior Member
May 22, 2016
109
26
28
I had the same problem when I was unrooted during the Android 10 update crash. After rooting and installing Lspeed again, Android is not killing apps anymore as I set these settings
 

Attachments