medium · M7 · MASVS-RESILIENCE-3 · PTKD-REVIEW-PLAY-CODE-OPTIMIZATION
Large DEX code without R8 shrinking and obfuscation
The build has more DEX code than Google Play's threshold (10 MB for apps, 50 MB for games) and was not shrunk and obfuscated: no R8 marker in the DEX files and almost no renamed classes. From February 2027 Play requires at least 25% optimization, obfuscation and shrinking for uploads of that size, and the app bundle explorer in Play Console shows the percentages it measured.
How it is exploited
Not an attack: a shopping app ships 18 MB of DEX code built without R8. Every class, method and string keeps its readable name, unused library code stays in, and the app starts slower. From February 2027 Play measures optimization, obfuscation and shrinking on each upload of that size and holds back uploads below 25%.
Why it matters
Uploads Play will not accept from February 2027, a slower and larger app, and code that is easy to read back from the build.
How to fix it
- Set isMinifyEnabled = true and isShrinkResources = true in the release buildType, with getDefaultProguardFile("proguard-android-optimize.txt").
- Add keep rules only for classes used through reflection, serialization or JNI, and run the release build through your tests.
- Upload to an internal track and read the optimization, obfuscation and shrinking percentages in the app bundle explorer.
Does your app have this?
PTKD checks your build or your source project for PTKD-REVIEW-PLAY-CODE-OPTIMIZATION and every other check in this knowledge base.
Scan your appReferences
Related checks (M7)
- Executable built without stack canaries
- iOS binary is not encrypted (cryptid = 0)
- Executable is not position-independent (no PIE/ASLR)
- On-device cryptocurrency mining code
- iOS build is debuggable (get-task-allow = true)
- Debuggable release (get-task-allow in code signature)
- Source maps shipped inside the app
- Framework that downloads and runs code after review