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
Controlling APK Size When Using Native Library
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Brijesh Masrani
July 02, 2017
Technology
0
130
Controlling APK Size When Using Native Library
Brijesh Masrani
July 02, 2017
Tweet
Share
More Decks by Brijesh Masrani
See All by Brijesh Masrani
Let's Stream that Video - an ExoPlayer Starters Guide
brijeshmasrani
0
180
Putting Your APKs on Diet
brijeshmasrani
0
58
What's new in Android N
brijeshmasrani
1
220
Other Decks in Technology
See All in Technology
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
Azure SQL Databaseでベクター検索を活用しよう
nakasho
0
120
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
41k
AI時代にあわせたQA組織戦略
masamiyajiri
6
2.9k
[Iceberg Meetup #4] ゼロからはじめる: Apache Icebergとはなにか? / Apache Iceberg for Beginners
databricksjapan
0
540
プロダクトエンジニアこそ必要なPMスキル 〜デリバリー力を最大化し、価値を届け続けるために〜
layerx
PRO
0
150
CodeRabbit CLI + Claude Codeの連携について
oikon48
1
680
セキュリティ はじめの一歩
nikinusu
0
1.2k
Mosaic AI Gatewayでコーディングエージェントを配るための運用Tips / JEDAI 2026 新春 Meetup! AIコーディング特集
genda
0
120
「全社導入」は結果。1人の熱狂が組織に伝播したmikanのn8n活用
sota_mikami
0
580
Agentic Coding 実践ワークショップ
watany
41
28k
ゼロから始めたFindy初のモバイルアプリ開発
grandbig
2
480
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
140
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Designing Powerful Visuals for Engaging Learning
tmiket
0
210
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
230
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
130
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
170
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Leo the Paperboy
mayatellez
4
1.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
740
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
160
Transcript
Controlling APK Size When Using Native Library
I am Brijesh Masrani @
Outline • What are the major components in APK? •
APK Splitting • What is ABI and how it works? • Understanding ABI in detail • Problems with ABI split • Solving Issues with abiFilters
What are the major components in APK? • Class files
• Resources • Manifest file • Native libraries
APK Splitting Density and Application Binary Interface (ABI)
Application Binary Interface • The ABI defines, with great precision,
how an application’s machine code is supposed to interact with the system at runtime. • You must specify an ABI for each CPU architecture you want your app to work with. • mips, mips64, X86, X86–64, arm64-v8a, armeabi, armeabi-v7a
Analysis of the APK file
APK details after adding Realm
None
Realm distribution for different CPU architecture
Realm adds .so file for 5 CPU architectures mips, X86,
X86–64, armeabi-v7a, and arm64-v8a this increases the apk size by 4.8 MB; remaining ~130KB is increased in dex size.
ABI split
None
Multiple APK files generated after enabling split
None
Amazing right! We went from 74KB to 5MB and came
back to 1.3 MB. But But But….
NDK abiFilters
APK with “armeabi-v7a” and “x86” libs
TL;DR — Detail about CPU Architecture
Google Maps with ABI filters
None
Thank You You can find me at @brijeshmasrani