]> granicus.if.org Git - file/commitdiff
Add android XML magic
authorChristos Zoulas <christos@zoulas.com>
Thu, 19 Mar 2015 18:04:37 +0000 (18:04 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 19 Mar 2015 18:04:37 +0000 (18:04 +0000)
magic/Magdir/android

index da98b576e70ac90834a48825472edb62dbd2054a..7675c1cd24eacd11f5487e7107b0da51fc6336a2 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------
-# $File: android,v 1.7 2014/11/10 05:08:23 christos Exp $
+# $File: android,v 1.8 2015/03/19 18:04:37 christos Exp $
 # Various android related magic entries
 #------------------------------------------------------------
 
 >16            lelong  x                       \b, Total of %d
 >12            lelong  x                       \b %d-byte output blocks in
 >20            lelong  x                       \b %d input chunks.
+
+# Android binary XML magic
+# In include/androidfw/ResourceTypes.h:
+# RES_XML_TYPE = 0x0003 followed by the size of the header (ResXMLTree_header),
+# which is 8 bytes (2 bytes type + 2 bytes header size + 4 bytes size).
+0      lelong  0x00080003      Android binary XML