mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
CommonInstaller: move installation log destinations
This commit is contained in:
parent
776a7623f9
commit
b934db22e3
@ -19,6 +19,11 @@
|
|||||||
* improve GApps uninstallation routine
|
* improve GApps uninstallation routine
|
||||||
* CommonInstaller, CommonPatcher, Uninstaller
|
* CommonInstaller, CommonPatcher, Uninstaller
|
||||||
* improved A/B device support code taken from Magisk 16.6
|
* improved A/B device support code taken from Magisk 16.6
|
||||||
|
* CommonInstaller
|
||||||
|
* move installation log destinations
|
||||||
|
* /data/adb/.nanodroid_MODID >> /data/adb/MODID_log_DATE
|
||||||
|
* /data/adb/.recovery_MODID >> /data/adb/MODID_twrp_DATE
|
||||||
|
* where DATE has %Y%m%D_%H.%M.%S format (eg: 20180709_20.34.14)
|
||||||
|
|
||||||
### Updates
|
### Updates
|
||||||
|
|
||||||
|
@ -1072,6 +1072,10 @@ nanodroid_substitute () {
|
|||||||
|
|
||||||
nanodroid_storelogs () {
|
nanodroid_storelogs () {
|
||||||
|
|
||||||
|
curdate=$(date +%Y%m%d_%H.%M.%S)
|
||||||
|
nanodroid_logfile="/data/adb/${MODID}_log_${curdate}"
|
||||||
|
nanodroid_twrplog="/data/adb/${MODID}_twrp_${curdate}"
|
||||||
|
|
||||||
echo "\
|
echo "\
|
||||||
### VALUES ###
|
### VALUES ###
|
||||||
ZIP=${ZIP}
|
ZIP=${ZIP}
|
||||||
@ -1094,17 +1098,17 @@ RESTORE_PATH=${RESTORE_PATH}
|
|||||||
NANODROID_UPGRADE=${NANODROID_UPGRADE}
|
NANODROID_UPGRADE=${NANODROID_UPGRADE}
|
||||||
|
|
||||||
### SETUP ###
|
### SETUP ###
|
||||||
" > /data/adb/.nanodroid_${MODID}
|
" > ${nanodroid_logfile}
|
||||||
|
|
||||||
cat "${cfg_setup}" >> /data/adb/.nanodroid_${MODID}
|
cat "${cfg_setup}" >> ${nanodroid_logfile}
|
||||||
|
|
||||||
if [ ! -z "${cfg_apps}" ]; then
|
if [ ! -z "${cfg_apps}" ]; then
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
### APPS ###
|
### APPS ###
|
||||||
" >> /data/adb/.nanodroid_${MODID}
|
" >> ${nanodroid_logfile}
|
||||||
|
|
||||||
cat "${cfg_apps}" >> /data/adb/.nanodroid_${MODID}
|
cat "${cfg_apps}" >> ${nanodroid_logfile}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1112,13 +1116,14 @@ if [ ! -z "${cfg_overlay}" ]; then
|
|||||||
|
|
||||||
echo "
|
echo "
|
||||||
### OVERLAY ###
|
### OVERLAY ###
|
||||||
" >> /data/adb/.nanodroid_${MODID}
|
" >> ${nanodroid_logfile}
|
||||||
|
|
||||||
cat "${cfg_overlay}" >> /data/adb/.nanodroid_${MODID}
|
cat "${cfg_overlay}" >> ${nanodroid_logfile}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${BOOTMODE} || cat /tmp/recovery.log > /data/adb/.recovery_${MODID}
|
${BOOTMODE} || cat /tmp/recovery.log > ${nanodroid_twrplog}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user