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

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

data_extraction_rules.xml36 lines · 1.8 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Sudoku. Audited state: the "sudoku_stats" SharedPreferences file
4 (AppBackupAgent.prefNames) holding per size-and-difficulty played/won counts,
5 win streaks and best times, plus filesDir/datastore/settings.preferences_pb
6 holding the answer-mode and highlight-mistakes settings, plus
7 filesDir/datastore_default.preferences_pb,
8 the shared DataStoreUtils file holding the AchievementsManager unlocks. No
9 Room database, no in-progress board (the puzzle lives only in the ViewModel),
10 nothing written to external storage - achievements.json is a read-only APK
11 asset and every puzzle is generated on device. Back everything up; it is a
12 few KB of pure user progress.
13 SCOPE: sudoku 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 = ["sudoku_stats"] plus datastoreNames =
17 ["settings", "datastore_default"], which is the same data this file would have sent.
18 <device-transfer> IS governed here, and these rules become the cloud control
19 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>