mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-11-19 21:25:38 +00:00
CommonInstaller: make GApps removal less brutal
This commit is contained in:
parent
9207eca7c9
commit
c3acbd05b0
@ -679,20 +679,6 @@ install_microg () {
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -f /data/system/packages.xml ]; then
|
||||
cp /data/system/packages.xml /tmp/packages.xml
|
||||
|
||||
for app in ${GOOGLE_DATA_DIRTY}; do
|
||||
awk -v RS='</package>' "!/${app}/"'{print $0 RS}' \
|
||||
/tmp/packages.xml > /tmp/_packages.xml
|
||||
|
||||
mv /tmp/_packages.xml /tmp/packages.xml
|
||||
sed -e '$ d' -i /tmp/packages.xml
|
||||
done
|
||||
|
||||
cp /tmp/packages.xml /data/system/packages.xml
|
||||
fi
|
||||
|
||||
if [ -f /data/system/packages.list ]; then
|
||||
for app in ${GOOGLE_DATA_DIRTY}; do
|
||||
sed -e "/${app}/d" -i /data/system/packages.list
|
||||
|
Loading…
Reference in New Issue
Block a user