Skip to content

Commit

Permalink
Enabling backup when the ClientSideEncryption is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsoft committed Sep 16, 2024
1 parent 4ba8794 commit 161314d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@

<application
android:name=".Application"
android:allowBackup="false"
android:allowBackup="true"
android:fullBackupContent="@xml/backup"
android:banner="@mipmap/banner"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher"
Expand Down
6 changes: 6 additions & 0 deletions ui/src/main/res/xml/backup.xml
Original file line number Diff line number Diff line change
@@ -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="file" path="." requireFlags="clientSideEncryption" />
</full-backup-content>

0 comments on commit 161314d

Please sign in to comment.