Search

How & Why Android 12 May Let You ‘Hibernate’ Unused Apps - Screen Rant

https://ift.tt/2KSW0PQ

Google is already working on Android 12 and one of the new features being tested allows apps to 'hibernate.' While there isn't a full description of exactly how this feature works, there are some details revealed in code comments. Freeing up storage space that is related to unused apps seems to be the goal here, and there are a few ways that this can be achieved.

Google, like most developers of active operating systems (OS), is always working to make Android better. Updates may add new features or make the OS compatible with upcoming hardware for devices that are in development. More frequent updates are released for other reasons, such as to eliminate bugs that cause some aspects of the OS to fail or behave in an unexpected manner. Among the least exciting but most important changes that can be made are fixes to security holes. Security updates are released monthly, but other updates can happen anytime. There is generally a major update once a year that brings interesting changes to the design, new features and support for new devices.

Related: Google Phone Android App Could Soon Auto-Record Calls From Unknown Numbers

Google likely won’t release the Android 12 update for several months, but developer versions will begin appearing sooner, possibly in the next few weeks. The base code of Android is open source and anyone can scan through the code to find interesting changes and additions that will be tested in the developer preview release. A recent Tweet by XDA-Developers' Mishaal Rahman revealed a code comment and snippet for a 'hiberation' state for apps, spotted in the Android Open Source Project (AOSP). The purpose, which was mentioned in the open-source code's comments, was to help optimize storage.

How App Hibernation Might Work

Google Pixel 4a (5G) & Pixel 5

In order to free up storage that is taken by an unused app, the system can clear the app cache. These are temporary files that help apps load and operate faster, but if the app isn't used for some time, the cache can become too old to be useful anyway. However, the storage space used by the user data (and by the app itself) may be significantly larger. Clearing the app and user data is a more difficult issue, and Apple has a feature that may have inspired Google's implementation. If an iPhone user enables 'Offload Unused Apps' when storage gets low, iOS may remove the app, while retaining the user data that's associated with the app. The next time the user tries to launch the app, it is downloaded and functions as before with relevant user information intact.

Implementing this on Android is a bit more difficult since it allows multiple users for each device. For some apps, the user data consumes the most space, but for others, the app itself is the storage issue. The hint that Android 12 may do something similar is in the code, which suggests that multi-user apps may simply have the cache files cleared, while single-user apps could save even more space. If user data, as well as the app, were deleted, it would be the same as simply uninstalling the app. If user data is retained, however, the app could be removed and marked to reinstall when 'hibernation' ends, similar to Apple's solution.

Of course, Android can go further and hopefully will. Something lacking from Apple's implementation is the ability to exclude some apps from automatic removal. For example, if there is an app that is used four times a year, Apple may decide it is an unused app, requiring the app to be downloaded again every time it is used. Another improvement that Android could make would be to compress user data into a ZIP archive to save room or to give the option of uploading user data to Google Drive to clear even more space. Whatever the final form takes, it will be beneficial if Google adds this feature to Android 12, since it removes the need for the user to struggle with which apps to keep and which to delete when space is low.

Next: Google Says Android 12 Will Make It Easier To Use Third-Party App Stores

Source: Mishaal Rahman/Twitter

Age of Ultron why Hulk hates Banner
Why Hulk Hates Bruce Banner In Age of Ultron
About The Author

Let's block ads! (Why?)



"Android" - Google News
January 20, 2021 at 01:18AM
https://ift.tt/3sGQ5BW

How & Why Android 12 May Let You ‘Hibernate’ Unused Apps - Screen Rant
"Android" - Google News
https://ift.tt/336ZsND
https://ift.tt/2KSW0PQ

Bagikan Berita Ini

0 Response to "How & Why Android 12 May Let You ‘Hibernate’ Unused Apps - Screen Rant"

Post a Comment


Powered by Blogger.