Browse Source

1.新版本android备份配置文件

master
wangwanlei 11 months ago
parent
commit
6b573f7c6f

+ 13
- 0
app/src/main/res/xml/backup_rules.xml View File

@@ -0,0 +1,13 @@
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>

+ 19
- 0
app/src/main/res/xml/data_extraction_rules.xml View File

@@ -0,0 +1,19 @@
1
+<?xml version="1.0" encoding="utf-8"?><!--
2
+   Sample data extraction rules file; uncomment and customize as necessary.
3
+   See https://developer.android.com/about/versions/12/backup-restore#xml-changes
4
+   for details.
5
+-->
6
+<data-extraction-rules>
7
+    <cloud-backup>
8
+        <!-- TODO: Use <include> and <exclude> to control what is backed up.
9
+        <include .../>
10
+        <exclude .../>
11
+        -->
12
+    </cloud-backup>
13
+    <!--
14
+    <device-transfer>
15
+        <include .../>
16
+        <exclude .../>
17
+    </device-transfer>
18
+    -->
19
+</data-extraction-rules>

Loading…
Cancel
Save