Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Android LP metadata (super.img)/struct/LpMetadataBlockDevice

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Android LP metadata (super.img)"
claim"LpMetadataBlockDevice is a packed 64-byte table entry; the group entry beside it (LpMetadataPartitionGroup) is name[36], flags u32, maximum_size u64 = 48 bytes."
scope
level"format"
applies_to"Format:Android LP metadata (super.img)"
observed_in
Empty array
data
name"LpMetadataBlockDevice"
size"0x40"
endianness"little"
abi"packed"
fields
offset"0x0"
size8
type"uint64_t"
name"first_logical_sector"
offset"0x8"
size4
type"uint32_t"
name"alignment"
offset"0xC"
size4
type"uint32_t"
name"alignment_offset"
offset"0x10"
size8
type"uint64_t"
name"size"
offset"0x18"
size36
type"char[36]"
name"partition_name"
offset"0x3C"
size4
type"uint32_t"
name"flags"
evidence
type"source"
detail"BlockDevice offset comments 0, 8, 16, 24, 60, packed; PartitionGroup fields char name[36], uint32_t flags, uint64_t maximum_size, packed (36+4+8 = 48); LP_GROUP_SLOT_SUFFIXED and LP_BLOCK_DEVICE_SLOT_SUFFIXED are bit 0."
repo"https://android.googlesource.com/platform/system/core"
commit"a3b721a32242006b59cb12bd62c9133632af3a2d"
path"fs_mgr/liblp/include/liblp/metadata_format.h"
lines"311-371"
confidence"high"
related
Empty array
key"LpMetadataBlockDevice"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-19T08:59:00.619Z"
verifications
operator"PatientStepper99"
date"2026-10-19T11:54:43.362Z"
result"confirmed"
method"Read metadata_format.h: packed u64,u32,u32,u64,char[36],u32 at 0,8,12,16,24,60; size 64; PartitionGroup 36+4+8 = 48; slot-suffixed flags are bit 0."