summaryrefslogtreecommitdiffstats
path: root/debian/patches/1673482234.FILE5_44-18-g9fa5e784.detect-android-art-baseline-profiles-found-in-apk-files.patch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/1673482234.FILE5_44-18-g9fa5e784.detect-android-art-baseline-profiles-found-in-apk-files.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/1673482234.FILE5_44-18-g9fa5e784.detect-android-art-baseline-profiles-found-in-apk-files.patch b/debian/patches/1673482234.FILE5_44-18-g9fa5e784.detect-android-art-baseline-profiles-found-in-apk-files.patch
new file mode 100644
index 0000000..7a9d585
--- /dev/null
+++ b/debian/patches/1673482234.FILE5_44-18-g9fa5e784.detect-android-art-baseline-profiles-found-in-apk-files.patch
@@ -0,0 +1,32 @@
+Subject: Detect Android ART (baseline) profiles found in APK files. (FC Stegerman)
+Origin: FILE5_44-18-g9fa5e784 <https://github.com/file/file/commit/FILE5_44-18-g9fa5e784>
+Upstream-Author: Christos Zoulas <christos@zoulas.com>
+Date: Thu Jan 12 00:10:34 2023 +0000
+
+--- a/magic/Magdir/android
++++ b/magic/Magdir/android
+@@ -212,3 +212,24 @@
+ 0 string/t .class\x20
+ >&0 regex/512 \^\\.super\x20L.*;$ disassembled Android DEX Java class (smali/baksmali)
+ !:ext smali
++
++# Android ART (baseline) profile + metadata: baseline.prof, baseline.profm
++# Reference: https://android.googlesource.com/platform/frameworks/support/\
++# +/refs/heads/androidx-main/profileinstaller/profileinstaller/\
++# src/main/java/androidx/profileinstaller/ProfileTranscoder.java
++# Reference: https://android.googlesource.com/platform/frameworks/support/\
++# +/refs/heads/androidx-main/profileinstaller/profileinstaller/\
++# src/main/java/androidx/profileinstaller/ProfileVersion.java
++0 string pro\x00
++>0 regex pro\x000[0-9][0-9]\x00 Android ART profile
++!:ext prof
++>>4 string 001\x00 \b, version 001 N
++>>4 string 005\x00 \b, version 005 O
++>>4 string 009\x00 \b, version 009 O MR1
++>>4 string 010\x00 \b, version 010 P
++>>4 string 015\x00 \b, version 015 S
++0 string prm\x00
++>0 regex prm\x000[0-9][0-9]\x00 Android ART profile metadata
++!:ext profm
++>>4 string 001\x00 \b, version 001 N
++>>4 string 002\x00 \b, version 002