2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-02 03:40:13 +00:00

improve GApps removal mechanism

This commit is contained in:
Christopher Roy Bratusek 2018-07-30 20:32:54 +02:00
parent 25ff9d082e
commit c975dcb97b
2 changed files with 11 additions and 6 deletions

View File

@ -595,9 +595,11 @@ install_microg () {
rm -rf /data/user_de/*/${app} rm -rf /data/user_de/*/${app}
rm -rf /data/app/${app}-* rm -rf /data/app/${app}-*
if ! grep -q 'com.google.android.gms' /data/system/users/*/runtime-permissions.xml; then for file in /data/system/users/*/runtime-permissions.xml; do
rm -f /data/system/users/*/runtime-permissions.xml if grep -q "${app}" "${file}"; then
rm -f "${file}"
fi fi
done
fi fi
case ${nanodroid_nlpbackend} in case ${nanodroid_nlpbackend} in
@ -619,9 +621,6 @@ install_microg () {
nanodroid_install_file etc/default-permissions/microg-permissions.xml nanodroid_install_file etc/default-permissions/microg-permissions.xml
nanodroid_install_file etc/sysconfig/microg-a5k.xml nanodroid_install_file etc/sysconfig/microg-a5k.xml
if ! grep -q 'com.google.android.gms' /data/system/users/*/runtime-permissions.xml; then
rm /data/system/users/*/runtime-permissions.xml
fi
else ui_print " << without microG" else ui_print " << without microG"
fi fi
} }

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.android.vending">
<permission name="android.permission.MANAGE_USERS"/>
</privapp-permissions>
</permissions>