Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 7aca137

Browse files
committed
Improve disable backup
1 parent 5e8334d commit 7aca137

2 files changed

Lines changed: 19 additions & 14 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
<application
1414
android:allowBackup="false"
15-
android:fullBackupContent="@xml/backup_rules"
15+
android:fullBackupContent="false"
16+
android:dataExtractionRules="@xml/backup_rules"
1617
android:hardwareAccelerated="true"
1718
android:icon="@mipmap/ic_launcher"
1819
android:label="@string/application.name"
Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
<?xml version="1.0" encoding="utf-8"?><!--
2-
Sample backup rules file; uncomment and customize as necessary.
3-
See https://developer.android.com/guide/topics/data/autobackup
4-
for details.
5-
Note: This file is ignored for devices older that API 31
6-
See https://developer.android.com/about/versions/12/backup-restore
7-
-->
8-
<full-backup-content>
9-
<!--
10-
<include domain="sharedpref" path="."/>
11-
<exclude domain="sharedpref" path="device.xml"/>
12-
-->
13-
</full-backup-content>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data-extraction-rules>
3+
<cloud-backup>
4+
<exclude domain="root" />
5+
<exclude domain="file" />
6+
<exclude domain="database" />
7+
<exclude domain="sharedpref" />
8+
<exclude domain="external" />
9+
</cloud-backup>
10+
<device-transfer>
11+
<exclude domain="root" />
12+
<exclude domain="file" />
13+
<exclude domain="database" />
14+
<exclude domain="sharedpref" />
15+
<exclude domain="external" />
16+
</device-transfer>
17+
</data-extraction-rules>

0 commit comments

Comments
 (0)