aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cashier/src/main/AndroidManifest.xml1
-rw-r--r--cashier/src/main/res/xml/backup_descriptor.xml3
-rw-r--r--cashier/src/main/res/xml/data_extraction_rules.xml6
3 files changed, 9 insertions, 1 deletions
diff --git a/cashier/src/main/AndroidManifest.xml b/cashier/src/main/AndroidManifest.xml
index dec5940..398e545 100644
--- a/cashier/src/main/AndroidManifest.xml
+++ b/cashier/src/main/AndroidManifest.xml
@@ -9,6 +9,7 @@
<application
android:allowBackup="true"
+ android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_descriptor"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
diff --git a/cashier/src/main/res/xml/backup_descriptor.xml b/cashier/src/main/res/xml/backup_descriptor.xml
index a298494..c5d3bc7 100644
--- a/cashier/src/main/res/xml/backup_descriptor.xml
+++ b/cashier/src/main/res/xml/backup_descriptor.xml
@@ -15,5 +15,6 @@
-->
<full-backup-content>
-
+ <!-- will not be able to decrypt this, causing crash -->
+ <exclude domain="sharedpref" path="secret_settings.xml"/>
</full-backup-content>
diff --git a/cashier/src/main/res/xml/data_extraction_rules.xml b/cashier/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..de53be5
--- /dev/null
+++ b/cashier/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<data-extraction-rules>
+ <cloud-backup>
+ <exclude domain="sharedpref" path="secret_settings.xml"/>
+ </cloud-backup>
+</data-extraction-rules>