C. Scott Brown / Android Authority
TL;DR
- Android 15’s new app archiving characteristic works with apps distributed as each APKs and Android App Bundles.
- In distinction, the Google Play Retailer’s app archiving characteristic solely works with apps distributed as Android App Bundles.
- The explanation for this distinction is that Google needed to make use of a intelligent trick to make the Play Retailer’s app archiving characteristic work on older variations of Android.
Google lastly rolled out the Android 15 replace to Pixel units at the moment, ending the almost month-and-a-half-long wait because it launched the working system’s supply code. One significantly cool trick in Android 15 is app archiving. This characteristic frees up space for storing by eradicating an app’s set up and momentary recordsdata, nevertheless it doesn’t take away its information, saving you from having to set it up once more sooner or later. App archiving isn’t unique to Android 15, as Google’s app retailer already helps it, however the characteristic is much less restrictive in Android 15 and works with all app distribution codecs — not simply app bundles.
Final 12 months, the Google Play Retailer rolled out an “auto-archiving” characteristic that mechanically archives apps you don’t typically use. Google Play’s auto-archiving characteristic achieves the same outcome as Android 15’s app archiving characteristic, however the best way it really works is totally totally different beneath the hood. See, so as to make Google Play auto-archiving work with out OS-level help, Google needed to make use of a intelligent trick: The corporate made use of the compartmentalized nature of the Android App Bundle format that many builders use to distribute Android apps on the Google Play Retailer.
When builders add an Android App Bundle for distribution on Google Play, the Play Console mechanically generates the bottom APK, break up APKs, and multi-APKs wanted for all configurations the app helps, nevertheless it additionally generates an extra “archived APK.” An archived APK is basically a trimmed-down model of the bottom APK that’s put in on units if you obtain many apps from Google Play. When the Google Play Retailer goes to archive an app, it installs the archived APK on prime of the bottom APK file, which is feasible as a result of the archived APK has the very same signature as the bottom APK.
For the reason that archived APK is nearly empty, save for the app’s authentic icon (with a cloud-download brand overlaid on prime) and a few tiny quantity of code to ship the command to revive the app when the icon is tapped, it takes up a lot much less house. Plus, since solely the bottom APK was overwritten, the app’s information is saved intact, and all of the Play Retailer has to do to revive the app again to regular is redownload the bottom APK (and another obligatory splits).
To simplify issues for builders, Google determined to make the Play Retailer’s auto-archiving characteristic solely work with Android apps distributed within the Android App Bundle format, as a result of with the best way bundles are usually generated and signed, builders don’t need to do any further legwork to help the characteristic. One of many principal the reason why Google wished to bake app archiving help into the OS is so third-party app shops can help the characteristic. Most third-party app shops don’t use app bundles, although, which is why Google determined to make app archiving in Android 15 work with apps distributed as APKs, too.
The truth that Android 15’s app archiving characteristic works with common APKs isn’t talked about in Google’s documentation, nevertheless it’s simple to confirm. Instagram and Threads, two well-liked Android apps distributed within the APK format, can each be archived in Android 15, for instance. When Android 15 archives an app like this, it doesn’t set up an “archived APK” on prime of it. As a substitute, it utterly deletes the app set up recordsdata however nonetheless treats the app prefer it’s put in, so it seems within the residence display and in Settings. Android additionally shops a duplicate of the app’s authentic icon in a non-public information listing which it then applies a filter over and provides an overlay to make it clear the app is archived.
The truth that app archiving in Android 15 works with all Android apps is nice information, and it’ll hopefully spur third-party app shops so as to add help for the characteristic, simply as Google meant. In case you’re questioning learn how to use the brand new app archiving characteristic in Android 15, comply with that hyperlink the place my colleague Rita El Khoury explains every little thing.