Enable backups if client side encryption is enabled

This commit is contained in:
Miguel Almeida
2023-03-01 19:21:35 +00:00
committed by Dennis Guse
parent b4ebad2c3c
commit e275d3e5c0
3 changed files with 22 additions and 1 deletions
+3 -1
View File
@@ -62,7 +62,9 @@ limitations under the License.
<application
android:name=".Startup"
android:allowBackup="false"
android:allowBackup="true"
android:fullBackupContent="@xml/backup_rules_30_lower"
android:dataExtractionRules="@xml/backup_rules_31_higher"
android:hardwareAccelerated="true"
android:hasFragileUserData="false"
android:icon="@drawable/ic_launcher"
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="." requireFlags="clientSideEncryption"/>
<include domain="database" path="." requireFlags="clientSideEncryption"/>
<include domain="external" path="." requireFlags="clientSideEncryption"/>
</full-backup-content>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup disableIfNoEncryptionCapabilities="true">
<include domain="sharedpref" path="."/>
<include domain="database" path="."/>
<include domain="external" path="."/>
</cloud-backup>
<device-transfer>
<include domain="sharedpref" path="."/>
<include domain="database" path="."/>
<include domain="external" path="."/>
</device-transfer>
</data-extraction-rules>