Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
A journey to smaller APK size
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Dmytro Khmelenko
July 20, 2018
Programming
120
1
Share
A journey to smaller APK size
Slides for the talk at 360|AnDev conference.
Dmytro Khmelenko
July 20, 2018
More Decks by Dmytro Khmelenko
See All by Dmytro Khmelenko
Securing Python Web Applications
dkhmelenko
0
34
Best of login experience
dkhmelenko
0
120
Best of sign in experience @ Droidcon Lisbon
dkhmelenko
0
120
Red or Green? Let us test
dkhmelenko
0
46
A journey to smaller apk size
dkhmelenko
0
68
How Git helps us with localization
dkhmelenko
0
110
Dagger.Android module
dkhmelenko
0
74
MVVM vs. MVP
dkhmelenko
0
56
Unit testing
dkhmelenko
0
50
Other Decks in Programming
See All in Programming
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
340
GitHubCopilotCLIをはじめよう.pdf
htkym
0
190
第3木曜LT会 #28
tinykitten
PRO
0
110
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
370
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
130
アーキテクチャモダナイゼーションとは何か
nwiizo
19
5.3k
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
550
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
980
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
360
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
0
280
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
600
Featured
See All Featured
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
320
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Exploring anti-patterns in Rails
aemeredith
3
320
[SF Ruby Conf 2025] Rails X
palkan
2
960
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
520
So, you think you're a good person
axbom
PRO
2
2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
260
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
120
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Designing Experiences People Love
moore
143
24k
Transcript
A JOURNEY TO SMALLER APK SIZE Dmytro Khmelenko Software Engineer
19-20 July 2018
ONCE UPON A TIME… Release APK size is 63 MB
2
ONCE UPON A TIME… Release APK size is 63 MB
3
Analysis 4 EPISODE 1
5 ANALYZE APK
ANALYZE APK 6
The developers strike back 7 EPISODE 2
RESOURCES OPTIMIZATION 8 ✅ Shrink video files (- 10 MB)
9 Overall bit rate : 3 235 kb/s Bits/(Pixel*Frame) :
0.549 Stream size : 4.77 MiB (94%) File size : 5.3 MB Overall bit rate : 735 kb/s Bits/(Pixel*Frame) : 0.108 Stream size : 963 KiB (81%) File size: : 1.2 MB
RESOURCES OPTIMIZATION 10 ✅ Shrink video files (- 10 MB)
✅ Shrink audio files (- 4 MB)
AUDIO FILES 11 Before: Bit rate : 256 kb/s Channel(s)
: 2 channels Sampling rate : 44.1 kHz File size : 56.4 KB After: Bit rate : 32.0 kb/s Channel(s) : 1 channel Sampling rate : 16.0 kHz File size : 13.7 KB
RESOURCES OPTIMIZATION ✅ Shrink video files (- 10 MB) ✅
Shrink audio files (- 4 MB) ✅ Shrink and optimize drawables (- 25 MB) 12
13 525 KB, .png 75 KB, .jpg
DRAWABLES OPTIMIZATION ✅ Remove unused drawables (Lint, ProGuard) ✅ Support
only hdpi, xhdpi and xxhdpi ✅ Use .jpeg, when possible ✅ Use .webp instead of .png 14
DRAWABLES SIZE hdpi ~ 50 KB xhdpi ~ 100 KB
xxhdpi ~ 150 KB 15
Review 16 EPISODE 3
TIME TO REVIEW 17
TIME TO REVIEW 18
LEARNINGS Pay attention to resources Collaborate with designers 19
A new hope 20 EPISODE 4
FURTHER STEPS • Multiple APK split by screen density •
Multiple APK split by CPU architecture • Automatically check size for every new file 21
22
APP BUNDLE 23 { "supportedAbis": ["x86_64", "x86", "armeabi-v7a"], "supportedLocales": ["en-US",
"de-DE"], "screenDensity": 320, "sdkVersion": 24 }
APP BUNDLE 24 hdpi base-en.apk: 52 KB base-master.apk: 12.5 MB
base-hdpi.apk: 2.3 MB
APP BUNDLE 25 base-master.apk
APP BUNDLE 26 base-hdpi.apk
APP BUNDLE 27 hdpi base-en.apk: 52 KB base-master.apk: 12.5 MB
base-hdpi.apk: 2.3 MB xxhdpi base-en.apk: 52KB base-master.apk: 12.5 MB base-xxhdpi.apk: 6.3 MB xhdpi base-en.apk: 52 KB base-master.apk: 12.5 MB base-xhdpi.apk: 3.4 MB
APP BUNDLE 28 hdpi base-en.apk: 52 KB base-master.apk: 12.5 MB
base-hdpi.apk: 2.3 MB xxhdpi base-en.apk: 52KB base-master.apk: 12.5 MB base-xxhdpi.apk: 6.3 MB xhdpi base-en.apk: 52 KB base-master.apk: 12.5 MB base-xhdpi.apk: 3.4 MB
APP BUNDLE 29 hdpi base-en.apk: 52 KB base-master.apk: 12.5 MB
base-hdpi.apk: 2.3 MB xxhdpi base-en.apk: 52KB base-master.apk: 12.5 MB base-xxhdpi.apk: 6.3 MB xhdpi base-en.apk: 52 KB base-master.apk: 12.5 MB base-xhdpi.apk: 3.4 MB 14.9 MB 16.0 MB 18.9 MB
Random data 30 EPISODE 5
31 REGISTRATIONS
The phantom menace 32 EPISODE 6
MEANWHILE 33
WE NEED TO STOP IT 34 bit.ly/2NvSafl
IT WORKS 35
RESOURCES • https://developer.android.com/topic/performance/reduce-apk-size.html • https://developer.android.com/guide/app-bundle • https://medium.com/@d.khmelenko/a-journey-to-a-smaller-apk-78155416f280 • https://medium.com/@d.khmelenko/android-app-bundle-6fd1e55c4c4b 36
THANK YOU! @dkhmelenko