Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / games / minesweeper / src / main / res / xml / data_extraction_rules.xml

data_extraction_rules.xml34 lines · 1.7 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Minesweeper. Audited state: the "minesweeper_stats" SharedPreferences file
4 (AppBackupAgent.prefNames) holding per size-and-difficulty played/won counts,
5 win streaks and best times, plus filesDir/datastore_default.preferences_pb,
6 the shared DataStoreUtils file holding the AchievementsManager unlocks. No
7 Room database, no in-progress board (the field lives only in the ViewModel),
8 nothing written to external storage - achievements.json is a read-only APK
9 asset and every field is generated on device. Back everything up; it is a few
10 KB of pure user progress.
11 SCOPE: minesweeper declares android:backupAgent=".platform.AppBackupAgent" and
12 does NOT set android:fullBackupOnly, so Android uses key/value backup and the
13 <cloud-backup> section below is NOT consulted. Cloud content is exactly
14 AppBackupAgent's prefNames = ["minesweeper_stats"] plus datastoreNames =
15 ["datastore_default"], which is the same data this file would have sent.
16 <device-transfer> IS governed here, and these rules become the cloud control
17 too if the backupAgent is ever removed.
18-->
19<data-extraction-rules>
20 <cloud-backup>
21 <include domain="root" path="." />
22 <include domain="file" path="." />
23 <include domain="database" path="." />
24 <include domain="sharedpref" path="." />
25 <include domain="external" path="." />
26 </cloud-backup>
27 <device-transfer>
28 <include domain="root" path="." />
29 <include domain="file" path="." />
30 <include domain="database" path="." />
31 <include domain="sharedpref" path="." />
32 <include domain="external" path="." />
33 </device-transfer>
34</data-extraction-rules>