Freeletics Dmytro Khmelenko May 22, 2018

Reducing APK Size: A Journey to Smaller Android Apps

Article Summary

Dmytro Khmelenko shares how a job candidate's pointed question about their 63 MB APK sparked a complete optimization overhaul. The results? A 62% size reduction that every Android team should study.

When an interview candidate called out their bloated APK, the Freeletics engineering team took it as a wake-up call. They systematically analyzed their 63 MB app and discovered that 90% was resources, then got to work optimizing every asset type.

Key Takeaways

Critical Insight

Through systematic resource optimization across video, audio, and images, the team reduced their APK from 63 MB to 24 MB while maintaining app quality.

The article includes the exact audio and video specs they changed, plus the simple CI script they use to prevent size creep on every pull request.

About This Article

Problem

The Freeletics app had audio files that were way too large for what they actually did. Training notifications used stereo files at 256 kb/s and 44.1 kHz sampling rate, even though they only played briefly. Each file was 56.4 KB.

Solution

We worked with the content team to shrink the audio files. They converted everything to mono at 32 kb/s bitrate and 16 kHz sampling rate instead. File size dropped to 13.7 KB each, and the quality was still fine for short notification clips.

Impact

This audio optimization cut 4 MB from the APK size. It showed that when you match file specs to what you actually need, you can save real space.