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

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

data_extraction_rules.xml37 lines · 1.8 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Unblock Jam. Audited state: two SharedPreferences files, "level_stats" and
4 "daily_stats" (per LevelStatsRepository / AppBackupAgent.prefNames), holding
5 level completion, stars and daily-challenge streaks, plus
6 filesDir/datastore_default.preferences_pb, the shared DataStoreUtils file
7 holding the DailyChallengeStore("unblockjam_daily") streak and the
8 AchievementsManager unlocks. No Room database and nothing written to external
9 storage - original_pack.json and achievements.json are read-only APK assets.
10
11 Back everything up: level progress and streaks are precisely what a user
12 expects to survive a new phone, and the whole payload is a few KB.
13
14 SCOPE: unblockjam 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 = ["level_stats", "daily_stats"] plus
18 datastoreNames = ["datastore_default"], which is the same data this file would
19 have sent. <device-transfer> IS governed here, and these rules become the
20 cloud control 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>