From b89e9ecbd1042511bdc2360e3f757821b79019d1 Mon Sep 17 00:00:00 2001 From: chiteroman Date: Sun, 15 Sep 2024 17:15:37 +0200 Subject: [PATCH] Check Zygisk using SQL instead enviroment variable https://github.com/chiteroman/PlayIntegrityFix/issues/423 --- module/customize.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/customize.sh b/module/customize.sh index f9fcefc..007aa85 100644 --- a/module/customize.sh +++ b/module/customize.sh @@ -1,6 +1,7 @@ # Module requires Zygisk to work -if [ "$ZYGISK_ENABLED" != "1" ] && [ ! -d "/data/adb/modules/zygisksu" ]; then - abort "! Zygisk is not enabled. Please, enable Zygisk in Magisk Settings or install the ZygiskNext or ReZygisk module." +isZygiskEnabled=$(magisk --sqlite "SELECT value FROM settings WHERE key='zygisk';") +if [ "$isZygiskEnabled" == "value=0" ] && [ ! -d "/data/adb/modules/zygisksu" ]; then + abort "! Zygisk is not enabled. Please, enable Zygisk in Magisk settings or install ZygiskNext or ReZygisk module." fi # Error on < Android 8