Android
DROID DOES
Welcome to the Android community on Lemmy. Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Rules
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
view the rest of the comments
You need to change battery optimization for the affected apps (well, the apps you don't want hibernated instantly).
Some brands of phones have aggressive hibernation config for all apps by default (Samsung, Xiomi I think).
Lookup hibernation control for your brand of phone.
Also check out https://dontkillmyapp.com/
GrapheneOS. It keeps Termux and Molly (for MollySocket) open but nothing else.
Thanks for this thread. I just switched to GrapheneOS and noticed the same thing. It's particularly annoying having my Lemmy feed reset so often.
I'm also using grapheneos, but I've never noticed anything like this.
To check I just went back to the very last app in the app switcher, which was ironfox, which was still open on the same page I left it during lunch today. (About 6 hours ago)
Some apps store parts of the apps running state in storage some don't.
That's interesting, and surprising. Graphene doesn't do anything special with battery optimization, does it (I didn't think it did)?
Have you asked on any Graphene chats (they use discord and telegram, right?).
I've used Greenify for 10+ years to manage hibernation, but it really only works well with root, and the Graphene folks aren't down with root... So the only thing I can think to look at is how battery optimization is configured per app (and the "don't keep activities" setting in Developer Options).
Edit: look in Developer Options for "Background Check", here you can select which apps can run in the background.
I'm running a Pixel with Lineage and battery optimization works fine. Graphene starts with AOSP like Lineage does, surely they aren't doing anything weird with battery optimizing?
Termux and Molly have battery optimizations disabled because they run critical services.