forked from organicmaps/organicmaps
[android] Support autobackup on Android 12+
See https://developer.android.com/guide/topics/data/autobackup#include-exclude-android-12
This commit is contained in:
parent
cb91b4a364
commit
2df22450fb
2 changed files with 12 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
|||
android:allowBackup="true"
|
||||
android:backupInForeground="true"
|
||||
android:fullBackupContent="@xml/backup_content"
|
||||
android:dataExtractionRules="@xml/backup_content_v31"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/MwmTheme"
|
||||
|
|
11
android/res/xml/backup_content_v31.xml
Normal file
11
android/res/xml/backup_content_v31.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<data-extraction-rules>
|
||||
<cloud-backup>
|
||||
<include domain="file" path="bookmarks/"/>
|
||||
<include domain="file" path="settings.ini"/>
|
||||
</cloud-backup>
|
||||
<device-transfer>
|
||||
<include domain="file" path="bookmarks/"/>
|
||||
<include domain="file" path="settings.ini"/>
|
||||
</device-transfer>
|
||||
</data-extraction-rules>
|
Loading…
Add table
Reference in a new issue