JADX
$ jadx Official Low RiskJADX (jadx) decompiles Android APK, DEX, AAB, AAR, and JAR files into readable Java source and decoded AndroidManifest.xml resources. Supports --deobf, -r/-s selective skipping, -j <threads>, --single-class, and --output-format json for automated mobile security audits.
brew install jadx jadx decompiles large APK archives into local directory trees on disk for subsequent rg or AST search.
Agent-Readiness Checklist
Local Probe EvidenceCaptured --help excerpt
jadx - dex to java decompiler, version: 1.5.6
usage: jadx [command] [options] <input files> (.apk, .dex, .jar, .class, .smali, .zip, .aar, .arsc, .aab, .xapk, .apkm, .jadx.kts)
commands (use '<command> --help' for command options):
plugins - manage jadx plugins
options:
-d, --output-dir - output directory
-ds, --output-dir-src - output directory for sources
-dr, --output-dir-res - output directory for resources
-r, --no-res - do not decode resources
-s, --no-src - do not decompile source code
-j, --threads-count - processing threads count, default: 5
--single-class - decompile a single class, full name, raw or alias
--single-class-output - file or dir for write if decompile a single class
--output-format - can be 'java' or 'json', default: java
-e, --export-gradle - save as gradle project (set '--export-gradle-type' to 'auto')
--export-gradle-type - Gradle project template for export:
'auto' - detect automatically
'android-app' - Android Application (apk)
'android-library' - Android Library (aar)
'simple-java' - simple Java
-m, --decompilation-mode - code output mode:
'auto' - trying best options (default)
'restructure' - restore code structure (normal java code)
'simple' - simplified instructions (linear, with goto's)
'fallback' - raw instructions without modifications
--show-bad-code - show inconsistent code (incorrectly decompiled)
--no-xml-pretty-print - do not prettify XML
--no-imports - disable use of imports, always write entire package name
--no-debug-info - disable debug info parsing and processing
--add-debug-lines - add comments with debug line FCRS-1.0 6-Dimension Breakdown
Fully non-interactive with --output-format json, --single-class, -r/-s selective skips, and -j threading, though output always writes to files rather than stdout.
- Supports
--output-format json,--single-class,-r, and-s - Non-interactive execution; writes output to
-ddirectory
Static offline decompilation only; writes decompiled .java/.json output cleanly into -d directory.
- Offline static analysis with explicit
-doutput dir
Available via brew and GitHub releases across macOS, Linux, and Windows, requiring a Java (JRE/JDK) runtime.
- Cross-platform CLI requiring Java runtime
Turns opaque APKs into searchable Java source and manifests in one command.
- Decompiles DEX, AAB, AAR, and resources together
Actively maintained (skylot/jadx) under Apache-2.0 with frequent releases.
- Active
skylot/jadxupstream
Comprehensive --help option descriptions and GitHub wiki.
- Clear
--helpoutput verified onjadx1.5.6
Security, Auth & Guardrails
No authentication credentials required; operates completely offline on local APK/DEX files.
Apache-2.0 open-source CLI; free and offline.
# JADX (jadx) Agent Rules - Always specify `-d <out>` pointing to `/tmp` or a gitignored scratch directory so decompiled files do not pollute the repo. - Use `-r` (skip resources) or `-s` (skip sources) and `--single-class` to keep runtime and disk usage small.
Agent-Ready Command Recipes
Safe Read-Only Queries
jadx -s -d /tmp/apk-res app.apk
Skips Java source decompilation (-s) to quickly extract decoded resources and AndroidManifest.xml into /tmp/apk-res.
Controlled Writes & Previews
jadx -r -j 4 --output-format json -d /tmp/apk-json app.apk
Skips resources (-r), uses 4 threads (-j 4), and writes decompiled classes in JSON format via --output-format json.
Strengths for Agents
- +
--output-format jsonand--single-classenable targeted, structured APK code inspection. - +
-rand-slet agents skip unwanted phases to keep decompilation fast.
Caveats & Pitfalls
- ! Always writes decompiled trees to disk (
-d) rather than streaming to stdout; large APKs can generate thousands of files. - ! Requires JVM startup and sufficient heap (
JAVA_OPTS) on huge multi-DEX APKs.