mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Check MAGISKBIN/magiskpolicy
This commit is contained in:
parent
9a11412719
commit
2fb46a11dc
@ -8,8 +8,11 @@ run_delay() {
|
||||
|
||||
env_check() {
|
||||
for file in busybox magiskboot magiskinit util_functions.sh boot_patch.sh; do
|
||||
[ -f $MAGISKBIN/$file ] || return 1
|
||||
[ -f "$MAGISKBIN/$file" ] || return 1
|
||||
done
|
||||
if [ "$2" -ge 24302 ]; then
|
||||
[ -f "$MAGISKBIN/magiskpolicy" ] || return 1
|
||||
fi
|
||||
grep -xqF "MAGISK_VER='$1'" "$MAGISKBIN/util_functions.sh" || return 1
|
||||
grep -xqF "MAGISK_VER_CODE=$2" "$MAGISKBIN/util_functions.sh" || return 1
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user