Attached: 1 image
Android 14 seems to have quietly eliminated a trick some apps were using to keep themselves alive when the OS tried to kill them.
As spotted by Greenify developer Oasis Feng, Android now freezes a package's cgroup before killing it. Control groups (cgroups) is a Linux kernel feature that organizes processes into groups so their resource usage can be monitored/controlled.
(1/6)
1: using permissions the user can see and grant/deny
“Allow persistent background usage” or something like that with a tooltip or something that warms the user about resource usage. IIRC, this is already a thing in Android 14.
2: providing visibility into background app usage and history. They do this to some degree, but it’s not as good as it could be. Especially when I want to know what is draining my battery when my phone is in my pocket.
It would be good to protect against malware. Bad for apps you legitimately want to run in the background. As usual it seems like a tradeoff between giving the user a choice while not overwhelming uninformed users.
Navigate to the specific app details in settings -> Battery usage -> set to Unrestricted. There, it’s off. Just like it was for the past however many years since Doze was first implemented. Or just turn off adaptive battery to disable this for all apps and enjoy your awesome battery life.
This fix is for apps that are set to optimized/restricted and are avoiding being killed.
Does your phone happen to be made by one of the vendors ranking high on this list? If so, that’s not on Google (well, you could argue that Google could take more control over Android and force vendors not to do this, but that’s another discussion - now we’re talking about a fix Google made for apps evading its battery optimizations).
Because I’ve personally had no problem with apps like AccuBattery and GadgetBridge staying awake when set to unrestricted.
I’m sure this will have good and bad consequences.
I think two great ways to manage this are
1: using permissions the user can see and grant/deny “Allow persistent background usage” or something like that with a tooltip or something that warms the user about resource usage. IIRC, this is already a thing in Android 14.
2: providing visibility into background app usage and history. They do this to some degree, but it’s not as good as it could be. Especially when I want to know what is draining my battery when my phone is in my pocket.
Mostly bad
It would be good to protect against malware. Bad for apps you legitimately want to run in the background. As usual it seems like a tradeoff between giving the user a choice while not overwhelming uninformed users.
I want a option to turn that off or exclude apps (just put it in dev settings)
Navigate to the specific app details in settings -> Battery usage -> set to Unrestricted. There, it’s off. Just like it was for the past however many years since Doze was first implemented. Or just turn off adaptive battery to disable this for all apps and enjoy your awesome battery life.
This fix is for apps that are set to optimized/restricted and are avoiding being killed.
I’ve encountered them being killed off as well from time to time.
Does your phone happen to be made by one of the vendors ranking high on this list? If so, that’s not on Google (well, you could argue that Google could take more control over Android and force vendors not to do this, but that’s another discussion - now we’re talking about a fix Google made for apps evading its battery optimizations).
Because I’ve personally had no problem with apps like AccuBattery and GadgetBridge staying awake when set to unrestricted.
I have a Pixel so if anything that’s 100% Google
XD