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

Modern-Apps.git / games / pipes / 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 Pipes. Audited state: the "level_stats" and "daily_stats" SharedPreferences
4 files (AppBackupAgent.prefNames) holding per-level completion and daily
5 streaks, the "pipes_progress" file holding unfinished boards (at most 30
6 levels), plus filesDir/datastore_default.preferences_pb, the shared
7 DataStoreUtils file holding the DailyChallengeStore("pipes_daily") streak and
8 the AchievementsManager unlocks. No Room database, nothing written to external
9 storage - every packs/*.json and achievements.json is a read-only APK asset.
10
11 Back everything up; it is a few KB of pure user progress.
12
13 SCOPE: pipes declares android:backupAgent=".platform.AppBackupAgent" and does
14 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 = ["level_stats", "daily_stats", "pipes_progress"] plus
17 datastoreNames = ["datastore_default"], which is the same data this file would
18 have sent. <device-transfer> IS governed here, and these rules become the
19 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>