Update scripts to use BusyBox standalone mode

This commit is contained in:
topjohnwu
2020-03-08 22:25:06 -07:00
parent 409cb06ea0
commit db9a4b31f9
5 changed files with 59 additions and 58 deletions

View File

@@ -1,14 +1,14 @@
#MAGISK
##########################################################################################
############################################
#
# Magisk Uninstaller
# by topjohnwu
#
##########################################################################################
############################################
##########################################################################################
############################################
# Preparation
##########################################################################################
############################################
# This path should work in any cases
TMPDIR=/dev/tmp
@@ -33,9 +33,7 @@ fi
setup_flashable
ui_print "************************"
ui_print " Magisk Uninstaller "
ui_print "************************"
print_title "Magisk Uninstaller"
is_mounted /data || mount /data || abort "! Unable to mount partitions"
is_mounted /cache || mount /cache 2>/dev/null
@@ -53,9 +51,9 @@ $DATA_DE || abort "! Cannot access /data, please uninstall with Magisk Manager"
$BOOTMODE || recovery_actions
run_migrations
##########################################################################################
############################################
# Uninstall
##########################################################################################
############################################
get_flags
find_boot_image