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

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

data_extraction_rules.xml24 lines · 1.2 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/flashcards-db FlashcardsDatabase (Deck, Card): the user's decks and
6 cards plus their spaced-repetition schedule. User content.
7 file/datastore_default.preferences_pb app settings.
8 sharedpref/secure_prefs keystore-wrapped SQLCipher passphrase.
9
10 Decks and cards are user-authored content worth restoring on a new device, so both
11 channels carry the flashcards database. Cloud backup is gated on device encryption
12 because card text can contain anything. Caches and the keystore-bound passphrase are
13 left out by the allowlist. -->
14<data-extraction-rules>
15 <cloud-backup disableIfNoEncryptionCapabilities="true">
16 <!-- Whole-domain include so the -wal/-shm sidecars travel with the database. -->
17 <include domain="database" path="." />
18 <include domain="file" path="datastore_default.preferences_pb" />
19 </cloud-backup>
20 <device-transfer>
21 <include domain="database" path="." />
22 <include domain="file" path="datastore_default.preferences_pb" />
23 </device-transfer>
24</data-extraction-rules>