Skip to content

Commit

Permalink
Better magisk zygisk check
Browse files Browse the repository at this point in the history
  • Loading branch information
3a06fa5cf14d569c authored Oct 26, 2024
1 parent 721c93e commit 1f1126e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ if ! $BOOTMODE; then
ui_print "! Please install from Magisk / KernelSU / APatch app"
abort "*********************************************************"
fi

# Module requires Zygisk to work
if [ ! -d "/data/adb/modules/zygisksu" ] && [ "$(magisk --sqlite "SELECT value FROM settings WHERE key='zygisk';")" == "value=0" ]; 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 1f1126e

Please sign in to comment.