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

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

data_extraction_rules.xml35 lines · 1.6 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Logic Gate. Audited state: the "logicgate_stats" SharedPreferences file
4 (ProgressRepository) plus filesDir/datastore_default.preferences_pb, which is
5 where the user's saved circuits live (under the logicgate_circuits_v1 key —
6 see the note in AppBackupAgent). No Room database, nothing on external
7 storage; achievements.json is a read-only APK asset.
8
9 Back everything up. Saved circuits are user-authored content, so dropping the
10 file domain here would destroy real work.
11
12 SCOPE: logicgate declares android:backupAgent=".util.AppBackupAgent" and does
13 NOT set android:fullBackupOnly, so Android uses key/value backup and the
14 <cloud-backup> section below is NOT consulted. Cloud content is exactly
15 AppBackupAgent's prefNames = ["logicgate_stats"] plus datastoreNames =
16 ["datastore_default"] — so the saved circuits do reach the cloud, same as this
17 file intends. <device-transfer> IS governed here, and these rules become the
18 cloud control too if the backupAgent is ever removed.
19-->
20<data-extraction-rules>
21 <cloud-backup>
22 <include domain="root" path="." />
23 <include domain="file" path="." />
24 <include domain="database" path="." />
25 <include domain="sharedpref" path="." />
26 <include domain="external" path="." />
27 </cloud-backup>
28 <device-transfer>
29 <include domain="root" path="." />
30 <include domain="file" path="." />
31 <include domain="database" path="." />
32 <include domain="sharedpref" path="." />
33 <include domain="external" path="." />
34 </device-transfer>
35</data-extraction-rules>