CommonInstaller: log whether install was successful and show where logs are stored

merge-requests/23/head
Christopher Roy Bratusek 6 years ago
parent c4283d2d70
commit 8fc2276a5b

@ -23,6 +23,10 @@
* file list of /system/app and /system/priv-app
* log is created in /sdcard/NanoDroid-SysTest.log
* CommonInstaller
* NanoDroid installation log now contains whether install was successful or not
* Installer now prints a message where it stored the logs
* Patcher package
* drop unlp patch, not required on most ROMs and is suspected to cause issues on some ROMs

@ -2,6 +2,7 @@
VERSION=20.2.99999999
NANODROID_UPGRADE=0
INSTALL_SUCCESS=TRUE
NANODROID_LIST=/data/adb/NanoDroid_FileList
GOOGLE_APPS="AMAPNetworkLocation
@ -197,6 +198,8 @@ error () {
fi
recovery_cleanup
INSTALL_SUCCESS=FALSE
nanodroid_storelogs
exit 1
@ -1234,6 +1237,9 @@ nanodroid_storelogs () {
nanodroid_twrplog="/data/adb/${MODID}_twrp_${curdate}"
echo "\
Installation successful: ${INSTALL_SUCCESS}
### VALUES ###
ZIP=${ZIP}
ZIPDIR=${ZIPDIR}
@ -1281,6 +1287,12 @@ fi
cat /tmp/recovery.log > ${nanodroid_twrplog}
ui_print " "
ui_print " | storing installation logs in /data/adb/"
ui_print " | TWRP log: $(basename ${nanodroid_twrplog})"
ui_print " | NanoDroid log: $(basename ${nanoroid_logfile})"
ui_print " "
}
##########################################################################################

Loading…
Cancel
Save