From 6ff44b34aba8de88321601dcec5ead996a27ed3b Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 10 Apr 2018 20:31:28 +0200 Subject: [PATCH] CommonInstaller: further improve Uninstaller/Addon.d information --- CommonInstaller | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CommonInstaller b/CommonInstaller index 1f57dd3..88c60b3 100644 --- a/CommonInstaller +++ b/CommonInstaller @@ -310,8 +310,14 @@ unpack_zip () { } nanodroid_finalize () { - [ "${MODE}" = "MAGISK" ] && magisk_install_finish - [ "${MODE}" = "SYSTEM" ] && install_addond + if [ "${MODE}" = "MAGISK" ]; then + magisk_install_finish + else + install_addond + + sort /data/adb/.nanodroid-list | uniq > /tmp/nanodroid-list + mv /tmp/nanodroid-list /data/adb/.nanodroid-list + fi rm -rf ${INSTALLER}