Skip to content

Commit

Permalink
Add backup schema in new format for Android 12
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiagr committed Jun 2, 2022
1 parent cf65c5e commit 423bdab
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions WordPress/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<application
android:allowBackup="true"
android:fullBackupContent="@xml/legacy_backup_scheme"
android:dataExtractionRules="@xml/backup_scheme"
android:hardwareAccelerated="true"
android:icon="@mipmap/app_icon"
android:label="@string/app_name"
Expand Down
31 changes: 31 additions & 0 deletions WordPress/src/main/res/xml/backup_scheme.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup>
<include
domain="database"
path="wordpress" />
<include
domain="database"
path="persistentedittext.db" />
<include
domain="sharedpref"
path="self_signed_certs_truststore.bks" />
<include
domain="sharedpref"
path="org.wordpress.android_preferences.xml" />
</cloud-backup>
<device-transfer>
<include
domain="database"
path="wordpress" />
<include
domain="database"
path="persistentedittext.db" />
<include
domain="sharedpref"
path="self_signed_certs_truststore.bks" />
<include
domain="sharedpref"
path="org.wordpress.android_preferences.xml" />
</device-transfer>
</data-extraction-rules>

0 comments on commit 423bdab

Please sign in to comment.