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

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

data_extraction_rules.xml28 lines · 1.5 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Overrides the permissive default in the shared :library module.
3
4 Storage audited:
5 database/notes-db NoteDatabase (Note): the user's note content. Also the
6 legacy passwords-db, deleted after migration in MainActivity.
7 file/note_images images embedded in notes (NoteImageStore). User content.
8 file/datastore_default.preferences_pb app settings.
9 cache/shared_notes markdown export scratch; Android never backs up cacheDir.
10 sharedpref/secure_prefs keystore-wrapped SQLCipher passphrase.
11
12 Notes are user-authored content worth restoring on a new device, so both channels
13 carry the notes database and its images. Cloud backup is gated on device encryption
14 because note text can contain anything. Caches and the keystore-bound passphrase are
15 left out by the allowlist. -->
16<data-extraction-rules>
17 <cloud-backup disableIfNoEncryptionCapabilities="true">
18 <!-- Whole-domain include so the -wal/-shm sidecars travel with the database. -->
19 <include domain="database" path="." />
20 <include domain="file" path="note_images" />
21 <include domain="file" path="datastore_default.preferences_pb" />
22 </cloud-backup>
23 <device-transfer>
24 <include domain="database" path="." />
25 <include domain="file" path="note_images" />
26 <include domain="file" path="datastore_default.preferences_pb" />
27 </device-transfer>
28</data-extraction-rules>