refactor: disable backup

This commit is contained in:
2026-06-12 11:38:48 +02:00
parent 23e92ea8db
commit 98bc466edd
2 changed files with 24 additions and 15 deletions
+2 -1
View File
@@ -25,7 +25,8 @@
<application <application
android:name=".GudariWalletApplication" android:name=".GudariWalletApplication"
android:allowBackup="true" android:allowBackup="false"
android:dataExtractionRules="@xml/data_extraction_rules"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
+21 -13
View File
@@ -1,19 +1,27 @@
<?xml version="1.0" encoding="utf-8"?><!-- <?xml version="1.0" encoding="utf-8"?>
Sample data extraction rules file; uncomment and customize as necessary. <!--
See https://developer.android.com/about/versions/12/backup-restore#xml-changes Rules for Android 12+ (API 31+) controlling:
for details. - cloudBackup: Auto Backup to Google Drive
- deviceTransfer: Device-to-device transfers (e.g. phone setup wizard)
Since android:allowBackup="false" was set previously, we disable both.
--> -->
<data-extraction-rules> <data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up. <cloud-backup disableIfNoEncryptionCapabilities="false">
<include .../> <exclude domain="root" />
<exclude .../> <exclude domain="file" />
--> <exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</cloud-backup> </cloud-backup>
<!--
<device-transfer> <device-transfer>
<include .../> <exclude domain="root" />
<exclude .../> <exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</device-transfer> </device-transfer>
-->
</data-extraction-rules> </data-extraction-rules>