[OnePlus 8T Questions & Answers] etay2468:
Hello. :)

Is there any custom ROM that has Lock/Keep opened/Keep apps in RAM ?

Like in OOS when you long press in app switcher on opened app then press Lock.

If there isn't any custom ROM that has this feature, do you know any other alternative such as Xposed module to achieve this behavior?

Thank you in advance.

--------------------------------

Disclaimer before people trying to advice other solutions/workarounds and not answering explictly

I couldn't find a custom ROM that has this. Here's some rant of mine about this topic, just in case it reaches the bottom heart of custom ROMs devs lol.

I actually had a debate about this in the groupchat of the custom ROM I'm using, I explained why it is actually useful to have such thing, I'll describe the whole conversation I had and my thoughts.

Let's say you play spotify music then you'd want to lock it in RAM, because if you didn't lock it in RAM and clicked close all so it would shut down spotify & the playing music as well which isn't the desired behavior. There are also other use cases why it would be useful/necessary to use Lock.

Their reply was "oh I understand what you mean..", so they gave me a solution = "don't use close all and close them 1 by 1". But why would I have to go through my 6 opened apps, skip the one I don't wanna close and close the others I don't need. And then repeat this whole process when new apps are opened. That's the whole point of "close all" button and I want to use it. That actual solution they provided is a workaround and not an actual solution to the problem described. And a bad type of workaround.

Then they came up with "You should never close apps because it slows down your phone, decreases your performance, and uses more battery". This point is valid, but is also invalid, I'll explain:

Usability > performance/battery for some people so I would want to increase my usability. But let's say that actually I'm not one of those people = I do care about performance/battery more = exactly!! that's why I want this, keep certain things in RAM, and get rid of things I don't want/need. I wouldn't close things that I'd open in a moment yea I get their point. In fact locking a certain app keeps it in RAM, meaning it won't close this app = won't lead to decrease in performance/battery = actually I'm doing exactly what they wanted me to do = their point is invalid.

But this whole persuasion campaign is just meaningless at the end of the day, because the most reasonable reason to add this is that adding such feature won't decrease any user performance/battery but only the ones who want to use it (if they don't know what they're doing, and the ones that know what they're doing will speed up their performance/battery/usability), is what makes it a great feature.

So if you lived so far well without using Lock, assuming Lock feature is added - it won't influence you at all = so don't bother giving me points about why "adding such a feature is a bad idea" because it isn't.

In addition, adding Lock feature to your custom ROM will make you unique because currently there aren't other custom ROMs that have it, leading to more people use your ROM if you have this feature.

Thank you for reading it all.