Disable backup explicitly

I don't think it is possible to restore
encrypted shared preferences from backup.
This commit is contained in:
Kirill Kamakin
2022-06-12 18:41:55 +02:00
parent 9944948f55
commit 348b7de6cc
3 changed files with 31 additions and 5 deletions

View File

@@ -7,15 +7,16 @@
<application <application
android:name="gq.kirmanak.mealient.App" android:name="gq.kirmanak.mealient.App"
android:allowBackup="true" android:allowBackup="false"
android:fullBackupOnly="true" android:dataExtractionRules="@xml/data_extraction_rules"
android:networkSecurityConfig="@xml/network_security_config" android:fullBackupContent="@xml/full_backup_rules"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true" android:supportsRtl="true"
tools:ignore="UnusedAttribute" android:theme="@style/AppTheme"
android:theme="@style/AppTheme"> tools:targetApi="s">
<activity <activity
android:name=".ui.activity.MainActivity" android:name=".ui.activity.MainActivity"
android:exported="true"> android:exported="true">

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup>
<exclude domain="root" />
<exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</cloud-backup>
<device-transfer>
<exclude domain="root" />
<exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
</device-transfer>
</data-extraction-rules>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<exclude domain="file" />
<exclude domain="database" />
<exclude domain="sharedpref" />
<exclude domain="external" />
<exclude domain="root" />
</full-backup-content>