Hot topics

What is an AAB file for Android and how is it different from APK?

nextpit aab files
© nextpit

Read in other languages:

It looks like AAB is here to stay, with Google doing away with APK files. Beginning August 2021, developers will have to upload new Android apps to the Google Play Store in AAB format. The question is, what is the difference between AAB and APK? Is AAB better or worse than APK?

Since the launch of Android over a decade ago, APK files have been THE universal format for apps. Whether developers or users, whether it is on the Google Play Store, APKMirror, or EFNet - it was always APKs that were offered. For developers, AABs will now become mandatory and for Android users, APKs will become a more complicated affair.

AABs will become mandatory for all new apps starting August 2021. Updates for existing apps can still be uploaded by developers in APK format, so nothing will change in this department for now.

androidpit Best Apps 2015
APK or nothing: In 2015, it was still easier when dealing with apps / © NextPit

What is an AAB file actually?

"AAB" stands for Android App Bundle. The AAB file contains the entire program code of the Android app. As soon as development is complete, the developer uploads the app to the Google Play Store in AAB format, with the user (you) downloading it from there to your smartphone as usual.

At first glance, nothing changes. In fact, upon closer inspection, it really does seem as though there is no difference at all. This is because when you click "Install" in the Google Play Store, your smartphone will still download an APK file. So what's the point of all this furor?

What is the difference between AAB and APK files?

AAB files are custom-made

The difference between APK and AAB files lies in what we call resources. In an app, resources are everything else that is not programming code, such as images, language files, or music. If you select the "Install" button for an app in the Play Store, Google will then send you an APK file tailored from the AAB file for your device with the necessary resources required.

Legacy APK versus Dynamic Delivery
In the future (right), the downloaded APK file will only contain resources that the respective device needs. The Netflix app, for example, could be shrunk by more than half / © Google

Your smartphone only has Full HD+ resolution? Then you'll receive an APK without 4K material. You've selected English and German as the device language? You probably won't need the Swahili language pack. By the way, with the help of Google's bundletool tool, AAB files can also be locally converted into APKs.

Signing by Google instead of the developer

Another big difference is in the signing of the apps. Previously, it was always the developer of an app who signed it with their developer key. This key can be used when installing the app on a smartphone to check whether it has been compromised and, for instance, contains malware, or whether it has been unlocked for features that would otherwise have required payment.

appsigning selfmanagediagram 2x
This is how it used to work: the developer signed the app with their key, uploaded the app, and Google delivered it. Now the key is held by Google / © Google

In the future, it will not be the developer who signs the APKs, but Google - namely when generating APK files from the AABs. Logically, the keys will no longer be held by the developers, but by Google.

Are AAB files better than APKs?

Smaller file sizes than APKs

The first major advantage of AAB files is therefore obvious: The APKs generated in this manner are smaller. On average, you should be able to see a 35 percent reduction in this manner, based on what Google wrote in October 2018. That doesn't sound like much at first glance, but when one includes the numerous updates for apps, it could add up at some point.

Better protection for apps

Another benefit that developers will find useful would be increased security. It will probably be more difficult to modify apps in the future, and the mod scene might not be very happy about that. Who knows, maybe this will reduce the number of cheaters at AmongUs, even if I don't really believe that it is commonplace so far.

By the way, with the AABs, the Lite and Pro app versions in the Play Store should no longer exist. It used to be possible to install a paid Pro version over the Lite version after a purchase thanks to the same signature, so to speak, as an update. With AABs and Google signing, that's no longer possible. Instead, developers will have to switch to in-app purchases.

split apk delivery
Depending on the device, Google includes only the necessary components in the APK file. Due to the lack of x86 architecture, the Pixel 2 XL can do without the corresponding modules. / © Google

Easier updates & development

If the APKs are individually assembled depending on the user or its hardware, this brings additional advantages for the developers. As NDTV reported, thanks to the AAB format, updates can be pushed out to specific devices at specific times. This is an advantage, especially with the enormous fragmentation of Android and could prevent broken updates in the future or mitigate their effects.

The development process itself will also become easier. In the past, many developers uploaded multiple APK versions for their app to the Play Store, which have been adapted to different regions, languages, or processor architectures. In the future, developers will only need to upload a single, universal AAB file.

