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:
parent
927f9bc718
commit
3610af71be
@ -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
|
||||
}
|
||||
|
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user