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

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

data_extraction_rules.xml33 lines · 2.0 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 PhotoDatabase (Photo/Person/PhotoFace): a derived index over
6 MediaStore. EXIF, lat/long, OCR text of every image, CLIP
7 embeddings and face-cluster centroids. No user edits are
8 stored here - the cropped*/projection* columns are panorama
9 projection metadata, and Person has no user-assigned name.
10 Regenerable by re-running SyncWorker, and privacy-heavy.
11 database/vault-db VaultDatabase for the secure folder, opened with a
12 user-supplied password rather than the keystore passphrase.
13 file/secure_vault the secure folder's stored photos. User content the user
14 deliberately hid.
15 file/datastore_default.preferences_pb grid column count and model-version markers.
16 cache/image_cache Coil disk cache; Android never backs up cacheDir.
17
18 Cloud backup carries the grid preference only. The index is regenerable and would
19 ship OCR text, geotags and face vectors off the device; the secure folder is hidden
20 by intent and stays local. Device transfer carries both databases and the vault so a
21 new phone does not have to re-index the whole library, and so hidden photos survive
22 the move without passing through Google. -->
23<data-extraction-rules>
24 <cloud-backup disableIfNoEncryptionCapabilities="true">
25 <include domain="file" path="datastore_default.preferences_pb" />
26 </cloud-backup>
27 <device-transfer>
28 <!-- Whole-domain include so the -wal/-shm sidecars travel with each database. -->
29 <include domain="database" path="." />
30 <include domain="file" path="secure_vault" />
31 <include domain="file" path="datastore_default.preferences_pb" />
32 </device-transfer>
33</data-extraction-rules>