From 4dd4173e45264b359e2f68a97cc6829115b211f8 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Wed, 28 Mar 2018 20:07:24 +0200 Subject: [PATCH] CommonInstaller: fixup magisk.img handling upon installation error --- CommonInstaller | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CommonInstaller b/CommonInstaller index 85e5166..5d7fed8 100644 --- a/CommonInstaller +++ b/CommonInstaller @@ -176,7 +176,8 @@ error () { if [ "${MODE}" = "MAGISK" ]; then rm -rf "${MODPATH}" - magisk_install_cleanup + unmount_magisk_img + ${BOOTMODE} || recovery_cleanup fi nanodroid_storelogs