mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-19 21:25:38 +00:00
CommonAddon: also get rid of some app data, as in CommonInstaller
This commit is contained in:
parent
264e09acd4
commit
f5958def55
22
CommonAddon
22
CommonAddon
@ -43,18 +43,36 @@ MozillaNlpBackend
|
|||||||
NominatimGeocoderBackend
|
NominatimGeocoderBackend
|
||||||
NominatimNlpBackend"
|
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 () {
|
ui_print () {
|
||||||
echo -n -e "ui_print ${1}\n" >> /proc/self/fd/${OUTFD}
|
echo -n -e "ui_print ${1}\n" >> /proc/self/fd/${OUTFD}
|
||||||
echo -n -e "ui_print\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
|
for app in ${GOOGLE_APPS}; do
|
||||||
if [ -f /system/bin/nanodroid-overlay ]; then
|
if [ -f /system/bin/nanodroid-overlay ]; then
|
||||||
/system/bin/nanodroid-overlay --add ${app}
|
/system/bin/nanodroid-overlay --add ${app}
|
||||||
else /system/xbin/nanodroid-overlay --add ${app}
|
else /system/xbin/nanodroid-overlay --add ${app}
|
||||||
fi
|
fi
|
||||||
done
|
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
|
case "${1}" in
|
||||||
@ -110,7 +128,7 @@ case "${1}" in
|
|||||||
rm /tmp/nanodroid_font
|
rm /tmp/nanodroid_font
|
||||||
fi
|
fi
|
||||||
|
|
||||||
backup_nlpconflicts
|
solve_gappsconflicts
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user