From ff1c56683dcfcbd71894cba2c9279839674b5157 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Wed, 28 Jun 2023 05:27:09 +0800 Subject: [PATCH] Skip magisk32 for 64bit only avd --- scripts/avd_patch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/avd_patch.sh b/scripts/avd_patch.sh index 0f60fe9e2..e72877f6d 100644 --- a/scripts/avd_patch.sh +++ b/scripts/avd_patch.sh @@ -57,7 +57,7 @@ export KEEPFORCEENCRYPT=true echo "KEEPVERITY=$KEEPVERITY" > config echo "KEEPFORCEENCRYPT=$KEEPFORCEENCRYPT" >> config -if [ -e "/system/bin/linker64" ]; then +if [ -f magisk64 ]; then echo "PREINITDEVICE=$(./magisk64 --preinit-device)" >> config else echo "PREINITDEVICE=$(./magisk32 --preinit-device)" >> config @@ -73,7 +73,7 @@ if [ -f magisk64 ]; then ./magiskboot compress=xz magisk64 magisk64.xz unset SKIP64 fi -if [ -f magisk32 ]; then +if [ -e "/system/bin/linker" ]; then ./magiskboot compress=xz magisk32 magisk32.xz unset SKIP32 fi