From b8bb331fc5f80106bc13a9f0be1911771192f1e2 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 27 Jan 2018 09:57:27 +0100 Subject: [PATCH] patcher: remove old addon.d setups when installing new --- patcher/META-INF/com/google/android/update-binary | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/patcher/META-INF/com/google/android/update-binary b/patcher/META-INF/com/google/android/update-binary index 9fbb0e5..ce1d986 100644 --- a/patcher/META-INF/com/google/android/update-binary +++ b/patcher/META-INF/com/google/android/update-binary @@ -345,12 +345,9 @@ install_addond () { mkdir -p /data/adb/nanodroid_patcher - if [ -d /data/nanomod.patcher ]; then - ui_print " " - ui_print " Removing old NanoMod restoration setup" - rm -rf /data/nanomod.patcher - rm -f /system/addon.d/75-nanomodpatcher.sh - fi + [ -d /data/nanomod.patcher ] && rm -rf /data/nanomod.patcher + [ -d /data/adb/nanomod_patcher ] && rm -rf /data/nanomod_patcher + rm -f /system/addon.d/75-nanomodpatcher.sh for file in core_services.jar.dex dexpatcher.dex file.arm file.x86 \ hook_4.1-6.0_services.jar.dex hook_7.0-8.0_services.jar.dex \