Freeletics Dmytro Khmelenko Jul 4, 2018

Android App Bundle: Distribution and Size Optimization

Article Summary

Dmytro Khmelenko breaks down how Android App Bundle reduced their app size by 20% without changing a single line of code. Here's how Google's 2018 feature actually works under the hood.

Instead of uploading multiple APKs for different device configurations, App Bundle lets you upload one file to Play Store. Google then generates optimized APKs tailored to each user's specific device configuration (locale, screen density, CPU architecture). Khmelenko uses bundletool to dissect exactly what gets delivered to users.

Key Takeaways

Critical Insight

App Bundle automatically reduced download size from 24MB to 19MB by delivering only the resources each device actually needs.

The article reveals which APK component (master, locale, or density) has the biggest impact on your app's final size.

About This Article

Problem

Freeletics had to manually manage multiple APK files in the Play Store console because their universal APK didn't account for different device configurations like CPU architecture, locale, and screen density.

Solution

Dmytro Khmelenko's team switched to Google's App Bundle format. They uploaded a single .aab file, and the Play Store automatically split it into optimized APKs using bundletool to handle device-specific configurations.

Impact

When they analyzed bundletool's output, they found locale files ranged from 54KB to 104KB and density files from 2.3MB to 6.2MB. This let them measure exactly which resources each device configuration actually needed.