Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:ART image

From ReverseEngineering.wiki
Format
Platforms Android ART
Magic 61 72 74 0A + ASCII version ("art\n056\0")
Extensions .art
On this wiki Facts · Code · Notes · Topics

Android Runtime heap image (.art, for example boot.art): magic "art\n" and a 3-digit version (017 Android 6, 029 Android 7.0, 030 Android 7.1, 044 Android 8.0, 046 Android 8.1, 056 Android 9), a header with the image base, size, matching OAT checksum and an array of image sections.

Header

magic[4] art\n; version[4]; image_begin (required mapping address); image_size; oat_checksum (must match the paired Format:OAT); oat_file_begin; oat_data_begin; oat_data_end; oat_file_end; patch_delta (i32); image_roots (address of an Object[]); pointer_size (4 or 8, affects ArtMethod size); compile_pic; then image_section_t {offset, size} entries and image_methods (u64 each). Per LIEF structures: 5 sections in ART 017, 9 in ART 029, 10 in ART 030, 044, 046 and 056; 6 image methods up to ART 046 and 9 in ART 056.

Versions by release

017 = Android 6.0/6.0.1, 029 = 7.0, 030 = 7.1.x, 044 = 8.0, 046 = 8.1, 056 = 9.

Use

The image holds pre-initialised Java objects (classes, strings, ArtMethods) of the boot class path; offsets inside are image-relative addresses based on image_begin. Typically paired with boot.oat and boot.vdex.

Code & repositories

  • https://github.com/lief-project/LIEF @ 2795838f5f33efbc10f071d194c44197a86a36d8 · license: Apache-2.0 (declared by the contributor for the files used; GitHub reports Apache-2.0 (read from LICENSE; GitHub's API was busy) for the repository)
    LIEF: parser and rewriter for ELF, PE, Mach-O, DEX, OAT, VDEX and ART; src/DEX, src/OAT, src/VDEX, src/ART Structures.hpp give the header layouts per Android release
    Tested on: source read, not run: source read only · checked 2026-10-18