Skip to content

Commit

Permalink
Check Zygisk using SQL instead enviroment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
chiteroman committed Sep 15, 2024
1 parent 244e037 commit b89e9ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/customize.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b89e9ec

Please sign in to comment.