From f5958def5557ab53da3e9a159b9c2ce87b02d1a3 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 10 Aug 2018 19:23:26 +0200 Subject: [PATCH] CommonAddon: also get rid of some app data, as in CommonInstaller --- CommonAddon | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/CommonAddon b/CommonAddon index 7c470d1..61742ac 100644 --- a/CommonAddon +++ b/CommonAddon @@ -43,18 +43,36 @@ MozillaNlpBackend NominatimGeocoderBackend NominatimNlpBackend" +GOOGLE_DATA="com.mgoogle.android.gms +com.google.android.feedback +com.google.android.gsf.login +com.google.android.youtube +com.qualcomm.location +com.amap.android.location +com.baidu.location +com.google.android.location +org.microg.nlp +org.microg.unifiednlp" + ui_print () { echo -n -e "ui_print ${1}\n" >> /proc/self/fd/${OUTFD} echo -n -e "ui_print\n" >> /proc/self/fd/${OUTFD} } -backup_nlpconflicts () { +solve_gappsconflicts () { for app in ${GOOGLE_APPS}; do if [ -f /system/bin/nanodroid-overlay ]; then /system/bin/nanodroid-overlay --add ${app} else /system/xbin/nanodroid-overlay --add ${app} fi done + + for app in ${GOOGLE_DATA}; do + rm -rf /data/data/${app} + rm -rf /data/user/*/${app} + rm -rf /data/user_de/*/${app} + rm -rf /data/app/${app}-* + done } case "${1}" in @@ -110,7 +128,7 @@ case "${1}" in rm /tmp/nanodroid_font fi - backup_nlpconflicts + solve_gappsconflicts ;; esac