mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 11:02:40 +02:00
Merge pull request #461 from 3a06fa5cf14d569c/main
Better ways to check zygisk
This commit is contained in:
commit
290c5b442c
@ -6,11 +6,11 @@ if ! $BOOTMODE; then
|
|||||||
ui_print "! Please install from Magisk / KernelSU / APatch app"
|
ui_print "! Please install from Magisk / KernelSU / APatch app"
|
||||||
abort "*********************************************************"
|
abort "*********************************************************"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Module requires Zygisk to work
|
# Module requires Zygisk to work
|
||||||
isZygiskEnabled=$(magisk --sqlite "SELECT value FROM settings WHERE key='zygisk';")
|
if [ ! -d "/data/adb/modules/zygisksu" ]; then
|
||||||
if [ "$isZygiskEnabled" == "value=0" ] && [ ! -d "/data/adb/modules/zygisksu" ]; then
|
if [ -d "/data/adb/magisk" ]; then
|
||||||
abort "! Zygisk is not enabled. Please, enable Zygisk in Magisk settings or install ZygiskNext or ReZygisk module."
|
[ ! "$(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
|
fi
|
||||||
|
|
||||||
# Error on < Android 8
|
# Error on < Android 8
|
||||||
|
Loading…
Reference in New Issue
Block a user