mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Cleanup manager.sh
This commit is contained in:
parent
71205bc530
commit
6f74ed6ceb
@ -10,7 +10,7 @@ env_check() {
|
|||||||
for file in busybox magiskboot magiskinit util_functions.sh boot_patch.sh; do
|
for file in busybox magiskboot magiskinit util_functions.sh boot_patch.sh; do
|
||||||
[ -f "$MAGISKBIN/$file" ] || return 1
|
[ -f "$MAGISKBIN/$file" ] || return 1
|
||||||
done
|
done
|
||||||
if [ "$2" -ge 24302 ]; then
|
if [ "$2" -ge 25000 ]; then
|
||||||
[ -f "$MAGISKBIN/magiskpolicy" ] || return 1
|
[ -f "$MAGISKBIN/magiskpolicy" ] || return 1
|
||||||
fi
|
fi
|
||||||
grep -xqF "MAGISK_VER='$1'" "$MAGISKBIN/util_functions.sh" || return 1
|
grep -xqF "MAGISK_VER='$1'" "$MAGISKBIN/util_functions.sh" || return 1
|
||||||
@ -206,7 +206,8 @@ get_flags() {
|
|||||||
fi
|
fi
|
||||||
# Preset PATCHVBMETAFLAG to false in the non-root case
|
# Preset PATCHVBMETAFLAG to false in the non-root case
|
||||||
PATCHVBMETAFLAG=false
|
PATCHVBMETAFLAG=false
|
||||||
# Do NOT preset RECOVERYMODE here
|
# Make sure RECOVERYMODE has value
|
||||||
|
[ -z $RECOVERYMODE ] && RECOVERYMODE=false
|
||||||
}
|
}
|
||||||
|
|
||||||
run_migrations() { return; }
|
run_migrations() { return; }
|
||||||
@ -225,8 +226,6 @@ app_init() {
|
|||||||
run_migrations
|
run_migrations
|
||||||
SHA1=$(grep_prop SHA1 $MAGISKTMP/config)
|
SHA1=$(grep_prop SHA1 $MAGISKTMP/config)
|
||||||
check_encryption
|
check_encryption
|
||||||
# Make sure RECOVERYMODE has value
|
|
||||||
[ -z $RECOVERYMODE ] && RECOVERYMODE=false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export BOOTMODE=true
|
export BOOTMODE=true
|
||||||
|
Loading…
Reference in New Issue
Block a user