Use the jadx command to decompile various file formats including .apk, .dex, .jar, .class, .smali, .zip, .aar, .arsc, .aab, .xapk, and .apkm.
Basic Syntax:
jadx [command] [options] <input files>
Common Options:
-d, --output-dir: Specify the output directory.-r, --no-res: Do not decode resources.-s, --no-src: Do not decompile source code.--output-format: Set to java (default) or json.--deobf: Activate deobfuscation.-j, --threads-count: Number of processing threads (default: 16).
# Decompile an APK to an output directory
jadx -d out classes.dex
# Decompile with specific rename flags
jadx --rename-flags "valid, printable" classes.dex
# Set log level to error
jadx --log-level ERROR app.apk
# Disable checksum verification for dex input
jadx -Pdex-input.verify-checksum=no app.apk