Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between apk (.apk) and app bundle (.aab)

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?

like image 477
0xAliHn Avatar asked Oct 04 '22 22:10

0xAliHn


People also ask

Apa itu aplikasi bundle?

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.

Format package file manakah yang digunakan untuk distribusi aplikasi Android?

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.

What is the difference between APK and AaB?

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.

What is the difference between Android app bundle and APK?

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.

What is AAAAB (Android application bundle)?

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 AaB and xapk file?

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?


2 Answers

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: Bundletool modules

The contents of an App Bundle look kind of like this: Bundletool contents

More information on App Bundles is available here.

like image 207
keyboardsurfer Avatar answered Oct 23 '22 13:10

keyboardsurfer


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.

enter image description here

like image 84
Ayoub Boumzebra Avatar answered Oct 23 '22 14:10

Ayoub Boumzebra