Browse Source

Detect smali files

Thanks FC Stegerman for input and a lot of checking.
Christoph Biedl 1 year ago
parent
commit
0bdf263c9f
2 changed files with 17 additions and 0 deletions
  1. 1 0
      debian/patches/series
  2. 16 0
      debian/patches/upstream.detect-smali.patch

+ 1 - 0
debian/patches/series

@@ -6,6 +6,7 @@
 # patches that should go upstream
 upstream.disable.att3b.patch
 upstream.mute-debug-warning.patch
+upstream.detect-smali.patch
 
 # local modifications
 local.support-local-definitions-in-etc-magic.patch

+ 16 - 0
debian/patches/upstream.detect-smali.patch

@@ -0,0 +1,16 @@
+Subject: Detect smali files
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: 2022-12-30
+Forwarded: https://mailman.astron.com/pipermail/file/2022-December/001049.html
+
+--- a/magic/Magdir/android
++++ b/magic/Magdir/android
+@@ -207,3 +207,8 @@
+ >8	string	>000	dex section version: %s,
+ >12	lelong	>0	number of dex files: %d,
+ >16	lelong	>0	verifier deps size: %d
++
++# Disassembled DEX files
++0	string/t	.class\x20
++>&0	regex/512	\^\\.super\x20L.*;$	disassembled Android DEX Java class (smali/baksmali)
++!:ext	smali