Arsc Decompiler Site
| Chunk Type | Purpose | |------------|---------| | RES_TABLE_TYPE | Header; contains package ID (usually 0x7f for app, 0x01 for Android framework). | | RES_STRING_POOL_TYPE | A pool of all UTF-16 strings used in resources (keys and values). | | RES_TABLE_PACKAGE_TYPE | Defines a package (e.g., your app’s package name). | | RES_TABLE_TYPE_SPEC | Specifies the types of resources (layout, drawable, string, etc.). | | RES_TABLE_TYPE_ENTRY | Actual key-value pairs: resource ID to value. | | RES_TABLE_TYPE_CONFIG | Configuration variation (e.g., values-en-rUS-land ). |
apktool d app.apk This produces a res/ folder with decoded values/strings.xml and a public.xml file. arsc decompiler
Build your own decompiler or resource analyzer. | Chunk Type | Purpose | |------------|---------| |
def parse_string_pool(self): chunk_type = self.read_uint32() # should be 0x0001 chunk_size = self.read_uint32() string_count = self.read_uint32() # Simplified: skip style count, flags, etc. self.pos += 20 offsets = [] for _ in range(string_count): offsets.append(self.read_uint32()) for off in offsets: # Strings are UTF-16, but we'll read until null str_pos = self.pos + off end = str_pos while self.data[end:end+2] != b'\x00\x00': end += 2 raw = self.data[str_pos:end].decode('utf-16le') self.string_pool.append(raw) | | RES_TABLE_TYPE_SPEC | Specifies the types of
In simple terms, resources.arsc is a . It maps resource IDs (like 0x7f080012 ) to actual resource paths, values, configurations (screen size, language, orientation), and styling information.