2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

CommonInstaller: update aswell

This commit is contained in:
Christopher Roy Bratusek 2018-09-08 10:41:48 +02:00
parent 3eec2c6a06
commit 803b8d1d66
2 changed files with 2 additions and 19 deletions

View File

@ -10,7 +10,7 @@
### General Changes
* Uninstaller
* CommonInstaller, Uninstaller
* update for CommonPatcher changes
## 18.0.2.20180908

View File

@ -558,24 +558,7 @@ magisk_install_preinst () {
fi
if [ -f ${RESTORE_PATH}/system/framework/services.jar ]; then
if [ -f /data/adb/.nanodroid-patcher -o -f /data/adb/NanoDroid_Patched ]; then
ui_print " << backing up patched services.jar"
cp ${RESTORE_PATH}/system/framework/services.jar \
${TMPDIR}/services.jar
else ui_print " "
ui_print " ++ /data/adb/NanoDroid_Patched is missing, assuming"
ui_print " ++ ROM was updated, please re-run NanoDroid-Patcher"
ui_print " "
rm -f ${RESTORE_PATH}/system/framework/services.jar
fi
elif [ -f /data/adb/.nanodroid-patcher -o -f /data/adb/NanoDroid_Patched ]; then
ui_print " "
ui_print " ++ /data/adb/NanoDroid_Patched exists, but"
ui_print " ++ ${RESTORE_PATH}/system/framework/services.jar"
ui_print " ++ doesn't, assuming Magisk was uninstalled"
ui_print " ++ re-run NanoDroid-Patcher if required"
ui_print " "
rm -f /data/adb/.nanodroid-patcher /data/adb/NanoDroid_Patched
cp ${RESTORE_PATH}/system/framework/services.jar ${TMPDIR}/services.jar
fi
${BOOTMODE} || rm -rf "${MODPATH}"