Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / camera / src / main / res / xml / data_extraction_rules.xml
data_extraction_rules.xml37 lines · 1.6 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Camera. Audited state: settings only, persisted through DataStoreUtils into |
| 4 | filesDir/datastore_default.preferences_pb (CameraViewModel) — capture mode, |
| 5 | ratio, flash, timer and similar. |
| 6 | |
| 7 | Captured media is NOT app storage. Photos, videos and panoramas are written |
| 8 | through MediaStoreSaver / saveToMediaStore into DCIM/Camera on shared storage, |
| 9 | which lives outside the app sandbox entirely; the `external` domain only ever |
| 10 | covers getExternalFilesDir(). Verified there are no getExternalFilesDir() |
| 11 | writes anywhere in the module, so no captured media can reach a backup through |
| 12 | these rules. The user's photo library is Google Photos' problem, not this |
| 13 | app's. |
| 14 | |
| 15 | Intermediate capture files (motion_*.mp4, VID_*.mp4, TL_*.mp4) go to cacheDir, |
| 16 | which the platform excludes from every backup on its own. |
| 17 | selfie_segmentation.vkml is a bundled model asset read out of the APK by |
| 18 | SelfieSegmenter, not a download. |
| 19 | |
| 20 | Nothing large, nothing personal — back the settings up in both directions. |
| 21 | --> |
| 22 | <data-extraction-rules> |
| 23 | <cloud-backup> |
| 24 | <include domain="root" path="." /> |
| 25 | <include domain="file" path="." /> |
| 26 | <include domain="database" path="." /> |
| 27 | <include domain="sharedpref" path="." /> |
| 28 | <include domain="external" path="." /> |
| 29 | </cloud-backup> |
| 30 | <device-transfer> |
| 31 | <include domain="root" path="." /> |
| 32 | <include domain="file" path="." /> |
| 33 | <include domain="database" path="." /> |
| 34 | <include domain="sharedpref" path="." /> |
| 35 | <include domain="external" path="." /> |
| 36 | </device-transfer> |
| 37 | </data-extraction-rules> |