Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / everysync / src / main / res / xml / data_extraction_rules.xml
data_extraction_rules.xml33 lines · 1.8 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- E2EE personal-vault sync client. Overrides the permissive default in the shared |
| 3 | :library module. |
| 4 | |
| 5 | Storage audit: |
| 6 | file datastore_default.preferences_pb One shared DataStore holding everything: |
| 7 | - tok_synckey_<account>:<type> AES vault keys per account + data type (TokenStore) |
| 8 | - the AccountConfig list (account names, providers, enabled data types) |
| 9 | - vault metadata (vault ids, titles, owner bundles — no secrets) |
| 10 | - relay pull cursors per (vault, channel) |
| 11 | - global settings: global_interval_minutes, wifi_only, conflict_policy |
| 12 | No database, no SharedPreferences, no app-private files or caches. Synced contacts and |
| 13 | calendars land in the system providers; passwords/notes/todos live in their apps. |
| 14 | |
| 15 | Secrets are AES-GCM sealed under an AndroidKeyStore key that cannot leave the device, so a |
| 16 | cloud copy would be undecryptable ciphertext — but shipping a user's vault keys to any |
| 17 | server at all is not a trade worth making, and they are not separable from the settings |
| 18 | because they share one DataStore file. Cloud backup is denied. Device transfer keeps the |
| 19 | file so account configuration and settings survive a migration; the sealed blobs will |
| 20 | fail to decrypt on the new device and TokenStore.load() already returns null in that |
| 21 | case, which re-runs vault pairing. --> |
| 22 | <data-extraction-rules> |
| 23 | <cloud-backup> |
| 24 | <exclude domain="root" path="." /> |
| 25 | <exclude domain="file" path="." /> |
| 26 | <exclude domain="database" path="." /> |
| 27 | <exclude domain="sharedpref" path="." /> |
| 28 | <exclude domain="external" path="." /> |
| 29 | </cloud-backup> |
| 30 | <device-transfer> |
| 31 | <include domain="file" path="datastore_default.preferences_pb" /> |
| 32 | </device-transfer> |
| 33 | </data-extraction-rules> |