This story was initially printed 2021/01/12
8:30am PSTon Jan 12, 2021 and final up to date 2021/01/18
5:22am PSTon Jan 18, 2021.
It seems like Android 11 has solely been out for 5 minutes, however information concerning the subsequent main launch is about to return thick and quick. If final yr’s schedule is something to go by, we may very well be getting the primary Android 12 developer preview as early as subsequent month. We have heard a few small tidbits about it to date — Android Runtime is set to become a Project Mainline module and it’ll be easier to use alternative app stores — however this newest information sounds particularly intriguing.
In case you’re like me, you will have a bunch of unused apps in your cellphone that you will undoubtedly use sometime… possibly. We have been saying that for months, however we’re about to fireside them up any day now, maybe. Till we do get round to utilizing them, they only take up house on our telephones. In line with a pair of Android Open Source Project (AOSP) Gerrit entries that XDA Developers received tipped about, Android 12 might introduce a characteristic that can enable these dormant apps to enter a state of hibernation.
The AOSP code modifications recommend that Google is engaged on a brand new system service that can put idle apps right into a deep sleep that might additionally enable storage to be optimized.
It isn’t clear what precisely will decide that an app may be put into hibernation. It might occur robotically when an app hasn’t been used for a sure size of time or it may very well be a guide setting so you may select to hibernate an app till you want it once more. Maybe each situations will likely be doable. The Android 12 Developer Preview may come too quickly for this to be included in any purposeful kind, nevertheless it’s an fascinating prospect we’ll seemingly hear extra about within the coming months.
In line with the newest related AOSP code change, as tweeted by Mishaal Rahman, Android’s upcoming app hibernation characteristic will work otherwise relying on whether or not it is enabled for a single consumer or for all customers. If only a single consumer on a multi-user gadget, app cache for that particular consumer will likely be cleared.
A todo referenced within the code tells us that the following step will likely be to assist package-level hibernation that can have an effect on all customers, though it is unclear how that can differ. It is doable that all the app’s knowledge will likely be cleared and/or that the app itself will successfully be faraway from the gadget, to be reinstalled when the consumer turns off hibernation. What all of it will seem like on the entrance finish can be nonetheless a thriller, so stand by for extra particulars as we get them.
So the primary particulars of Android’s app hibernation characteristic are right here. If an app is hibernated for a single consumer, the system will clear cache. Google will add extra for package-level hibernation (app is hibernated for all customers).
— Mishaal Rahman (@MishaalRahman) January 15, 2021