Skip to content

Commit 161314d

Browse files
committed
Enabling backup when the ClientSideEncryption is enabled
1 parent 4ba8794 commit 161314d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ui/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737

3838
<application
3939
android:name=".Application"
40-
android:allowBackup="false"
40+
android:allowBackup="true"
41+
android:fullBackupContent="@xml/backup"
4142
android:banner="@mipmap/banner"
4243
android:enableOnBackInvokedCallback="true"
4344
android:icon="@mipmap/ic_launcher"

ui/src/main/res/xml/backup.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<full-backup-content>
3+
<include domain="sharedpref" path="." requireFlags="clientSideEncryption" />
4+
<include domain="database" path="." requireFlags="clientSideEncryption" />
5+
<include domain="file" path="." requireFlags="clientSideEncryption" />
6+
</full-backup-content>

0 commit comments

Comments
 (0)