Add Auto-Backup rules to ignore unneeded files (#1747)

* Add backup rules for database and sharedpref only

* Include sharedprefs in backup
This commit is contained in:
Daniel Shokouhi 2021-10-07 15:22:30 -07:00 committed by GitHub
parent 73c61eacbb
commit 553b614c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -41,6 +41,7 @@
<application
android:name=".HomeAssistantApplication"
android:allowBackup="true"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:banner="@mipmap/ic_banner"
android:label="@string/app_name"

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="database" path="." />
<include domain="sharedpref" path="." />
</full-backup-content>