Are AAB files worse than APKs?

AAB files and the sideloading confusion

However, there are downsides to AABs, especially due to the previously mentioned signatures. Do you want to download the new WhatsApp beta via APKMirror and try out new features? Forget about it, because APKMirror uses a different signature here than the Google Play Store. Sideloading apps across different third-party app stores could be a nightmare in the future. Hello, Windows 11 with APK and no AAB support.

Sure, you can just uninstall the app and reinstall it on your smartphone from another source. But then you'll have to - with more or less effort, depending on the app - back up all your data and then re-install it. That is simply too much of a hassle, don't you think so?

windows 11 android apps
Microsoft has just announced APK support for Windows 11 / © Microsoft

AAB gives more power to Google

The fact that in future the signatures will be stored by Google can also be viewed through a critical lens. If the servers were to be hacked, all apps would end up compromised in one fell swoop. And as XDA-Developers explained: Google also has the power to change apps on its own through the developer keys. Theoretically, if a government were to place pressure on Google, they could build a backdoor into an otherwise secure instant messaging app without the developers' knowledge.

Yes, Google cares enormously about security. And yes, Google would rather pull out of a market than bow to the morally dubious wishes of governments. But this remains a fact: Google simply obtains more power with the introduction of AAB files. There's also an interesting discussion on this topic on StackOverFlow which you can follow if you are interested in knowing more.

Bug fixing becomes more difficult

Another disadvantage concerns the app developers themselves and the fixing of bugs, as developer Mark Murphy wrote at Commonsware. If a single user has problems with an app that is not reproducible for the developer, there used to be a simple remedy: modify the app, send it to the user, let the user update the app and hope that the error is removed. But that was only possible because developers could sign the apps themselves.

On Medium.com, by the way, Android Developer Advocate Wojtek Kaliciński commented on many of the above criticisms and more.

AAB: Yay or Nay?

The bottom line is, mandatory AAB files shouldn't change much for most users, otherwise, we would have noticed something about it already. After all, a large portion of the top 1,000 apps in the Google Play Store are already uploaded as AAB by their developers even though there has been no requirement to do so at all.

But for geeks, hobbyists, and the odd developer, the AAB format might spoil the fun of Android. After all, Google isn't Apple, and it's still possible to certify apps outside of the Play Store. Google has not yet put a stop to sideloading (for now). It does seem that Mountain View is working hard to cement the monopolistic position of the Google Play Store though.

  Editor's choice Best smart home control center Best price-performance ratio Best sound Best sound supplement Best display
Product
Product image Amazon Echo Dot (5. Gen) 2022 Product Image Amazon Echo Hub Product Image Amazon Echo (4.Gen) Product Image Amazon Echo Studio Product Image Amazon Echo Sub Product Image Amazon Echo Show 10 (3rd. Gen) Product Image
Review
Review: Amazon Echo Dot (5. Gen) 2022
Review: Amazon Echo Hub
Not yet tested
Review: Amazon Echo Studio
Not yet tested
Not yet tested
Price Compariosn
Go to comment (2)
Stefan Möllenhoff

Stefan Möllenhoff
Head of Content Production

I have been writing about technology since 2004 with a strong passion for smartphones, photography, and IoT, especially in the world of smart homes and AI ever since they debuted. I'm also an avid cook and bake pizza at least three times a week using my Ooni Koda 16. In order to compensate for all the consumed calories, I indulge in sporting activities on a daily basis while strapping on at least two fitness trackers. I am strongly convinced that you can DIY a lot of things if you put your mind to it - including a photovoltaic system and power station.

View all articles
Liked this article? Share now!
Recommended articles
Latest articles
Push notification Next article
2 comments
Write new comment:
All changes will be saved. No drafts are saved when editing
Write new comment:
All changes will be saved. No drafts are saved when editing

  • Simone Costi 21
    Simone Costi Jul 8, 2021 Link to comment

    Will I still be able to install my old APKs on my new smartphones in the future?


  • 49
    storm Jul 7, 2021 Link to comment

    The files i i tend to side load don't have data to speak of. Usually a fdroid or aurora store, a utility or two and a couple of casual games.