Commit 6f74ed6c authored by topjohnwu's avatar topjohnwu

Cleanup manager.sh

parent 71205bc5
......@@ -10,7 +10,7 @@ env_check() {
for file in busybox magiskboot magiskinit util_functions.sh boot_patch.sh; do
[ -f "$MAGISKBIN/$file" ] || return 1
done
if [ "$2" -ge 24302 ]; then
if [ "$2" -ge 25000 ]; then
[ -f "$MAGISKBIN/magiskpolicy" ] || return 1
fi
grep -xqF "MAGISK_VER='$1'" "$MAGISKBIN/util_functions.sh" || return 1
......@@ -206,7 +206,8 @@ get_flags() {
fi
# Preset PATCHVBMETAFLAG to false in the non-root case
PATCHVBMETAFLAG=false
# Do NOT preset RECOVERYMODE here
# Make sure RECOVERYMODE has value
[ -z $RECOVERYMODE ] && RECOVERYMODE=false
}
run_migrations() { return; }
......@@ -225,8 +226,6 @@ app_init() {
run_migrations
SHA1=$(grep_prop SHA1 $MAGISKTMP/config)
check_encryption
# Make sure RECOVERYMODE has value
[ -z $RECOVERYMODE ] && RECOVERYMODE=false
}
export BOOTMODE=true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment