Skip to content

Commit

Permalink
Enable backups, if they are encrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Sep 2, 2020
1 parent 998b43c commit 4dc38f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@

<application
android:name="de.grobox.transportr.TransportrApplication"
android:allowBackup="false"
android:allowBackup="true"
android:fullBackupContent="@xml/backup"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning"
tools:ignore="GoogleAppIndexingWarning"
tools:targetApi="n">

<activity
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/xml/backup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include
domain="sharedpref"
path="."
requireFlags="clientSideEncryption" />
<include
domain="database"
path="."
requireFlags="clientSideEncryption" />
<!-- we do not include file domain, because there is only the offline map tiles which should be excluded due to size -->
</full-backup-content>

0 comments on commit 4dc38f4

Please sign in to comment.