build_apk
Rebuild an unsigned APK from an apktool-decoded project directory, overwriting any prior build of the same name. Sign the output afterward so it can be installed.
Instructions
Rebuild an APK from an apktool-decoded (and possibly edited) project directory. The result is unsigned, so it won't install until you sign it with sign_apk. Writes to the workspace's apktool/build directory (overwriting a previous build of the same name) and returns { outputPath, signed: false, stdoutTail, stderrTail? }. Fails if inputDir has no apktool.yml, i.e. isn't a decode_apk output. Requires apktool on PATH.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputDir": "<inputDir>"
},
"name": "build_apk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputDir | Yes | Absolute path to the decoded project directory - the outputDir returned by decode_apk, possibly edited. Must contain apktool.yml. | |
| 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". | |
| outputName | No | Output file name only, not a path (no "/" or ".."). Default "rebuilt.apk". | rebuilt.apk |