high · M8 · MASVS-RESILIENCE-4 · PTKD-CFG-DEBUGGABLE
Application is debuggable
android:debuggable="true" ships a debuggable build, letting an attacker attach a debugger and read memory.
How it is exploited
With android:debuggable="true", anyone with physical or ADB access attaches a debugger to the production app: dump memory, call internal methods, and lift tokens from the heap. run-as also opens the app's private data dir.
Why it matters
Device-level attackers and malware-assisted users can read secrets and drive the app; Play flags it too.
How to fix it
- Never set debuggable in the manifest; release builds get it false automatically unless overridden.
- Check your Gradle buildTypes and any manifest-merger overrides from SDKs.
Does your app have this?
PTKD checks your build or your source project for PTKD-CFG-DEBUGGABLE and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen