CommonInstaller: fix detect_mode() ignoring /system/addon.d/NanoDroid_FileList exists

merge-requests/33/head
Christopher Roy Bratusek 4 years ago
parent d69746d4ad
commit c5b883be6b

@ -774,16 +774,18 @@ detect_mode () {
MODE=SYSTEM
MAGISK_VER_CODE=0
if [ -f /data/adb/magisk/util_functions.sh ]; then
. /data/adb/magisk/util_functions.sh
elif [ -f /data/magisk/util_functions.sh ]; then
. /data/magisk/util_functions.sh
fi
if [ ! -f "${NANODROID_LIST}" ]; then
if [ -f /data/adb/magisk/util_functions.sh ]; then
. /data/adb/magisk/util_functions.sh
elif [ -f /data/magisk/util_functions.sh ]; then
. /data/magisk/util_functions.sh
fi
if [ ${MAGISK_VER_CODE} -ge 19000 ]; then
MODE=MAGISK
else
MODE=SYSTEM
if [ ${MAGISK_VER_CODE} -ge 19000 ]; then
MODE=MAGISK
else
MODE=SYSTEM
fi
fi
;;
esac

Loading…
Cancel
Save