Skip to content

Commit

Permalink
Merge pull request #461 from 3a06fa5cf14d569c/main
Browse files Browse the repository at this point in the history
Better ways to check zygisk
  • Loading branch information
chiteroman authored Oct 26, 2024
2 parents cd22f03 + 1f1126e commit 290c5b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ if ! $BOOTMODE; then
ui_print "! Please install from Magisk / KernelSU / APatch app"
abort "*********************************************************"
fi

# Module requires Zygisk to work
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."
if [ ! -d "/data/adb/modules/zygisksu" ]; then
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

# Error on < Android 8
Expand Down

0 comments on commit 290c5b4

Please sign in to comment.