Android bundle size question

So, showcase page states that with 1.10.4 release arm64 android bundle can make 1.97mb.

How i can get these number? my bundle size on empty project is 4.1mb with these settings

Steps taken:

  1. Download and run Defold 1.10.4 version
  2. Make open empty project template
  3. Bundle with settings like picture above
  4. Check bundle size

or build AAB, since APK is deprecated way of building android bundle.

So, if i userstand correctly if you download game(apk) from google play, it doesn’t download straightforward apk-file, it downloads archived apk-file(more or less how webgame platforms do)

archived apk-file becomes 1.97mb

bundled to aab-file it becomes 1.9mb (without archiving, in fact archiving doesn’t reduces size)

Yes, for the end user, it’s similar to web and gzip compression. The store compress it’s using the best compression for the end user device/OS, and it’s uncompressed during/after downloading.

An AAB is a container that Google Play uses to generate APKs based on the AAB configuration and the end user’s device or OS. For instance, if you include both armv7 and arm64 in your AAB, Google Play creates separate APKs and delivers the one that best matches the user’s device architecture. Branching can also be done by other factors, such as supported texture formats, languages, and more.

Even if you upload an APK, Google Play preprocess it and may apply changes to AndroidManifest or/and something else.

2 Likes