From 58b16205560b6ecf3489780517f279b57b89d891 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 26 Jan 2019 10:52:48 +0100 Subject: [PATCH] novl: fix -a with new app is similar to an existing one --- ChangeLog.md | 5 ++++- Full/system/xbin/nanodroid-overlay | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index acac94e..a6ab5ba 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -7,6 +7,10 @@ * Uninstaller * ensure restored backups (System Mode) have proper permissions +* NanoDroid-Overlay + * when listing non-overriden apps in Magisk Mode, skip NanoDroid's own packages + * fix adding overlays to configuration if a similarly named app already is in the configuration + * Push Messages * GsfProxy needs the same signature as GmsCore in order for Push Messages to fully work * when using NanoDroid's GmsCore a re-signed GsfProxy with the NanoDroid key will be installed @@ -19,7 +23,6 @@ * Scripts * nanodroid-overlay * store backups in System Mode per ROM in /sdcard/nanodroid_backups/${ro.build.flavor}_${ro.build.id} - * when listing non-overriden apps in Magisk Mode, skip NanoDroid's own packages * Uninstaller * improved System Mode uninstallation routine diff --git a/Full/system/xbin/nanodroid-overlay b/Full/system/xbin/nanodroid-overlay index 7bd1a1f..4577a81 100755 --- a/Full/system/xbin/nanodroid-overlay +++ b/Full/system/xbin/nanodroid-overlay @@ -82,7 +82,7 @@ overrides_add_intern () { mv "/system/${sysdir}/${app}" "${SYS_BACKUP_PATH}/${sysdir}/" fi - grep -q "^${app}" "${config}" 2>/dev/null || echo "${app}" >> "${config}" + grep -q "^${app}$" "${config}" 2>/dev/null || echo "${app}" >> "${config}" } overrides_add () {