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

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

data_extraction_rules.xml37 lines · 1.7 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 the "solitaire_settings" SharedPreferences file holding
6 the card colour scheme, plus filesDir/datastore_default.preferences_pb, the shared
7 DataStoreUtils file holding the AchievementsManager unlocks. No Room database
8 and nothing written to external storage; achievements.json is a read-only APK
9 asset.
10
11 Back everything up - lifetime stats are the thing a solitaire player would be
12 most annoyed to lose.
13
14 SCOPE: solitaire declares android:backupAgent=".platform.AppBackupAgent" and
15 does NOT set android:fullBackupOnly, so Android uses key/value backup and the
16 <cloud-backup> section below is NOT consulted. Cloud content is exactly
17 AppBackupAgent's prefNames = ["solitaire_stats", "solitaire_settings"] plus
18 datastoreNames = ["datastore_default"], which is the same data this file would have sent.
19 <device-transfer> IS governed here, and these rules become the cloud control
20 too if the backupAgent is ever removed.
21-->
22<data-extraction-rules>
23 <cloud-backup>
24 <include domain="root" path="." />
25 <include domain="file" path="." />
26 <include domain="database" path="." />
27 <include domain="sharedpref" path="." />
28 <include domain="external" path="." />
29 </cloud-backup>
30 <device-transfer>
31 <include domain="root" path="." />
32 <include domain="file" path="." />
33 <include domain="database" path="." />
34 <include domain="sharedpref" path="." />
35 <include domain="external" path="." />
36 </device-transfer>
37</data-extraction-rules>