2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

CommonInstaller: add android.permission.ACCESS_BACKGROUND_LOCATION to default-permission on SDK 29+

This commit is contained in:
Christopher Roy Bratusek 2020-09-01 21:35:15 +02:00
parent 927f9bc718
commit 3610af71be
2 changed files with 8 additions and 1 deletions

View File

@ -1120,9 +1120,15 @@ install_microg () {
create_privapp_permissions_whitelist GmsCore
nanodroid_install_file etc/permissions/features.xml
nanodroid_install_file etc/default-permissions/microg-permissions.xml
nanodroid_install_file etc/sysconfig/microg-a5k.xml
# android.permission.ACCESS_BACKGROUND_LOCATION only on SDK 29+
if [ "${SDK_VERSION}" -lt 29 ]; then
sed -e '/android.permission.ACCESS_BACKGROUND_LOCATION/d' \
-i "${INSTALLER}/system/etc/default-permissions/microg-permissions.xml"
fi
nanodroid_install_file etc/default-permissions/microg-permissions.xml
else print_info " << without microG"
fi
}

View File

@ -39,6 +39,7 @@
<!-- Location -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="false"/>
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="false"/>
<permission name="android.permission.ACCESS_BACKGROUND_LOCATION" fixed="false"/>
<permission name="org.microg.permission.FORCE_COARSE_LOCATION" fixed="false"/>
<!-- Storage -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"/>