This story was originally published and last updated .
Android Runtime becoming a Project Mainline module for easy updates in Android 12
First details emerge of Android's upcoming app hibernation feature
Google may add a Restricted Networking Mode in Android 12
Here's how Google might simplify Wi-Fi password sharing in Android 12
App Pairs on Android 12 may let you open two apps at once
- View All 86 Articles In This Series
It feels like Android 11 has only been out for five minutes, but news about the next major release is about to come thick and fast. If last year's schedule is anything to go by, we could be getting the first Android 12 developer preview as early as next month. We've heard a couple of small tidbits about it so far — Android Runtime is set to become a Project Mainline module and it'll be easier to use alternative app stores — but this latest news sounds especially intriguing.
If you're like me, you have a bunch of unused apps on your phone that you'll definitely use someday... maybe. We've been saying that for months, but we're about to fire them up any day now, perhaps. Until we do get around to using them, they just take up space on our phones. According to a pair of Android Open Source Project (AOSP) Gerrit entries that XDA Developers got tipped about, Android 12 could introduce a feature that will allow those dormant apps to enter a state of hibernation.
The AOSP code changes suggest that Google is working on a new system service that will put idle apps into a deep sleep that would also allow storage to be optimized.
It's not clear what exactly will determine that an app can be put into hibernation. It could happen automatically when an app hasn't been used for a certain length of time or it could be a manual setting so you can choose to hibernate an app until you need it again. Perhaps both scenarios will be possible. The Android 12 Developer Preview might come too soon for this to be included in any functional form, but it's an interesting prospect we'll likely hear more about in the coming months.
According to the latest relevant AOSP code change, as tweeted by Mishaal Rahman, Android's upcoming app hibernation feature will work differently depending on whether it's enabled for a single user or for all users. If just a single user on a multi-user device, app cache for that specific user will be cleared.
A todo referenced in the code tells us that the next step will be to support package-level hibernation that will affect all users, although it's unclear how that will differ. It's possible that all of the app's data will be cleared and/or that the app itself will effectively be removed from the device, to be reinstalled when the user turns off hibernation. What all of this will look like on the front end is also still a mystery, so stand by for more details as we get them.
So the first details of Android's app hibernation feature are here. If an app is hibernated for a single user, the system will clear cache. Google will add more for package-level hibernation (app is hibernated for all users).
— Mishaal Rahman (@MishaalRahman) January 15, 2021
- AOSP Gerrit