asc_read_apk_entry
Read bounded APK or standalone DEX entry bytes as UTF-8 or base64, with optional XML decoding, input hash, and provenance for safe inspection.
Instructions
Read bounded entry bytes as UTF-8 or base64, with input hash and entry provenance.
Binary XML decoding and returned-content truncation are separate statuses. Partial raw reads do not verify CRC. Resource IDs are not resolved; no filesystem extraction occurs. Standalone DEX bytes remain original, including 041 headers; code validation is separate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apk_path | Yes | Archive or standalone DEX path within allowed roots | |
| max_bytes | No | Maximum returned content bytes before encoding | |
| decode_xml | No | Decode complete XML entries up to 4 MiB; false reads raw bytes | |
| entry_path | Yes | Exact entry path or standalone DEX basename from inventory | |
| byte_offset | No | Byte offset in raw or fully decoded content; follow next_byte_offset |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| entry | No | ||
| items | No | ||
| limit | No | ||
| total | No | ||
| module | No | ||
| offset | No | ||
| status | Yes | ||
| backend | No | ||
| content | No | ||
| decoded | No | ||
| message | No | ||
| sources | No | ||
| apk_path | No | ||
| coverage | No | ||
| encoding | No | ||
| has_more | No | ||
| input_id | No | ||
| truncated | No | ||
| apk_sha256 | No | ||
| entry_path | No | ||
| session_id | No | ||
| xml_format | No | ||
| byte_offset | No | ||
| limitations | No | ||
| next_offset | No | ||
| crc_verified | No | ||
| artifact_path | No | ||
| returned_bytes | No | ||
| artifact_sha256 | No | ||
| backend_version | No | ||
| decoding_status | No | ||
| content_complete | No | ||
| next_byte_offset | No | ||
| selected_modules | No | ||
| decoding_warnings | No | ||
| format_validation | No |