From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:AXML" |
|---|
| claim | "A string pool chunk (type 0x0001) is a ResChunk_header followed by stringCount, styleCount, flags, stringsStart and stylesStart (28 bytes in all, so headerSize is normally 0x1C); flags bit 0 = SORTED_FLAG, bit 8 (0x100) = UTF8_FLAG. stringsStart and stylesStart are offsets from the start of the chunk. After the header come stringCount uint32 string offsets (relative to stringsStart) and styleCount uint32 style offsets." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:AXML" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ResStringPool_header" |
|---|
| size | "0x1C" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "ResChunk_header" |
|---|
| name | "header" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "stringCount" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "styleCount" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "flags" |
|---|
| bits | |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "stringsStart" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "stylesStart" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct ResStringPool_header with SORTED_FLAG = 1<<0 and UTF8_FLAG = 1<<8." |
|---|
| repo | "https://android.googlesource.com/platform/frameworks/base" |
|---|
| commit | "1cdfff555f4a21f71ccc978290e2e212e2f8b168" |
|---|
| path | "libs/androidfw/include/androidfw/ResourceTypes.h" |
|---|
| lines | "461-489" |
|---|
|
| type | "source" |
|---|
| detail | "UTF8_FLAG = 0x00000100 and mIsUtf8 = (flags & UTF8_FLAG) != 0." |
|---|
| repo | "https://github.com/iBotPeaches/Apktool" |
|---|
| commit | "fd9d5d4dc7e45fa7f984698ded7a03c554d0a7b3" |
|---|
| path | "brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/ResStringPool.java" |
|---|
| lines | "40,105" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "ResStringPool_header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T06:34:56.880Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:48:09.413Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched ResourceTypes.h at the cited commit (gitiles ?format=TEXT): ResStringPool_header = ResChunk_header (8) + stringCount, styleCount, flags, stringsStart, stylesStart (5 x u32) = 28; SORTED_FLAG 1<<0, UTF8_FLAG 1<<8; starts are 'index from header'. Matches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:16:30.513Z" |
|---|
| summary | "Claim said the header is '24 bytes in all'; the five fields are 20 bytes after the 8-byte ResChunk_header, so 28 bytes (0x1C), as the data record already says." |
|---|
| changed | |
|---|
|
|
|---|