docs(apktool): describe decode delivery and resource views

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
gensokyo-devandgensokyo-dev authored and Ysopwnable committed 2026-11-26 19:56:07 +08:00
1 parent a16facbd9f
commit 3ffbf5dea0
1 file changed
+24
@@ -114,6 +114,30 @@ These controls take nonnegative safe-integer offsets and positive safe-integer
budgets, apply on the next decode, and require no REA restart. Process memory
and response transport capacity still apply.
### Delivery and views
A decode carries the full manifest text and every returned string, so it grows
with the app. On VLC 3.7.2 the default MCP result was 180,996 bytes: 1,531
strings and 69,295 code units of manifest text. An MCP call that omits `detail`
returns the decode inline when its Evidence fits the
[agent result budget](../../reference/limits-and-recovery.md#agent-result-budget).
Otherwise the decode is retained, and the call returns a summary with metadata,
locales, the decoded file count, each selected table's counts and page, and the
manifest length. `detail: "complete"` returns everything inline.
With `detail: "summary"`, `view` returns one page instead of the summary, and
`inspect_analysis_view` reads later pages of the retained decode:
- `{"kind":"android-resources","facet":"strings"}` lists `{locale, name, value}`
rows across the decoded tables. `locales` selects tables (`null` is the
default table), and `names` and `name_prefixes` match exactly.
`coverage.total` counts every match, so a prefix count needs one page.
- `{"kind":"android-resources","facet":"manifest"}` pages the manifest text by
`offset` and `limit` in UTF-16 code units.
A view reads only the tables this decode returned; decode the locales first. On
the CLI, `--detail summary` and `--view` require `--evidence_output`.
## Interpret the result
- **An owned APK snapshot is digested and decoded.** `target.sha256` and