Skip magisk32 for 64bit only avd

This commit is contained in:
vvb2060 2023-06-28 05:27:09 +08:00 committed by John Wu
parent 4ee4cbada6
commit ff1c56683d

View File

@ -57,7 +57,7 @@ export KEEPFORCEENCRYPT=true
echo "KEEPVERITY=$KEEPVERITY" > config echo "KEEPVERITY=$KEEPVERITY" > config
echo "KEEPFORCEENCRYPT=$KEEPFORCEENCRYPT" >> config echo "KEEPFORCEENCRYPT=$KEEPFORCEENCRYPT" >> config
if [ -e "/system/bin/linker64" ]; then if [ -f magisk64 ]; then
echo "PREINITDEVICE=$(./magisk64 --preinit-device)" >> config echo "PREINITDEVICE=$(./magisk64 --preinit-device)" >> config
else else
echo "PREINITDEVICE=$(./magisk32 --preinit-device)" >> config echo "PREINITDEVICE=$(./magisk32 --preinit-device)" >> config
@ -73,7 +73,7 @@ if [ -f magisk64 ]; then
./magiskboot compress=xz magisk64 magisk64.xz ./magiskboot compress=xz magisk64 magisk64.xz
unset SKIP64 unset SKIP64
fi fi
if [ -f magisk32 ]; then if [ -e "/system/bin/linker" ]; then
./magiskboot compress=xz magisk32 magisk32.xz ./magiskboot compress=xz magisk32 magisk32.xz
unset SKIP32 unset SKIP32
fi fi