uninstaller: consistency improvements

since there's no more "Magisk Manager"
This commit is contained in:
Alexandru Scurtu 2021-03-09 13:05:47 +02:00 committed by GitHub
parent 0601fa3b3d
commit 48bde7375f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,10 +36,10 @@ else
fi fi
print_title "Magisk $PRETTY_VER Uninstaller" print_title "Magisk $PRETTY_VER Uninstaller"
is_mounted /data || mount /data || abort "! Unable to mount /data, please uninstall with Magisk Manager" is_mounted /data || mount /data || abort "! Unable to mount /data, please uninstall with the Magisk app"
mount_partitions mount_partitions
check_data check_data
$DATA_DE || abort "! Cannot access /data, please uninstall with Magisk Manager" $DATA_DE || abort "! Cannot access /data, please uninstall with the Magisk app"
if ! $BOOTMODE; then if ! $BOOTMODE; then
# Mounting stuffs in recovery (best effort) # Mounting stuffs in recovery (best effort)
mount_name metadata /metadata mount_name metadata /metadata
@ -162,13 +162,13 @@ cd /
if $BOOTMODE; then if $BOOTMODE; then
ui_print "********************************************" ui_print "********************************************"
ui_print " Magisk Manager will uninstall itself, and" ui_print " The Magisk app will uninstall itself, and"
ui_print " the device will reboot after a few seconds" ui_print " the device will reboot after a few seconds"
ui_print "********************************************" ui_print "********************************************"
(sleep 8; /system/bin/reboot)& (sleep 8; /system/bin/reboot)&
else else
ui_print "********************************************" ui_print "********************************************"
ui_print " Magisk Manager will not be uninstalled" ui_print " The Magisk app will not be uninstalled"
ui_print " Please uninstall it manually after reboot" ui_print " Please uninstall it manually after reboot"
ui_print "********************************************" ui_print "********************************************"
recovery_cleanup recovery_cleanup