diff options
author | Torsten Grote <t@grobox.de> | 2022-09-13 13:52:26 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2022-09-13 13:52:26 -0300 |
commit | e91eeba93c0e6eaf444dd3d9664c1c6d4476771b (patch) | |
tree | cfe1808dbf99d5e2a6eecb6f45ce2b73df9ea588 | |
parent | e350d497abe560aeeef88081ae93d73135ece00f (diff) | |
download | taler-android-e91eeba93c0e6eaf444dd3d9664c1c6d4476771b.tar.gz taler-android-e91eeba93c0e6eaf444dd3d9664c1c6d4476771b.tar.bz2 taler-android-e91eeba93c0e6eaf444dd3d9664c1c6d4476771b.zip |
[cashier] exclude encrypted settings from backup
otherwise the app crashes when it can't decrypt
-rw-r--r-- | cashier/src/main/AndroidManifest.xml | 1 | ||||
-rw-r--r-- | cashier/src/main/res/xml/backup_descriptor.xml | 3 | ||||
-rw-r--r-- | cashier/src/main/res/xml/data_extraction_rules.xml | 6 |
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> |