decompile_apk
Decompile APK, DEX, JAR, AAR, or ZIP files into readable Java-like source with jadx for code reading and searching. Use for analysis only; output can't be rebuilt into an APK.
Instructions
Decompile an APK (also .dex, .jar, .aar, .zip) to readable Java-like source with jadx, for reading and searching. The output is reference code that cannot be rebuilt into an APK - use decode_apk if you need to edit and rebuild. Writes into the workspace's jadx directory (a re-run writes into the same one) and returns { outputDir, fileCount, files, stdoutTail, stderrTail? }; files holds at most 200 relative paths, so use list_files or search_code to explore the rest. Waits up to 2 minutes for jadx; on a very large APK the call can time out with an error while the decompile keeps running in the Gateway. Requires jadx on PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apkPath | Yes | Absolute path to the file to decompile, e.g. "/sdcard/Download/app.apk". Must exist; extension must be .apk, .dex, .jar, .aar or .zip. A path from get_inbox_apks works. | |
| workspace | No | Workspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to "default". |