How ProGuard Works
summary
Explains exactly what ProGuard does: shows how ProGuard analyzes and transforms your app, details the shrinking and obfuscation steps, the mapping, seeds and usage files it writes, and why -keep rules must be narrow; gives a concrete script-driven measurement of how many apps are partly obfuscated; shows how the Android build pipeline uses ProGuard and how R8 replaces ProGuard while interoperating with d8; includes actionable debugging tips and which outputs to keep or ignore.
AI-written summary · about
chapters (9)
- 0:00The need for obfuscation
- 2:53Understanding ProGuard issues
- 5:50How ProGuard works
- 11:15Debugging stack traces
- 13:43Build pipeline deep dive
- 16:06Mastering keep rules
- 21:34Configuration sources
- 26:21Transitioning to R8
- 31:23Best practices and summary
related talks
27mFrom ProGuard to R8: Take Care of Your Bytecode
37mEffective ProGuard keep rules for smaller applications
28mEscaping from a 'It Kinda Works' ProGuard Setup
36mPractical obfuscation guide
41mShrink, Secure & Optimize Your App With R8
36mMaster the Art of Code Obfuscation from Simple to Advanced
45mGoing Beyond Obfuscation: Advanced Techniques for Protecting Android Apps
46mDiscovering and Mastering Obfuscation on Android
