mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-19 02:52:20 +08:00
Better magisk zygisk check
This commit is contained in:
parent
721c93e7f0
commit
1f1126ee5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user