mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Exclude all our files from backup
Even though we don't allow backup at all, Android seems to go into the direction of overriding this. For now only for device-to-device backups, even though we could not verify this.
This commit is contained in:
18
briar-android/src/main/res/xml/backup_rules.xml
Normal file
18
briar-android/src/main/res/xml/backup_rules.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<full-backup-content>
|
||||
<!-- docs: https://developer.android.com/guide/topics/data/autobackup#XMLSyntax -->
|
||||
<exclude
|
||||
domain="root"
|
||||
path="." />
|
||||
<!-- the previous entry should exclude things recursively, but we add more just to be sure -->
|
||||
<exclude
|
||||
domain="root"
|
||||
path="app_db" />
|
||||
<exclude
|
||||
domain="root"
|
||||
path="app_key" />
|
||||
<!-- we don't use domain=file (getFilesDir()), but ApplicationInfo#dataDir -->
|
||||
<exclude
|
||||
domain="sharedpref"
|
||||
path="." />
|
||||
</full-backup-content>
|
||||
Reference in New Issue
Block a user