Recently Google brought up a new feature app bundle
which is a pretty similar concept to APK except its flexibility and architectural differences.
I have read out lots of blog/articles to understand how app bundle works in devices in comparison with APK file.
What is the actual internal working process of app bundle and how it works on Android devices starting from Google Play Store?
Android App Bundle adalah format publikasi di Google Play. Publikasi menggunakan app bundle akan membantu mengurangi ukuran aplikasi, menyederhanakan rilis, dan mengaktifkan fitur distribusi lanjutan.
Berkas paket aplikasi Android (Application Package File, disingkat APK) adalah format berkas yang digunakan untuk mendistribusikan dan memasang software dan middleware ke ponsel dengan sistem operasi Android, mirip dengan paket MSI pada Windows atau Deb pada OS Debian.
When using a traditional APK, the app will receive all of the assets and just choose and use the ones that are necessary for that specific device. On the other hand, when using AAB, the Play Store selects the assets that’ll be needed when the user downloads the app. These features are modules that may not be needed on the first install of the app.
When comparing Android App Bundle versus the APK, you’ll notice the AAB gets uncompressed native libraries by default, which will help you avoid having two copies in the end. You might be wondering why the APK keeps both a copy of the compressed version and another for the uncompressed.
AAB, which stands for Android Application Bundle, is a more recent format for Android distribution. Android’s official documentation gives the following definition: “An Android App Bundle is a publishing format that includes all your app’s compiled code and resources, and defers APK generation and signing to Google Play.”
What is the difference between AAB and XAPK? In What is XAPK file this website, they said "XAPK file = Base APK file + Split APKs file, The base and split configuration APKs contained in this APK bundle", it sounds similar to AAB (Android App Bundle) which is also split an apk into many smaller apks. so what is the difference between AAB and XAPK?
App Bundles are a publishing format, whereas APK (Android application PacKage) is the packaging format which eventually will be installed on device.
App Bundles use bundletool to create a set of APK. (.apks) This can be extracted and the base and configuration splits as well as potential dynamic feature modules can be deployed to a device.
The dependencies can look something like this:
The contents of an App Bundle look kind of like this:
More information on App Bundles is available here.
App bundles are publishing format, whereas APK (Android application Package) is the packaging format which eventually will be installed on device.
Google uses app bundle to generate and serve optimized APKs for each user’s device configuration, so they download only the code and resources they need to run your app. Therefore, users can get smaller and more optimized downloads.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With