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

Modern-Apps.git / clock / src / main / res / xml / data_extraction_rules.xml

data_extraction_rules.xml56 lines · 2.8 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Clock. Audited state:
4 * The Room DB (ClockDatabase: Timer, Alarm) is opened at every call site as
5 buildDatabase<ClockDatabase>(useDeviceProtectedStorage = true) — with no
6 dbName argument, so it takes the library default and the file is literally
7 named "passwords-db". Because it uses device-protected storage it lives in
8 the device_database domain, which the backup framework does not include by
9 default, so alarms and timers are already out of scope for both cloud
10 backup and D2D. Nothing to exclude there, and nothing to fix here.
11 * secure_prefs — SQLCipher passphrase; SqlCipher.kt migrates it into
12 device-protected storage on first run, but a credential-protected copy can
13 linger from before that migration.
14 * cities.bin is a read-only APK asset (timezone city list).
15
16 The one thing worth excluding is the stale credential-protected copy of
17 "passwords-db". buildDatabase() calls moveDatabaseFrom() to relocate an older
18 install's DB into device-protected storage, but until that runs — or if the
19 move ever fails — an encrypted leftover sits in databases/. Restoring it is
20 useless: it is SQLCipher ciphertext under a passphrase wrapped by a
21 non-exportable AndroidKeystore key, so the new device can never open it, and
22 a stale file there would be picked up by the next moveDatabaseFrom() and
23 shadow the real one.
24
25 Alarms and timers are also device-scheduled state — AlarmManager registrations
26 do not survive a migration regardless of what the file layer does — so there
27 is no user value being given up here.
28
29 Everything else backs up normally.
30-->
31<data-extraction-rules>
32 <cloud-backup>
33 <include domain="root" path="." />
34 <include domain="file" path="." />
35 <include domain="database" path="." />
36 <exclude domain="database" path="passwords-db" />
37 <exclude domain="database" path="passwords-db-wal" />
38 <exclude domain="database" path="passwords-db-shm" />
39 <exclude domain="database" path="passwords-db-journal" />
40 <include domain="sharedpref" path="." />
41 <exclude domain="sharedpref" path="secure_prefs.xml" />
42 <include domain="external" path="." />
43 </cloud-backup>
44 <device-transfer>
45 <include domain="root" path="." />
46 <include domain="file" path="." />
47 <include domain="database" path="." />
48 <exclude domain="database" path="passwords-db" />
49 <exclude domain="database" path="passwords-db-wal" />
50 <exclude domain="database" path="passwords-db-shm" />
51 <exclude domain="database" path="passwords-db-journal" />
52 <include domain="sharedpref" path="." />
53 <exclude domain="sharedpref" path="secure_prefs.xml" />
54 <include domain="external" path="." />
55 </device-transfer>
56</data-extraction-rules>