Skip to content

Commit 4dc38f4

Browse files
committed
Enable backups, if they are encrypted
See: https://github.com/stevesoltys/seedvault/wiki/Known-Issues
1 parent 998b43c commit 4dc38f4

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@
3030

3131
<application
3232
android:name="de.grobox.transportr.TransportrApplication"
33-
android:allowBackup="false"
33+
android:allowBackup="true"
34+
android:fullBackupContent="@xml/backup"
3435
android:hardwareAccelerated="true"
3536
android:icon="@mipmap/ic_launcher"
3637
android:label="@string/app_name"
3738
android:networkSecurityConfig="@xml/network_security_config"
3839
android:roundIcon="@mipmap/ic_launcher_round"
3940
android:supportsRtl="true"
4041
android:theme="@style/AppTheme"
41-
tools:ignore="AllowBackup,GoogleAppIndexingWarning"
42+
tools:ignore="GoogleAppIndexingWarning"
4243
tools:targetApi="n">
4344

4445
<activity

app/src/main/res/xml/backup.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<full-backup-content>
3+
<include
4+
domain="sharedpref"
5+
path="."
6+
requireFlags="clientSideEncryption" />
7+
<include
8+
domain="database"
9+
path="."
10+
requireFlags="clientSideEncryption" />
11+
<!-- we do not include file domain, because there is only the offline map tiles which should be excluded due to size -->
12+
</full-backup-content>

0 commit comments

Comments
 (0)