[File] [PATCH] Detect Android LOKI'd boot bootimgs

Kevin Mark kmark937 at gmail.com
Thu Jun 6 11:28:14 UTC 2019


Previously only recovery LOKI'd bootimgs would be detected. This
patch differentiates between boot and recovery LOKI'd bootimgs and
displays which it is.
---
 magic/Magdir/android | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/magic/Magdir/android b/magic/Magdir/android
index a9cfb357..ae72fba4 100644
--- a/magic/Magdir/android
+++ b/magic/Magdir/android
@@ -19,7 +19,9 @@
 # From https://android.googlesource.com/\
 # platform/system/core/+/master/mkbootimg/bootimg.h
 0		string	ANDROID!	Android bootimg
->1024	string	LOKI\01		\b, LOKI'd
+>1024	string	LOKI		\b, LOKI'd
+>>1028	lelong	0			\b (boot)
+>>1028	lelong	1			\b (recovery)
 >8		lelong	>0			\b, kernel
 >>12	lelong	>0			\b (0x%x)
 >16		lelong	>0			\b, ramdisk
-- 
2.21.0



More information about the File mailing list