From e54688ad89c2ac3280a8b800e488940705917339 Mon Sep 17 00:00:00 2001 From: Stanislav Dmitrenko <7953703+avently@users.noreply.github.com> Date: Thu, 1 Sep 2022 11:34:56 +0300 Subject: [PATCH] android: disable compression of `res/raw` directory to avoid crash on incoming call (opening mp3) (#997) * Disable compression of `res/raw` directory. Otherwise Android crashes the app when trying to open .mp3 file from the directory * do not compress all files in res folder Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> --- scripts/android/compress-and-sign-apk.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/android/compress-and-sign-apk.sh b/scripts/android/compress-and-sign-apk.sh index c07a640fbf..1bc904af01 100755 --- a/scripts/android/compress-and-sign-apk.sh +++ b/scripts/android/compress-and-sign-apk.sh @@ -26,6 +26,7 @@ rm $ORIG_NAME (cd apk && zip -r -q -$level ../$ORIG_NAME .) # Shouldn't be compressed because of Android requirement (cd apk && zip -r -q -0 ../$ORIG_NAME resources.arsc) +(cd apk && zip -r -q -0 ../$ORIG_NAME res) #(cd apk && 7z a -r -mx=$level -tzip -x!resources.arsc ../$ORIG_NAME .) #(cd apk && 7z a -r -mx=0 -tzip ../$ORIG_NAME resources.arsc)