]> granicus.if.org Git - file/commitdiff
PR/369: Matthieu CASTET: Add android sparse images.
authorChristos Zoulas <christos@zoulas.com>
Mon, 4 Aug 2014 06:00:36 +0000 (06:00 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 4 Aug 2014 06:00:36 +0000 (06:00 +0000)
magic/Magdir/android

index 919dddd947f7231b6fd153ecc5fabb70f9ac0bc5..1d95f66f421a56530b07aad0259ebf30d215a595 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------
-# $File: android,v 1.4 2014/06/03 19:01:34 christos Exp $
+# $File: android,v 1.5 2014/06/16 16:56:57 christos Exp $
 # Various android related magic entries
 #------------------------------------------------------------
 
 #>>>>0x18      ulelong                         x                       \b, %db
 # partition size in blocks ?
 #>>>>0x22      ulelong                         x                       \b*%d
+
+# Android bootimg format
+# From https://android.googlesource.com/\
+# platform/system/core/+/master/libsparse/sparse_format.h
+0              lelong  0xed26ff3a              Android sparse image
+>4             leshort x                       \b, version: %d
+>6             leshort x                       \b.%d
+>16            lelong  x                       \b, Total of %d
+>12            lelong  x                       \b %d-byte output blocks in
+>20            lelong  x                       \b %d input chunks.