Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / games / pipes / 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 | Pipes. Audited state: the "level_stats" and "daily_stats" SharedPreferences |
| 4 | files (AppBackupAgent.prefNames) holding per-level completion and daily |
| 5 | streaks, plus filesDir/datastore_default.preferences_pb, the shared |
| 6 | DataStoreUtils file holding the DailyChallengeStore("pipes_daily") streak and |
| 7 | the AchievementsManager unlocks. No Room database, nothing written to external |
| 8 | storage - every packs/*.json and achievements.json is a read-only APK asset. |
| 9 | |
| 10 | Back everything up; it is a few KB of pure user progress. |
| 11 | |
| 12 | SCOPE: pipes declares android:backupAgent=".platform.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 = ["level_stats", "daily_stats"] plus |
| 16 | datastoreNames = ["datastore_default"], which is the same data this file would |
| 17 | have sent. <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> |