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

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

data_extraction_rules.xml36 lines · 1.7 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Chess. Audited state: everything the app persists lives in
4 filesDir/datastore_default.preferences_pb (DataStoreUtils) — Learn-mode stars,
5 achievements and game settings. No Room database, no files written to filesDir
6 or external storage; puzzles.dat / learn.json / achievements.json are read-only
7 APK assets. Stockfish's NNUE is read straight out of the APK.
8
9 So: back everything up. Losing Learn progress on a phone migration is exactly
10 the outcome these rules exist to prevent. Nothing here is large or personal
11 enough to warrant an exclusion, and the platform already drops cacheDir and
12 code_cache on its own.
13
14 SCOPE: chess declares android:backupAgent=".util.AppBackupAgent" and does NOT
15 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 datastoreNames = ["datastore_default"], which is the same
18 data this file would have sent. <device-transfer> IS governed here, and these
19 rules become the cloud control 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>