From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:DEX" |
|---|
| claim | "ART's CompactDexFile (internal, used in VDEX/OAT on some releases) has magic 'cdex' followed by version '001\0'; its header extends the standard one with feature_flags (kDefaultMethods = 0x1) and data_off/data_size fields. Code items use a preheader with flag bits for registers, ins, outs, tries and insns sizes." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:DEX" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "63 64 65 78 30 30 31 00" |
|---|
| offset | 0 |
|---|
| meaning | "compact dex: 'cdex' + '001' + NUL" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "kDexMagic {'c','d','e','x'}, kDexMagicVersion {'0','0','1','\0'} (comment: last change remove code item deduping), FeatureFlags, kFlagPreHeader* constants." |
|---|
| repo | "https://android.googlesource.com/platform/art" |
|---|
| commit | "6484611fd45e69db9f33f98bfd6864014b030ecf" |
|---|
| path | "libdexfile/dex/compact_dex_file.h" |
|---|
| lines | "31-44, 116-133" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Compact DEX cdex magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:35:06.013Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:15:10.539Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read libdexfile/dex/compact_dex_file.h at the cited commit: kDexMagic {'c','d','e','x'}, kDexMagicVersion {'0','0','1','\0'} (comment 'Last change: remove code item deduping'), FeatureFlags::kDefaultMethods = 0x1. Hex 63 64 65 78 30 30 31 00 is right. The preheader flag constants were not re-read." |
|---|
|
|
|---|