From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:Dart AOT snapshot" |
|---|
| claim | "To identify the Dart version: read the 32-hex snapshot hash at _kDartVmSnapshotData+20 in libapp.so, and in libflutter.so .rodata the engine id strings (40 hex) and the '<dart version> (stable|beta|dev)' string; the engine id also names the Flutter infra dart-sdk zip containing dart-sdk/version and dart-sdk/revision. Limits of blutter's extract_dart_info.py at that commit: ELF only (Mach-O is a TODO) and Android libflutter.so only; its architecture test accepts EM_AARCH64 and EM_IA_64 (which it labels 'x64' but is Itanium), so in practice only arm64 works and an x86-64 libflutter.so (EM_X86_64) stops at 'Unsupport architecture'; it looks up the dynsym symbol _kDartVmSnapshotData, so it fails on snapshots that define only _kDartSnapshotData; it asserts exactly two 40-hex ids in .rodata; when the '(stable|beta|dev)' string is absent it does not stop: it sends HEAD requests to storage.googleapis.com for each engine id and reads dart-sdk/version from the first dart-sdk-windows-x64.zip that exists (network needed, first 4096 bytes of the zip)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Dart AOT snapshot" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "Parse libapp.so dynsym and libflutter.so .rodata as in blutter's extract_dart_info.py" |
|---|
| indicator | "regex \x00([a-f\d]{40})(?=\x00) and \x00([\d\w\.-]+) \((stable|beta|dev)\) in libflutter.so .rodata" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Reads hash at symbol address + 20 (32 chars) then the features string; regexes over .rodata; downloads dart-sdk zip by engine id for revision/version." |
|---|
| repo | "https://github.com/worawit/blutter" |
|---|
| commit | "4a60ac648bf448c5a7596437243bcd0b9376fdf0" |
|---|
| path | "extract_dart_info.py" |
|---|
| lines | "15-28, 40-57, 59-102" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Find the Dart version of a Flutter app" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:30:34.212Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:39:46.239Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched blutter extract_dart_info.py at 4a60ac6 and read the whole file (110 lines): EM_AARCH64/EM_IA_64 test with 'Unsupport architecture' assert, dynsym lookup of _kDartVmSnapshotData with st_size>128 and hash read at st_value+20, exactly-two-40-hex assert, optional '(stable|beta|dev)' regex, HEAD fallback to dart-sdk-windows-x64.zip with first-4096-byte read. Nuance: 'android' is a hard-coded label (no Android check), and st_value is used as a file offset." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T03:41:49.280Z" |
|---|
| summary | "State the script's limits at the cited commit: Android ELF only, symbol _kDartVmSnapshotData (older layout), exactly two 40-hex ids asserted, version string may be missing." |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T03:52:20.303Z" |
|---|
| summary | "Earlier correction listed 'Android arm64/x64' as supported: extract_libflutter_info labels EM_IA_64 as x64, but EM_IA_64 (50) is Itanium; an x86-64 libflutter.so (EM_X86_64) hits 'assert False…" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T10:07:52.434Z" |
|---|
| summary | "extract_dart_info does not give up when the '(stable|beta|dev)' string is absent: it falls back to downloading the dart-sdk zip named by the engine id (extract_dart_info.py, dart_version is None…" |
|---|
| changed | |
|---|
|
|
|---|