2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-02 03:40:13 +00:00

fix storing recovery.log

This commit is contained in:
Christopher Roy Bratusek 2018-02-20 18:59:32 +01:00
parent f7369af0f9
commit fca8557e56

View File

@ -263,20 +263,22 @@ nanodroid_finalize () {
;; ;;
esac esac
nanodroid_storelogs
[ "${MODE}" = "MAGISK" ] && magisk_install_finish [ "${MODE}" = "MAGISK" ] && magisk_install_finish
rm -rf ${INSTALLER} rm -rf ${INSTALLER}
ui_print " "
ui_print " Thanks for using NanoDroid "
ui_print " "
sync
nanodroid_storelogs
if ! ${BOOTMODE} ; then if ! ${BOOTMODE} ; then
umount -l /system_root 2>/dev/null umount -l /system_root 2>/dev/null
umount -l /system 2>/dev/null umount -l /system 2>/dev/null
umount -l /vendor 2>/dev/null umount -l /vendor 2>/dev/null
umount -l /dev/random 2>/dev/null umount -l /dev/random 2>/dev/null
fi fi
ui_print " "
ui_print " Thanks for using NanoDroid "
ui_print " "
} }
########################################################################################## ##########################################################################################
@ -914,7 +916,6 @@ nanodroid_substitute () {
} }
nanodroid_storelogs () { nanodroid_storelogs () {
${BOOTMODE} || cp /tmp/recovery.log /data/adb/.recovery_${MODID}
echo "\ echo "\
### VALUES ### ### VALUES ###
@ -950,6 +951,7 @@ echo "
cat "${cfg_overlay}" >> /data/adb/.nanodroid_${MODID} cat "${cfg_overlay}" >> /data/adb/.nanodroid_${MODID}
${BOOTMODE} || cp /tmp/recovery.log /data/adb/.recovery_${MODID}
} }
########################################################################################## ##########################################################################################