From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Android LP metadata (super.img)" |
|---|
| claim | "In a super partition the primary geometry is at byte 4096, the backup geometry at 8192, primary metadata slot n at 12288 + metadata_max_size*n and backup slot n at 12288 + metadata_max_size*(metadata_slot_count + n)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Android LP metadata (super.img)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "locating LP metadata in a super image" |
|---|
| effect | "offsets 4096, 8192, 12288+max*n, 12288+max*(count+n)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "GetPrimaryGeometryOffset, GetBackupGeometryOffset, GetPrimaryMetadataOffset, GetBackupMetadataOffset; read in the lineage-21.0 mirror, lines 76-96" |
|---|
| repo | "https://android.googlesource.com/platform/system/core" |
|---|
| path | "fs_mgr/liblp/utility.cpp" |
|---|
| lines | "76-96" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Geometry and metadata slot offsets" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:14:19.586Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:18:42.278Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read fs_mgr/liblp/utility.cpp GetPrimaryGeometryOffset (4096), GetBackupGeometryOffset (+LP_METADATA_GEOMETRY_SIZE), GetPrimaryMetadataOffset and GetBackupMetadataOffset (start + max*count + max*slot) on master; LP_METADATA_GEOMETRY_SIZE=4096 is defined in a header not re-read." |
|---|
|
|
|---|