Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

JADX

$ jadx Official Low Risk
skylot · Security & Secrets · Apache-2.0 · macos / linux / windows

JADX (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.

FCRS-1.0 Score
81 /100
Good
High Confidence
Zero-Friction Install
brew install jadx
CLI vs MCP Decision CLI Only

jadx decompiles large APK archives into local directory trees on disk for subsequent rg or AST search.

Agent-Readiness Checklist

Local Probe Evidence
✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md
Version
1.5.6
Startup
551 ms
Exit Codes (help / invalid)
0 / 1
NO_COLOR Clean / Non-TTY Safe
Yes / Safe
Captured --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

Agent-Readiness 20 / 25

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 -d directory
Trust & Safety 21 / 25

Static offline decompilation only; writes decompiled .java/.json output cleanly into -d directory.

  • Offline static analysis with explicit -d output dir
Setup & Portability 12 / 15

Available via brew and GitHub releases across macOS, Linux, and Windows, requiring a Java (JRE/JDK) runtime.

  • Cross-platform CLI requiring Java runtime
Utility & Efficiency 13 / 15

Turns opaque APKs into searchable Java source and manifests in one command.

  • Decompiles DEX, AAB, AAR, and resources together
Maintenance & Lineage 8 / 10

Actively maintained (skylot/jadx) under Apache-2.0 with frequent releases.

  • Active skylot/jadx upstream
Docs & Verifiability 7 / 10

Comprehensive --help option descriptions and GitHub wiki.

  • Clear --help output verified on jadx 1.5.6

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication credentials required; operates completely offline on local APK/DEX files.

Side Effects
Local Write
Cost & Quotas

Apache-2.0 open-source CLI; free and offline.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Decode only resources and AndroidManifest.xml
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

Decompile APK classes to JSON AST output
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 json and --single-class enable targeted, structured APK code inspection.
  • + -r and -s let 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI