Whenever I go to my homescreen or otherwise load another app the previous one closes. If I’m browsing Lemmy and I open a page linked on a post to read it, my app will have reset itself when I close the tab and I either have to give up or root around for the post.
This OS is borderline unusable in this state. It even evicts my homescreen app so there’s a 5-10 second lag when tapping the circle button.
Any tips? I have 8GB of RAM, which should be more than enough for a dozen apps.
What’s your phone model?
Does that matter? It’s a pixel running Graphene.
Yes
If it’s a memory hog app and another memory hog app and you have a tonne of background services running and you have limited memory, the oom is gonna make sure there’s enough memory to run the app.
And if you have the private profile unlocked and a secondary user profile which you’ve allowed to run in the background…well, you just might run into some problems.
Then again, on graphene, app depending, it could be one of the security settings that is causing it to drop it’s cache and reload.
Or, it could be the app itself.
Battery optimization, permissions, a privacy toggle, who knows?
The only way to truly keep 2 open is to do split screen.
I am also on grapheneOS on a 9 with 12Gb ram.
And even with that, I know a browser or two that doesn’t handle switching very well.
But, because of the limited information, it’s difficult to know where to focus.
PS. Did you try reading the logs for the app when they reset to see what’s happening?
I have a theory: this OS doesn’t know how to swap correctly. It either loads the whole APK or kills the scope/whatever the android term is (for things that aren’t set to always run.)
I think this is because APKs are zipped files and thus the android developers decided that ZIP reads makes a ton of sequential cached file misses. So then it would have to been loaded from the storage. Back when android was made these were expensive, and slow.
So it always loads the whole renamed zip :3
No I haven’t read the logs. I’ll do that next time.