# re:gallery network statement Generated from `schema/metrics-schema.json`. This page lists every connection the app makes. ## 1. Usage statistics (ours, can be turned off) - **Host:** `metrics.gallery-re.com`, one HTTPS POST to `/v1/batch` per day. Server region: Frankfurt, Germany. - **Turning it off:** Settings, "Send usage statistics". Sending stops at once, reports not yet sent are deleted, and the random install ID is discarded. - **What the server keeps:** each daily report for 13 months, then only totals per day. The server drops your IP address on arrival: it is used for a rate limit in memory and is never logged or stored. Reports that contain any field not listed below are rejected. - **Never sent:** photos, videos, file names, folder paths, hashes, image features, the category or private-photo result of any single item, the Android ID or the advertising ID. ### Fields | Field | Meaning | Values | |---|---|---| | `schema_version` | Version of this schema. | `1` | | `install_id` | Random UUID v4 created on first run. Not the Android ID or advertising ID. Replaced on opt-out and on reinstall. | text matching a fixed pattern | | `day` | Local calendar day the batch closed, YYYY-MM-DD. | text matching a fixed pattern | | `app_version` | App version name. | text matching a fixed pattern | | `api_level` | Android API level. | whole number 30 to 99 | | `ram_bucket` | Device memory, rounded up to a common size in GB. | `le2`, `3`, `4`, `6`, `8`, `12`, `ge16` | | `country` | Country of the device language setting (ISO 3166-1 alpha-2), ZZ when unset. Not a location. | text matching a fixed pattern | | `library_bucket` | Number of photos and videos on the device. | `lt1k`, `1k-5k`, `5k-10k`, `10k-25k`, `25k-50k`, `50k-100k`, `ge100k` | | `nsfw_opt_in` | Whether the private-photo detection feature is turned on. No counts or scores. | boolean | ### Counters Counts since the previous batch. Missing means zero. | Counter | Values | |---|---| | `chat_junk_deleted` | whole number 0 to 1000000 | | `chat_junk_kept` | whole number 0 to 1000000 | | `old_screenshots_deleted` | whole number 0 to 1000000 | | `old_screenshots_kept` | whole number 0 to 1000000 | | `duplicates_deleted` | whole number 0 to 1000000 | | `duplicates_kept` | whole number 0 to 1000000 | | `blurry_dark_deleted` | whole number 0 to 1000000 | | `blurry_dark_kept` | whole number 0 to 1000000 | | `large_videos_deleted` | whole number 0 to 1000000 | | `large_videos_kept` | whole number 0 to 1000000 | | `category_corrections` | whole number 0 to 1000000 | ### Events Events since the previous batch, from a fixed list. At most 20 per report. | Event | Meaning | Extra field | |---|---|---| | `first_scan_completed` | The first full analysis of the library finished. duration: from first photo access to the end of that run. | `duration`: `lt1m`, `1-3m`, `3-10m`, `10-30m`, `30-60m`, `1-3h`, `ge3h` | | `first_cleanup_completed` | The first cleanup was confirmed. freed: space moved to the trash by it. | `freed`: `0`, `lt10MB`, `10-100MB`, `100MB-1GB`, `1-5GB`, `ge5GB` | | `paywall_view` | The paywall was shown. | none | | `purchase_started` | A purchase was started, completed, or is waiting for payment. period says which plan; no order ID, token or price. | `period`: `monthly`, `yearly` | | `purchase_completed` | A purchase was started, completed, or is waiting for payment. period says which plan; no order ID, token or price. | `period`: `monthly`, `yearly` | | `purchase_pending` | A purchase was started, completed, or is waiting for payment. period says which plan; no order ID, token or price. | `period`: `monthly`, `yearly` | ### Example report ```json { "schema_version": 1, "install_id": "3f2b8c1e-9a4d-4c7b-8e21-5d6f7a8b9c0d", "day": "2026-11-20", "app_version": "1.0.0", "api_level": 34, "ram_bucket": "4", "country": "TH", "library_bucket": "10k-25k", "nsfw_opt_in": false, "counters": { "duplicates_deleted": 120, "duplicates_kept": 4 }, "events": [ { "name": "first_scan_completed", "duration": "3-10m" } ] } ``` ## 2. Google Play (Google's, not controlled by the setting above) Subscriptions go through Google Play Billing. The Play Billing Library and Google Play services contact Google under Google's own terms, including Google's diagnostics for that library. The usage statistics setting does not control this traffic. The Google hosts the app contacts are listed here after each release's traffic check. ## 3. Nothing else The app has no advertising, analytics or crash-reporting SDK, and opens no other connection. A build check fails if network code appears anywhere outside the metrics module.