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

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

data_extraction_rules.xml42 lines · 2.4 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/passwords-db AppDatabase (Conversation/Message/Memory): the full
6 conversation history plus remembered facts. Free-form user
7 text, so it can contain anything.
8 external/ on-demand model downloads in getExternalFilesDir(null):
9 the gemma4/ maml model files. Gigabytes, and re-downloadable.
10 file/datastore_default.preferences_pb model download progress and version markers
11 (progress_*, dlid_*). Meaningless once
12 the models are gone.
13 cache/ recordings and attachment scratch files; Android never backs
14 up cacheDir.
15 sharedpref/secure_prefs keystore-wrapped SQLCipher passphrase.
16
17 No API keys or remote credentials were found - inference runs on-device - so the only
18 secret-grade material is the keystore passphrase.
19
20 SCOPE: openassistant declares android:backupAgent=".util.AppBackupAgent" and does NOT set
21 android:fullBackupOnly, so cloud backup runs through the agent and the <cloud-backup>
22 section below is NOT consulted. What actually reaches the cloud is the agent's
23 dbConfigs = ["passwords-db"], i.e. the conversation history, exported decrypted by
24 SqlCipherDbCodec. That is deliberate: losing a new phone's whole assistant history is
25 worse than the exposure, and the history is the only thing here that is not
26 regenerable. The <cloud-backup> denials below are kept as the policy that applies if
27 the agent is ever removed and Auto Backup takes over: the models are gigabytes and
28 re-downloadable, and the download markers are meaningless without them.
29 <device-transfer> IS governed here and carries the history and nothing else. -->
30<data-extraction-rules>
31 <cloud-backup>
32 <exclude domain="root" path="." />
33 <exclude domain="file" path="." />
34 <exclude domain="database" path="." />
35 <exclude domain="sharedpref" path="." />
36 <exclude domain="external" path="." />
37 </cloud-backup>
38 <device-transfer>
39 <!-- Whole-domain include so the -wal/-shm sidecars travel with the database. -->
40 <include domain="database" path="." />
41 </device-transfer>
42</data-extraction-rules>