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

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

data_extraction_rules.xml36 lines · 1.6 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Solitaire. Audited state: the "solitaire_stats" SharedPreferences file
4 (SolitaireStatsRepository / AppBackupAgent.prefNames) holding win counts, best
5 times and streaks, plus filesDir/datastore_default.preferences_pb, the shared
6 DataStoreUtils file holding the AchievementsManager unlocks. No Room database
7 and nothing written to external storage; achievements.json is a read-only APK
8 asset.
9
10 Back everything up - lifetime stats are the thing a solitaire player would be
11 most annoyed to lose.
12
13 SCOPE: solitaire declares android:backupAgent=".platform.AppBackupAgent" and
14 does NOT set android:fullBackupOnly, so Android uses key/value backup and the
15 <cloud-backup> section below is NOT consulted. Cloud content is exactly
16 AppBackupAgent's prefNames = ["solitaire_stats"] plus datastoreNames =
17 ["datastore_default"], which is the same data this file would have sent.
18 <device-transfer> IS governed here, and these rules become the cloud control
19 too if the backupAgent is ever removed.
20-->
21<data-extraction-rules>
22 <cloud-backup>
23 <include domain="root" path="." />
24 <include domain="file" path="." />
25 <include domain="database" path="." />
26 <include domain="sharedpref" path="." />
27 <include domain="external" path="." />
28 </cloud-backup>
29 <device-transfer>
30 <include domain="root" path="." />
31 <include domain="file" path="." />
32 <include domain="database" path="." />
33 <include domain="sharedpref" path="." />
34 <include domain="external" path="." />
35 </device-transfer>
36</data-extraction-rules>