Better magisk zygisk check

This commit is contained in:
3a06fa5cf14d569c 2024-10-26 23:22:39 +08:00 committed by GitHub
parent 721c93e7f0
commit 1f1126ee5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,10 +6,11 @@ if ! $BOOTMODE; then
ui_print "! Please install from Magisk / KernelSU / APatch app" ui_print "! Please install from Magisk / KernelSU / APatch app"
abort "*********************************************************" abort "*********************************************************"
fi fi
# Module requires Zygisk to work # Module requires Zygisk to work
if [ ! -d "/data/adb/modules/zygisksu" ] && [ "$(magisk --sqlite "SELECT value FROM settings WHERE key='zygisk';")" == "value=0" ]; then if [ ! -d "/data/adb/modules/zygisksu" ]; then
abort "! Zygisk is not enabled. Please, enable Zygisk in Magisk settings or install ZygiskNext or ReZygisk module." if [ -d "/data/adb/magisk" ]; then
[ ! "$(magisk --sqlite "SELECT value FROM settings WHERE key='zygisk';")" == "value=0" ] || abort "! Zygisk is not enabled. Please, enable Zygisk in Magisk settings or install ZygiskNext or ReZygisk module."
fi
fi fi
# Error on < Android 8 # Error on < Android 8