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

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

data_extraction_rules.xml38 lines · 1.8 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Keyboard. Audited state: settings persist through DataStoreUtils into
4 filesDir/datastore_default.preferences_pb — haptics, sound, auto-capitalise,
5 double-space-period, suggestions, autocorrect, number row, key height, the
6 active layout (KeyboardSettings.Keys) and a clipboard-wipe counter.
7
8 Checked specifically for a learned-words / user dictionary, since an IME that
9 records what the user types would be sensitive regardless of this app's
10 general risk level. There is none. Dictionary.load() and
11 PinyinDictionary.load() read fixed APK assets (dict/words_en.txt,
12 dict/bopomofo.txt, emoji.txt) and are never written back.
13
14 Clipboard history lives in the app cache (cacheDir/clips/clips.json plus cached
15 image files), never in DataStore, and cache/ is never backed up — so clips never
16 leave the device. Sensitive clips never reach disk at all (memory only), and
17 sensitive images are refused at capture. The legacy kb_clips DataStore key is
18 migrated to the cache file on first start and then blanked.
19
20 Settings back up in full; restoring them is the whole point, since
21 reconfiguring layouts by hand on a new phone is tedious.
22-->
23<data-extraction-rules>
24 <cloud-backup>
25 <include domain="root" path="." />
26 <include domain="file" path="." />
27 <include domain="database" path="." />
28 <include domain="sharedpref" path="." />
29 <include domain="external" path="." />
30 </cloud-backup>
31 <device-transfer>
32 <include domain="root" path="." />
33 <include domain="file" path="." />
34 <include domain="database" path="." />
35 <include domain="sharedpref" path="." />
36 <include domain="external" path="." />
37 </device-transfer>
38</data-extraction-rules>