Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / office / src / main / res / xml / data_extraction_rules.xml
data_extraction_rules.xml31 lines · 1.9 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Office document editor. Overrides the permissive default in the shared :library module. |
| 3 | |
| 4 | Storage audit: |
| 5 | sharedpref office_settings.xml Editor preferences. |
| 6 | sharedpref office_recent.xml Recently opened document URIs. |
| 7 | file documents/ Documents the app itself created and owns. Not |
| 8 | regenerable, and the only true user data here. |
| 9 | file datastore_default.preferences_pb |
| 10 | Shared DataStore. Holds the OfficeSync PqcIdentity |
| 11 | private key material (PqcIdentity.loadOrCreate writes |
| 12 | through DataStoreKeyStore), the officeDeviceId, the |
| 13 | online document index and the per-document CRDT trees. |
| 14 | cache crdt_merge.fodt, online_*.fodt Merge scratch and downloaded copies of |
| 15 | online docs; getCacheDir() is never backed up. |
| 16 | |
| 17 | Cloud backup allowlists the editor settings and the owned documents. The DataStore is |
| 18 | excluded from cloud backup because the sync identity's private keys live in it — a second |
| 19 | device holding that key is a duplicated identity, not a restore. office_recent is left out |
| 20 | too: its URIs will not resolve after a cloud restore and it leaks document file names. --> |
| 21 | <data-extraction-rules> |
| 22 | <cloud-backup> |
| 23 | <include domain="sharedpref" path="office_settings.xml" /> |
| 24 | <include domain="file" path="documents" /> |
| 25 | </cloud-backup> |
| 26 | <device-transfer> |
| 27 | <!-- Exclude-only: the sync identity and CRDT state move with a direct migration, |
| 28 | which is exactly the retire-old-device case they are meant for. --> |
| 29 | <exclude domain="external" path="." /> |
| 30 | </device-transfer> |
| 31 | </data-extraction-rules> |