diff --git a/docs/guides/android/apktool-resource-analysis.md b/docs/guides/android/apktool-resource-analysis.md index f0e969fb80..67eae26752 100644 --- a/docs/guides/android/apktool-resource-analysis.md +++ b/docs/guides/android/apktool-resource-analysis.md @@ -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