From fca8557e5656a616314011dbb0b81481b4075c2b Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 20 Feb 2018 18:59:32 +0100 Subject: [PATCH] fix storing recovery.log --- Full/nanodroid-functions | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Full/nanodroid-functions b/Full/nanodroid-functions index 56a646a..e516899 100644 --- a/Full/nanodroid-functions +++ b/Full/nanodroid-functions @@ -263,20 +263,22 @@ nanodroid_finalize () { ;; esac - nanodroid_storelogs [ "${MODE}" = "MAGISK" ] && magisk_install_finish rm -rf ${INSTALLER} + ui_print " " + ui_print " Thanks for using NanoDroid " + ui_print " " + + sync + nanodroid_storelogs + if ! ${BOOTMODE} ; then umount -l /system_root 2>/dev/null umount -l /system 2>/dev/null umount -l /vendor 2>/dev/null umount -l /dev/random 2>/dev/null fi - - ui_print " " - ui_print " Thanks for using NanoDroid " - ui_print " " } ########################################################################################## @@ -914,7 +916,6 @@ nanodroid_substitute () { } nanodroid_storelogs () { - ${BOOTMODE} || cp /tmp/recovery.log /data/adb/.recovery_${MODID} echo "\ ### VALUES ### @@ -950,6 +951,7 @@ echo " cat "${cfg_overlay}" >> /data/adb/.nanodroid_${MODID} +${BOOTMODE} || cp /tmp/recovery.log /data/adb/.recovery_${MODID} } ##########################################################################################