From 773bf0c6bc6906f6ddf896a5263f4b469f6b868f Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sat, 29 May 2021 22:30:25 +0800 Subject: [PATCH] Do not use glob in the system's unzip parameter https://android.googlesource.com/platform/system/core/+/refs/tags/android-10.0.0_r47/libziparchive/unzip.cpp#57 unzip did not support glob before Android 11 --- scripts/update_binary.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update_binary.sh b/scripts/update_binary.sh index ff37a0b64..2e61cbb3d 100644 --- a/scripts/update_binary.sh +++ b/scripts/update_binary.sh @@ -5,10 +5,10 @@ rm -rf $TMPDIR mkdir -p $TMPDIR 2>/dev/null export BBBIN=$TMPDIR/busybox -unzip -o "$3" "lib/*/libbusybox.so" -d $TMPDIR >&2 -chmod -R 755 $TMPDIR/lib for arch in "x86_64" "x86" "arm64-v8a" "armeabi-v7a"; do + unzip -o "$3" "lib/$arch/libbusybox.so" -d $TMPDIR >&2 libpath="$TMPDIR/lib/$arch/libbusybox.so" + chmod 755 $libpath if [ -x $libpath ] && $libpath >/dev/null 2>&1; then mv -f $libpath $BBBIN break