~/talk

Practical obfuscation guide

TalkinJapaneseat DroidKaigi 2024 · 2024-09-11..09-13· [security, android]
name:Mitchan
links:none on file
slides:none on file

R8 is Android’s default tool (since AGP 3.4.0) that does code shrinking, resource shrinking, optimization, and obfuscation to reduce APK size and enable aggressive inlining and dead‑code removal. It emits mapping.txt for restoring obfuscated stack traces via retrace or Firebase Crashlytics uploads. For libraries, avoid using @Keep (it stays in the binary and blocks shrinking); instead provide conditional ProGuard/consumer rules, and use templates, wildcards, bytecode inspection, and the R8 playground for practical debugging and tuning.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47What is obfuscation
  3. 5:44Obfuscation in Android
  4. 6:05R8 features and enabling
  5. 9:20Config file role
  6. 13:16Tools history and R8 adoption
  7. 14:405 keep rules techniques
  8. 21:26Keep rules principles
  9. 24:20Checking Java bytecode
  10. 25:22Info gathering resources
  11. 27:48Analyzing obfuscated crashes
  12. 31:22Keep annotations and library notes
  13. 35:42Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.