From: Christos Zoulas Date: Mon, 4 Aug 2014 06:00:36 +0000 (+0000) Subject: PR/369: Matthieu CASTET: Add android sparse images. X-Git-Tag: FILE5_20~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d23e3b4ee46d46dc56df8e62159288b3ef48b66d;p=file PR/369: Matthieu CASTET: Add android sparse images. --- diff --git a/magic/Magdir/android b/magic/Magdir/android index 919dddd9..1d95f66f 100644 --- a/magic/Magdir/android +++ b/magic/Magdir/android @@ -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 #------------------------------------------------------------ @@ -170,3 +170,13 @@ #>>>>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.