decode_apk
Decode an APK's resources to editable XML and disassemble code to smali for editing and rebuilding with build_apk; output replaces the workspace apktool/decode directory.
Instructions
Decode an APK's resources to editable XML and disassemble its code to smali with apktool, so the result can be edited and rebuilt with build_apk (unlike decompile_apk's read-only Java). Always writes to the workspace's single apktool/decode directory and replaces whatever was there, including any edits you made to a previous decode - copy it elsewhere first if you need to keep it. Returns { outputDir, fileCount, files, stdoutTail, stderrTail? }; files holds at most 200 relative paths. Requires apktool on PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noRes | No | Skip decoding resources - disassemble smali only. Default false. | |
| noSrc | No | Skip disassembling code to smali - decode resources only, which is faster. Default false. | |
| apkPath | Yes | Absolute path to the file to decode. Must exist; extension must be .apk, .jar or .zip. | |
| 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". |