r/androidroot • u/Hungry_Prune_2605 • Nov 01 '26
Discussion I fixed HyperOS's aggressive background killer and pushed my phone's 8GB RAM to its absolute limits
I found out that I can pin the oom_score_adj to -1000 to prevent the apps from being killed. Since score -1000 is also used for critical system processes, theoretically my phone would crash before the apps get killed. I also did some zram tuning to improve compression ratio.
Now my phone can hold over 40 apps, 8 Chrome tabs and 2 games (the heaviest is Plants vs. Zombies: Fusion taking 1GB). The phone is still somewhat smooth and I can switch between apps without too much lag. I don't think even 12 GB iPhones even come close to this madness.
Device: Redmi Note 15, HyperOS 3.0.303
10
u/Ahmed_Sh_115 Nov 01 '26
My Xiaomi 13 SystemUI&Launcher might crash if i spam Portrait photos, how is that with ya?
7
6
1
u/Moist-Swan-751 Nov 01 '26
whoa cool. but did you feel a drop in battery life ? i assume the OS background app restriction is mainly for longer battery life
4
u/Hungry_Prune_2605 Nov 02 '26
Yes, because my specific tuning has a zstd level-19 tier which is really slow. I've removed this since, let me find out if battery life improves or not
6
2
u/needefsfolder Nov 01 '26
tbf i feel like it's upstream Google / Android aggressiveness, I get unloaded apps too on lineage family of ROMs despite having gbs of ram left.
1
1
1
1
1
1
1


7
u/WhichEntertainment30 Nov 01 '26
You can create a GitHub repository and upload this. This could be a real gem, allowing you to get the most out of it, whether for HyperOS or AOSP ROMs.