Android App Bundles: Ship Less Code to Users
Instead of one giant APK, an Android App Bundle (AAB) lets Google Play build a smaller, custom APK for each user's device. This standard publishing format reduces app size and speeds up installs by delivering only the necessary components.
Why it exists
Universal Android applications (APKs) used to contain code and resources for every possible device, leading to bloated downloads for every user. The Android App Bundle was created to solve this efficiency problem.
The mental model
Think of an App Bundle not as the final app, but as a master blueprint. You give Google Play the complete blueprint, and it acts as a factory, building a custom, lightweight version of the app specifically for each user's device that requests it.
How it works
A developer uploads their application in the Android App Bundle (AAB) format to the Google Play Store. When a user downloads the app, the Play Store doesn't send the whole bundle. Instead, its servers dynamically generate and deliver an APK file containing only the components necessary for that specific user's device.
When to use it
The AAB is the standard publishing format for distributing applications efficiently through the Google Play Store. It should be used whenever you want to reduce your app's download size and improve the installation experience for users.
One canonical example
The core process is the canonical example. A developer publishes their app as an AAB. The Play Store then generates a smaller APK for a user's phone, excluding components meant for other devices. The user experiences a faster download and installation because the APK is tailored to their device.
Interview question
What is the primary mechanism by which an Android App Bundle (AAB) reduces the download size for a user?
- a.It compresses the entire application more efficiently than a standard APK.
- b.It allows users to select only the features they wish to install, reducing the overall package.
- c.Google Play generates and delivers a custom APK containing only components needed for the user's device.Correct
- d.Developers can remove unnecessary code and resources directly from the AAB before uploading.
Why? this is the answer
The card explains that Google Play's servers "dynamically generate and deliver an an APK file containing only the components necessary for that specific user's device" from the AAB. This tailored delivery is the core mechanism for reducing download size, rather than just general compression or user-selected features.
Just read this? Test yourself on what you have been reading.
Read the original → en.wikipedia.org
- #android
- #mobile
- #aab
- #apk
- #performance
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on android — each one lists the topics its interview covers.
See open roles