refactor: disable backup
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
</data-extraction-rules>
|
||||
|
||||
Reference in New Issue
Block a user