From 424f663819ec59abc4edab03a667845835e57ac1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:52:52 +0200 Subject: Adding debian version 1:5.44-3. Signed-off-by: Daniel Baumann --- ...565d82.improve-apk-detection-fc-stegerman.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 debian/patches/1673725413.FILE5_44-22-g6d565d82.improve-apk-detection-fc-stegerman.patch (limited to 'debian/patches/1673725413.FILE5_44-22-g6d565d82.improve-apk-detection-fc-stegerman.patch') diff --git a/debian/patches/1673725413.FILE5_44-22-g6d565d82.improve-apk-detection-fc-stegerman.patch b/debian/patches/1673725413.FILE5_44-22-g6d565d82.improve-apk-detection-fc-stegerman.patch new file mode 100644 index 0000000..256f66f --- /dev/null +++ b/debian/patches/1673725413.FILE5_44-22-g6d565d82.improve-apk-detection-fc-stegerman.patch @@ -0,0 +1,47 @@ +Subject: Improve APK detection (FC Stegerman) +Origin: FILE5_44-22-g6d565d82 +Upstream-Author: Christos Zoulas +Date: Sat Jan 14 19:43:33 2023 +0000 + +--- a/magic/Magdir/archive ++++ b/magic/Magdir/archive +@@ -1531,7 +1531,7 @@ + !:mime application/vnd.android.package-archive + !:ext apk + # Starts with META-INF/MANIFEST.MF (file name length = 20) +-# NB: checks for resources.arsc or drawables as well to avoid matching JAR files ++# NB: checks for resources.arsc, classes.dex, etc. as well to avoid matching JAR files + >26 uleshort 20 + >>30 string META-INF/MANIFEST.MF + # Contains resources.arsc (near the end, in the central directory) +@@ -1540,13 +1540,27 @@ + >>>>>(-6.l-16) string APK\x20Sig\x20Block\x2042 \b, with APK Signing Block + !:mime application/vnd.android.package-archive + !:ext apk +->>>-512 default x +-# Contains drawables (near the end, in the central directory) +->>>>-512 search res/drawable Android package (APK), with MANIFEST.MF and drawables ++>>>-512 default x ++# Contains classes.dex (near the end, in the central directory) ++>>>>-512 search classes.dex Android package (APK), with MANIFEST.MF and classes.dex + >>>>>-22 string PK\005\006 + >>>>>>(-6.l-16) string APK\x20Sig\x20Block\x2042 \b, with APK Signing Block + !:mime application/vnd.android.package-archive + !:ext apk ++>>>>-512 default x ++# Contains lib/armeabi (near the end, in the central directory) ++>>>>>-512 search lib/armeabi Android package (APK), with MANIFEST.MF and armeabi lib ++>>>>>>-22 string PK\005\006 ++>>>>>>>(-6.l-16) string APK\x20Sig\x20Block\x2042 \b, with APK Signing Block ++!:mime application/vnd.android.package-archive ++!:ext apk ++>>>>>-512 default x ++# Contains drawables (near the end, in the central directory) ++>>>>>>-512 search res/drawable Android package (APK), with MANIFEST.MF and drawables ++>>>>>>>-22 string PK\005\006 ++>>>>>>>>(-6.l-16) string APK\x20Sig\x20Block\x2042 \b, with APK Signing Block ++!:mime application/vnd.android.package-archive ++!:ext apk + # Starts with zipflinger virtual entry (28 + 104 = 132 bytes) + # See https://github.com/obfusk/apksigcopier/blob/666f5b7/apksigcopier/__init__.py#L230 + >4 string \x00\x00\x00\x00\x00\x00 -- cgit v1.2.3