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
android:name=".GudariWalletApplication"
android:allowBackup="true"
android:allowBackup="false"
android:dataExtractionRules="@xml/data_extraction_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
+21 -13
View File
@@ -1,19 +1,27 @@
<?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
for details.
<?xml version="1.0" encoding="utf-8"?>
<!--
Rules for Android 12+ (API 31+) controlling:
- 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>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
<cloud-backup disableIfNoEncryptionCapabilities="false">
<exclude domain="root" />
<exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
<exclude domain="root" />
<exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</device-transfer>
-->
</data-extraction-rules>