Compare commits
7 Commits
9fb5e7de3d
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 64431d5757 | |||
| 6315af1f92 | |||
| fe28373433 | |||
| 23bbc4104b | |||
| 68dcbc5db6 | |||
| 31a0edbe61 | |||
| 1cb188a56b |
@@ -121,8 +121,8 @@ Sensitivity presets (both values are ceilings; the pHash one is adapted per scan
|
|||||||
| Policy | pHash ceiling | RGB ceiling | Notes |
|
| Policy | pHash ceiling | RGB ceiling | Notes |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| Exact copies only | – | – | byte-identical files, no decoding at all |
|
| Exact copies only | – | – | byte-identical files, no decoding at all |
|
||||||
| Balanced (default) | 12 bits | 60 / 192 | the recommended setting |
|
| Balanced (default) | 15 bits | 60 / 192 | the recommended setting |
|
||||||
| Aggressive | 18 bits | 84 / 192 | catches heavier re-edits |
|
| Aggressive | 22 bits | 84 / 192 | catches heavier re-edits |
|
||||||
|
|
||||||
Banding gives *exact* candidate recall for pHash distances up to 7 (see the comment in
|
Banding gives *exact* candidate recall for pHash distances up to 7 (see the comment in
|
||||||
`DuplicateGrouper`).
|
`DuplicateGrouper`).
|
||||||
@@ -190,7 +190,12 @@ selects the 7-inch pipeline, and the tablet runs deliberately crop no system chr
|
|||||||
tablet frame is already inside Play's 2:1 cap. All three sets are captured — the phone set on a real
|
tablet frame is already inside Play's 2:1 cap. All three sets are captured — the phone set on a real
|
||||||
device, the tablet sets on AOSP AVDs; see [docs/STORE_LISTING.md](docs/STORE_LISTING.md).
|
device, the tablet sets on AOSP AVDs; see [docs/STORE_LISTING.md](docs/STORE_LISTING.md).
|
||||||
`python3 tools/make-demo-photos.py` draws the synthetic photo library the results screenshot is
|
`python3 tools/make-demo-photos.py` draws the synthetic photo library the results screenshot is
|
||||||
captured over, so the listing never shows a real one.
|
captured over, so the listing never shows a real one. The finished assets are **committed** —
|
||||||
|
including the foreground-service demonstration video that [the declaration](docs/PLAY_RELEASE_CHECKLIST.md)
|
||||||
|
links to — and Gitea serves them without a login, so pushing is the deployment step:
|
||||||
|
`…/src/branch/main/store-assets/…` is the page a browser opens (and the shape Play's video link
|
||||||
|
takes, because a `/raw/` URL carries a `default-src 'none'` CSP that stops a video playing inline),
|
||||||
|
`…/raw/branch/main/…` is the bytes.
|
||||||
|
|
||||||
User-visible changes are tracked in [CHANGELOG.md](CHANGELOG.md); the Play "What's new"
|
User-visible changes are tracked in [CHANGELOG.md](CHANGELOG.md); the Play "What's new"
|
||||||
text you type per release is separate and lives only in the Play Console.
|
text you type per release is separate and lives only in the Play Console.
|
||||||
|
|||||||
+152
-21
@@ -111,7 +111,7 @@ action except the items marked **[code]**.
|
|||||||
same vectors as the adaptive icon in `res/drawable/ic_launcher_*`.
|
same vectors as the adaptive icon in `res/drawable/ic_launcher_*`.
|
||||||
- [x] **Feature graphic** 1024×500 PNG **[code]** — same script.
|
- [x] **Feature graphic** 1024×500 PNG **[code]** — same script.
|
||||||
- [x] **Phone screenshots** (at least 2, up to 8) **[code]** — four are captured and normalised to
|
- [x] **Phone screenshots** (at least 2, up to 8) **[code]** — four are captured and normalised to
|
||||||
1080×2160 in `store-assets/screenshots/phone/` (git-ignored): empty state, scanning
|
1080×2160 in `store-assets/screenshots/phone/` (committed): empty state, scanning
|
||||||
(`5353 / 5385`), results (**17 duplicate groups, 54 of 5385 photos, 83.5 MB reclaimable**)
|
(`5353 / 5385`), results (**17 duplicate groups, 54 of 5385 photos, 83.5 MB reclaimable**)
|
||||||
and the Options menu. They were shot after a real permission grant and over the generated
|
and the Options menu. They were shot after a real permission grant and over the generated
|
||||||
demo library (`tools/make-demo-photos.py`), so neither the "Photo access needed" banner nor
|
demo library (`tools/make-demo-photos.py`), so neither the "Photo access needed" banner nor
|
||||||
@@ -124,7 +124,7 @@ action except the items marked **[code]**.
|
|||||||
`tools/make-store-screenshots.sh` does exactly that (status and navigation bars only).
|
`tools/make-store-screenshots.sh` does exactly that (status and navigation bars only).
|
||||||
- [x] **7-inch tablet screenshots** **[code]** — captured on a `Nexus 7 2013` AOSP Android 12 AVD
|
- [x] **7-inch tablet screenshots** **[code]** — captured on a `Nexus 7 2013` AOSP Android 12 AVD
|
||||||
(1200×1920 portrait, `sw600dp`) and normalised to `store-assets/screenshots/tablet-7in/`
|
(1200×1920 portrait, `sw600dp`) and normalised to `store-assets/screenshots/tablet-7in/`
|
||||||
(git-ignored) with `FORM_FACTOR=tablet-7in ./tools/make-store-screenshots.sh`: the same four
|
(committed) with `FORM_FACTOR=tablet-7in ./tools/make-store-screenshots.sh`: the same four
|
||||||
screens as the phone set, over the same generated demo library — empty state, scanning
|
screens as the phone set, over the same generated demo library — empty state, scanning
|
||||||
(*“Looking for visually similar photos…”* 20 / 22), results (**2 duplicate groups, 16 of 22
|
(*“Looking for visually similar photos…”* 20 / 22), results (**2 duplicate groups, 16 of 22
|
||||||
photos, 43.7 MB reclaimable**, scanned in 39.7 s) and the Options menu (✓ on *Balanced*).
|
photos, 43.7 MB reclaimable**, scanned in 39.7 s) and the Options menu (✓ on *Balanced*).
|
||||||
@@ -212,17 +212,95 @@ action except the items marked **[code]**.
|
|||||||
(Match `<uses-permission` only. A bare `android.permission.` grep also picks up
|
(Match `<uses-permission` only. A bare `android.permission.` grep also picks up
|
||||||
`android.permission.DUMP`, which AndroidX puts on its profile-installer *receiver* —
|
`android.permission.DUMP`, which AndroidX puts on its profile-installer *receiver* —
|
||||||
a component restriction, not a permission the app requests.)
|
a component restriction, not a permission the app requests.)
|
||||||
- [ ] Answer the **Photo and video permissions** declaration in the Console. The app
|
- [ ] Answer the **Photo and video permissions** declaration (App content › Photo and video
|
||||||
requests `READ_MEDIA_IMAGES` (plus `READ_MEDIA_VISUAL_USER_SELECTED` for Android 14
|
permissions). It lists `READ_MEDIA_IMAGES` as *undeclared* and asks one question per
|
||||||
partial access) and deletes only user-selected files through the system dialog.
|
permission — in a box with a hard **250-character** limit:
|
||||||
Paste:
|
|
||||||
|
> **Read media images** — Describe why the Android photo picker or other system pickers do
|
||||||
|
> not fully support your app's core functionality, and why your app needs to use the
|
||||||
|
> `READ_MEDIA_IMAGES` permission.
|
||||||
|
|
||||||
|
Paste — **243** of the 250 characters, pure ASCII so the count cannot drift on paste:
|
||||||
|
|
||||||
|
> The app needs READ_MEDIA_IMAGES to read every photo, because duplicate detection compares
|
||||||
|
> each photo with every other. A picker exposes only selected files, and a photo's duplicates
|
||||||
|
> are exactly the files it withholds. All hashing is on-device.
|
||||||
|
|
||||||
|
One sentence carries the whole argument: the reason the permission is needed *is* the reason
|
||||||
|
the picker cannot work. A picker hands over the files the user selected, and duplicates are
|
||||||
|
by definition the files nobody selected — the copies of a picked photo live in the part of
|
||||||
|
the library the picker never exposes. The closing sentence is there because a permission
|
||||||
|
declaration is also a privacy statement, and 25 characters is a cheap way to say it. If you
|
||||||
|
would rather open with the comparison than with the permission, this fits too (**228**):
|
||||||
|
|
||||||
|
> Finding duplicates requires comparing every photo with every other, so the app must read
|
||||||
|
> the whole library via READ_MEDIA_IMAGES. A picker exposes only selected files, and a
|
||||||
|
> photo's duplicates are exactly the files it withholds.
|
||||||
|
|
||||||
|
The longer versions below are kept for anywhere that is *not* capped at 250 — Play sometimes
|
||||||
|
follows up by email, and both read well wherever more detail is wanted. **1 689 characters**:
|
||||||
|
|
||||||
|
> Foto Dup Finder's core functionality is finding duplicate and visually similar photos
|
||||||
|
> across the user's whole photo library, and letting the user delete the copies. Reading the
|
||||||
|
> photo library is that entire operation.
|
||||||
|
>
|
||||||
|
> The Android photo picker cannot support it. The picker only grants access to the items the
|
||||||
|
> user selects in that session, and the duplicates are by definition outside that selection:
|
||||||
|
> the copies of a picked photo are other files, in other folders, that the picker never hands
|
||||||
|
> over. Comparing only the picked items tells the user nothing they did not already know;
|
||||||
|
> finding the groups requires comparing every photo in the library with every other photo.
|
||||||
|
>
|
||||||
|
> The app also needs the whole library to calibrate itself. It estimates the distance
|
||||||
|
> distribution of unrelated photos from the library's own pairwise perceptual-hash distances
|
||||||
|
> and sets the widest similarity threshold whose expected number of accidental matches stays
|
||||||
|
> in budget. Below a few hundred pairs that fit is impossible and the app falls back to a
|
||||||
|
> default; over a hand-picked subset it would be meaningless, because a selection is not a
|
||||||
|
> sample of the library — it is the part the duplicates are not in.
|
||||||
|
>
|
||||||
|
> Nothing is uploaded: the app declares no INTERNET permission and all hashing happens on the
|
||||||
|
> device. Photos are only read. Any deletion requires an explicit selection by the user and
|
||||||
|
> always goes through Android's own confirmation dialog (`MediaStore.createDeleteRequest` /
|
||||||
|
> `createTrashRequest`) — never silently — and the app never requests
|
||||||
|
> `MANAGE_EXTERNAL_STORAGE`. Partial access (`READ_MEDIA_VISUAL_USER_SELECTED`) is declared
|
||||||
|
> and supported as a reduced mode for users who prefer to hand over fewer photos.
|
||||||
|
|
||||||
|
…and **682 characters**, for a box with less room than that:
|
||||||
|
|
||||||
|
> Foto Dup Finder's only function is finding duplicate and similar photos across the user's
|
||||||
|
> whole photo library and letting them delete the copies: reading the library is the feature.
|
||||||
|
> The Android photo picker grants access only to the items a user selects, while the
|
||||||
|
> duplicates of a picked photo are precisely the files the picker never hands over — a
|
||||||
|
> selection cannot answer "what is duplicated in my library". The app also calibrates its
|
||||||
|
> similarity threshold from the library's own pairwise distance distribution, which needs the
|
||||||
|
> whole library to mean anything. Nothing is uploaded (the app has no INTERNET permission)
|
||||||
|
> and deletion always goes through Android's confirmation dialog.
|
||||||
|
|
||||||
|
Nothing in any of them is aspirational — every claim is a place in the code, so it can be
|
||||||
|
defended if Play comes back with questions:
|
||||||
|
|
||||||
|
| The answer claims … | … and this is where that is true |
|
||||||
|
|---|---|
|
||||||
|
| the app reads the whole library | `MediaStorePhotoSource.loadPhotos()` queries the image collection with a `null` selection — metadata only, pixels later and lazily |
|
||||||
|
| duplicate detection needs every pair | `DuplicateGrouper` clusters by exact SHA-256 *and* perceptual fingerprints, union-find over the whole scan |
|
||||||
|
| the threshold is fitted per library | `AdaptiveThreshold.choose()` estimates the unrelated-photo distribution from the scan's own pairwise histogram and returns the widest threshold keeping the *expected* number of accidental matches in budget; under `MIN_SAMPLE` = 200 pairs it falls back to the policy ceiling |
|
||||||
|
| a selection cannot stand in for a library | that histogram is built from every pair in the scan — the phone's 5,385-photo library fitted to *pHash ≤ 10 bits* and said so on screen, while the 22-photo tablet library was too small to fit and used its ceiling (`(default)`) |
|
||||||
|
| a constant threshold cannot work | `AdaptiveThreshold` KDoc and README § scan pipeline: the widest pHash threshold with zero false pairs falls from **13 (120 images) to 5 (2 880)** as a library grows |
|
||||||
|
| nothing leaves the device | no `INTERNET` in the merged release manifest — the `aapt2` audit in the item above |
|
||||||
|
| deletion is never silent | `MediaDeleter` → `MediaStore.createDeleteRequest` / `createTrashRequest`; no `MANAGE_EXTERNAL_STORAGE` |
|
||||||
|
| partial access is real, not a gesture | `AppPermissions.MediaAccess.PARTIAL` / `hasPartialAccess()`, with a banner and a prompt to upgrade to full access |
|
||||||
|
|
||||||
|
Three notes for filling the form in. (1) The declaration asks about `READ_MEDIA_IMAGES` only:
|
||||||
|
`READ_MEDIA_VISUAL_USER_SELECTED` is the *narrow* half of the pair and needs no justification,
|
||||||
|
so do not volunteer it as though it were the broad one. (2) If that screen also asks for a
|
||||||
|
**video**, the recorded foreground-service demo does show a full 5,385-photo library scan and
|
||||||
|
the groups it found, which is the functionality this declaration is about — but it was filmed
|
||||||
|
to answer the foreground-service question, so it is a fallback rather than the intended
|
||||||
|
answer, and a take focused on this question (open → grant → scan → groups) may be asked for.
|
||||||
|
(3) If the declaration were refused, the app already runs in the partial mode it implements
|
||||||
|
(banner + subset scan), so nothing would need rewriting — what would be lost is the promise
|
||||||
|
("find the duplicates you forgot about"), which is why the answer above is the one to stand
|
||||||
|
behind.
|
||||||
|
|
||||||
> Foto Dup Finder is a photo-cleanup tool. Reading the photo library **is** its core
|
|
||||||
> functionality: it compares photos on the device to find exact and near duplicates
|
|
||||||
> and lets the user remove the copies they select. Nothing is uploaded — the app
|
|
||||||
> declares no network permission. Deletion always goes through the system consent
|
|
||||||
> dialog (`MediaStore.createDeleteRequest`); the app never requests
|
|
||||||
> `MANAGE_EXTERNAL_STORAGE`.
|
|
||||||
|
|
||||||
- [ ] Declare the **foreground service type**. This is the release-blocking item for the
|
- [ ] Declare the **foreground service type**. This is the release-blocking item for the
|
||||||
Android 14+ review. **[code]** The manifest already matches what you will declare:
|
Android 14+ review. **[code]** The manifest already matches what you will declare:
|
||||||
@@ -275,15 +353,46 @@ action except the items marked **[code]**.
|
|||||||
INSTALL=0 WARMUP=0 ./tools/record-fgs-demo.sh 2a2ae895
|
INSTALL=0 WARMUP=0 ./tools/record-fgs-demo.sh 2a2ae895
|
||||||
```
|
```
|
||||||
|
|
||||||
The output is `store-assets/fgs-demo/foreground-service-demo.mp4` (git-ignored, like the
|
The output is `store-assets/fgs-demo/foreground-service-demo.mp4` (**committed**, so it is
|
||||||
screenshots) with a checkpoint PNG per milestone beside it. It was checked frame by frame
|
already published; the checkpoint PNG per milestone beside it stays git-ignored). It was
|
||||||
afterwards rather than assumed: the intro at 0 s, the scan starting (*"Comparing file
|
checked frame by frame afterwards rather than assumed: the intro at 0 s, the scan starting
|
||||||
signatures… 91/102"*, 8 s), the shade held open for ~6 s with the live notification
|
(*"Comparing file signatures… 91/102"*, 8 s), the shade held open for ~6 s with the live
|
||||||
(*"Finding duplicate photos / Looking for visually similar photos… / CANCEL"*, 13–18 s)
|
notification (*"Finding duplicate photos / Looking for visually similar photos… /
|
||||||
while the scan kept running behind it, and the finished results (*17 duplicate groups ·
|
CANCEL"*, 13–18 s) while the scan kept running behind it, and the finished results
|
||||||
54 of 5,385 photos*) at the end. Host the file where a reviewer can open it without
|
(*17 duplicate groups · 54 of 5,385 photos*) at the end.
|
||||||
signing in — an unlisted YouTube link is the usual choice — and paste that link into the
|
|
||||||
declaration. Replacing the video later means resubmitting it.
|
**The link to paste** is the file's page in Gitea — what the repository's own *view* of
|
||||||
|
the file opens, and what plays it:
|
||||||
|
|
||||||
|
```
|
||||||
|
https://gitea.softwareapp-hb.de/fishfacegit/foto-duplicate-finder/src/branch/main/store-assets/fgs-demo/foreground-service-demo.mp4
|
||||||
|
```
|
||||||
|
|
||||||
|
⚠️ **Not the `/raw/` URL**, even though that is the file itself. Gitea answers raw
|
||||||
|
responses with `Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline';
|
||||||
|
sandbox` — a deliberate guard against raw HTML and SVG — and that blocks the media load of a
|
||||||
|
document that navigates straight to a video: the tab stays blank with no error, which is
|
||||||
|
exactly how this behaved in a browser. The same URL is fine as a *subresource*: the page
|
||||||
|
above embeds `<video controls src="…/raw/branch/main/…mp4">`, which is why previewing the
|
||||||
|
file plays it and opening `/raw/` does not. Use `/raw/` for `curl` and downloads, never as
|
||||||
|
the link in the form.
|
||||||
|
|
||||||
|
Verified about the **page** URL: **200** anonymously, containing that `<video controls>`
|
||||||
|
element. Verified about the **raw** URL, from outside this network and unauthenticated:
|
||||||
|
**200**, `Content-Type: video/mp4`, `Content-Length: 1847900`, `Content-Disposition:
|
||||||
|
inline`, bytes sha256-identical to the recording, and `Range: bytes=0-99` → **206** with
|
||||||
|
exactly those 100 bytes although `Accept-Ranges` is not advertised (which matters because
|
||||||
|
`screenrecord` writes the `moov` atom at the very end of the file). Two things to know
|
||||||
|
before pasting: the URL is pinned to `main`, so a re-shoot has to **overwrite the file in
|
||||||
|
place** rather than be added alongside it; and replacing the video at all means resubmitting
|
||||||
|
the declaration.
|
||||||
|
|
||||||
|
If a link with no Gitea chrome around the player is preferred later, there are two ways and
|
||||||
|
neither is needed for the declaration: an unlisted YouTube upload of the same file, or a
|
||||||
|
rule on the Gitea host's Caddy proxy dropping the header for this one path
|
||||||
|
(`@fgsdemo path …/store-assets/fgs-demo/*.mp4` plus `header_down @fgsdemo
|
||||||
|
-Content-Security-Policy`) — **scoped to `store-assets/` only**, since that header is what
|
||||||
|
makes raw HTML and SVG safe to serve. Neither was tried from here.
|
||||||
|
|
||||||
Both flags exist because this take found two traps worth knowing before a re-shoot:
|
Both flags exist because this take found two traps worth knowing before a re-shoot:
|
||||||
|
|
||||||
@@ -331,6 +440,28 @@ action except the items marked **[code]**.
|
|||||||
account, nothing gated.
|
account, nothing gated.
|
||||||
- [ ] **Ads** → *No, my app does not contain ads* (and no ad SDK in
|
- [ ] **Ads** → *No, my app does not contain ads* (and no ad SDK in
|
||||||
`gradle/libs.versions.toml` to contradict the answer).
|
`gradle/libs.versions.toml` to contradict the answer).
|
||||||
|
- [ ] **Advertising ID** → *No, my app does not use advertising ID.* The question adds "This
|
||||||
|
includes any SDKs that your app imports that use advertising ID", so the answer has to come
|
||||||
|
from the dependency graph rather than from the source: `play-services-ads-identifier` is what
|
||||||
|
provides the ID and it merges `AD_ID` into the manifest on its own, so adding any ad or
|
||||||
|
analytics SDK would flip this answer to *Yes* without one line of app code changing. Audited
|
||||||
|
2026-10-14 against the shipped artefacts rather than against intentions:
|
||||||
|
|
||||||
|
| Check | Command | Result |
|
||||||
|
|---|---|---|
|
||||||
|
| no advertising/analytics SDK, direct **or transitive** | `./gradlew --offline -q :app:dependencies --configuration releaseRuntimeClasspath \| grep -iE 'gms\|firebase\|ads\|billing\|play-services'` | no output |
|
||||||
|
| no `AD_ID` and no Privacy Sandbox permission in the release APK | `aapt2 dump badging app/build/outputs/apk/release/app-release.apk \| grep -i permission` | exactly the audit table above — 7 requested, plus the framework's `…DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` |
|
||||||
|
| the same for the **`.aab`**, which is the artefact Play scans | `unzip -p app/build/outputs/bundle/release/app-release.aab base/manifest/AndroidManifest.xml \| strings \| grep -x 'AD_ID'` | 0 hits |
|
||||||
|
| no Play Services classes in the shipped code | `unzip -p app/build/outputs/apk/release/app-release.apk classes.dex \| grep -a -c 'com/google/android/gms'` | 0 |
|
||||||
|
| nothing could be sent even if an ID were read | the permission audit above | no `INTERNET` |
|
||||||
|
|
||||||
|
This is the machine-checked version of what [PRIVACY.md](../PRIVACY.md) promises in words
|
||||||
|
("does not collect … advertising identifiers", "does not contain advertising SDKs or
|
||||||
|
third-party trackers"), so re-run the first two rows after **any** dependency change —
|
||||||
|
including one that looks unrelated. This is the declaration a stray library can answer
|
||||||
|
wrongly on the app's behalf, and the *Data safety* form's *Device or other IDs* answer is
|
||||||
|
*No* for the same reason.
|
||||||
|
|
||||||
- [ ] Select the target audience (not designed for children).
|
- [ ] Select the target audience (not designed for children).
|
||||||
- [ ] Answer the remaining *App content* declarations **No** / not applicable: news app,
|
- [ ] Answer the remaining *App content* declarations **No** / not applicable: news app,
|
||||||
government app, financial features, health, COVID-19 contact tracing.
|
government app, financial features, health, COVID-19 contact tracing.
|
||||||
|
|||||||
+3
-3
@@ -21,7 +21,7 @@ Legend: ✅ done · 🚧 in progress · ⏳ not started · 💡 candidate (propo
|
|||||||
| M7 | On-device validation & hardening | ✅ | Foreground `dataSync` service, one failure boundary per file, `core/DecodeMath`, hostile fixtures ([EDGE_CASE_TESTING](EDGE_CASE_TESTING.md)), `versionName` → 1.0.0 |
|
| M7 | On-device validation & hardening | ✅ | Foreground `dataSync` service, one failure boundary per file, `core/DecodeMath`, hostile fixtures ([EDGE_CASE_TESTING](EDGE_CASE_TESTING.md)), `versionName` → 1.0.0 |
|
||||||
| M8 | Localisation groundwork | ✅ | Every user-visible string in `res/values/strings.xml` with real `<plurals>`, shared `text/TextRes.kt`; **English is the only locale** |
|
| M8 | Localisation groundwork | ✅ | Every user-visible string in `res/values/strings.xml` with real `<plurals>`, shared `text/TextRes.kt`; **English is the only locale** |
|
||||||
| M9 | Monetisation | ✅ | **Decided: a one-time paid app** — no free tier, no trial, no subscription and no in-app purchase, so there is **no Billing code** and no new permission. Checked before deciding: `com.android.billingclient:billing:9.1.0`'s manifest declares only `com.android.vending.BILLING`, so IAP would *not* have added `INTERNET` either — but a price on the listing is the one model that changes nothing at all about the "no internet permission" claim. Base price **€2.99** one-time with a **50% launch sale at €1.49**, both set in the Console (*Products > App pricing*). €1 as the *base* price was considered and rejected: a sale can always be added, but a low anchor cannot be undone, and a paid app's first transaction is its only transaction. Free → paid becomes impossible after the first upload, so this had to be settled before release. Rationale, copy changes and Console steps: [STORE_LISTING](STORE_LISTING.md) › App pricing, [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) step 4 |
|
| M9 | Monetisation | ✅ | **Decided: a one-time paid app** — no free tier, no trial, no subscription and no in-app purchase, so there is **no Billing code** and no new permission. Checked before deciding: `com.android.billingclient:billing:9.1.0`'s manifest declares only `com.android.vending.BILLING`, so IAP would *not* have added `INTERNET` either — but a price on the listing is the one model that changes nothing at all about the "no internet permission" claim. Base price **€2.99** one-time with a **50% launch sale at €1.49**, both set in the Console (*Products > App pricing*). €1 as the *base* price was considered and rejected: a sale can always be added, but a low anchor cannot be undone, and a paid app's first transaction is its only transaction. Free → paid becomes impossible after the first upload, so this had to be settled before release. Rationale, copy changes and Console steps: [STORE_LISTING](STORE_LISTING.md) › App pricing, [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) step 4 |
|
||||||
| M10 | Store assets | ✅ | `tools/make-store-assets.sh` renders the 512×512 icon and the 1024×500 feature graphic from the app's own vectors; `tools/make-store-screenshots.sh` normalises device captures to Play's 2:1 limit, one directory per form factor (`phone` → 1080×2160, `tablet-7in` → 1200×1920, `tablet-10in` → 1600×2560); `tools/make-demo-photos.py` generates the photo library the results captures are taken over, so no real photos are published; all listing copy is drafted and length-checked in [STORE_LISTING](STORE_LISTING.md). The phone set was re-shot on a real device after a real permission grant, and the two tablet sets were captured on AOSP AVDs (see the blocker below); screenshots are deliberately not committed |
|
| M10 | Store assets | ✅ | `tools/make-store-assets.sh` renders the 512×512 icon and the 1024×500 feature graphic from the app's own vectors; `tools/make-store-screenshots.sh` normalises device captures to Play's 2:1 limit, one directory per form factor (`phone` → 1080×2160, `tablet-7in` → 1200×1920, `tablet-10in` → 1600×2560); `tools/make-demo-photos.py` generates the photo library the results captures are taken over, so no real photos are published; all listing copy is drafted and length-checked in [STORE_LISTING](STORE_LISTING.md). The phone set was re-shot on a real device after a real permission grant, and the two tablet sets were captured on AOSP AVDs (see the blocker below); the finished assets — icon, feature graphic, the twelve normalised screenshots and the demonstration video — are committed, so Gitea serves them publicly and pushing is the deployment step |
|
||||||
|
|
||||||
## Release blockers (work that is not a numbered milestone)
|
## Release blockers (work that is not a numbered milestone)
|
||||||
|
|
||||||
@@ -29,8 +29,8 @@ Legend: ✅ done · 🚧 in progress · ⏳ not started · 💡 candidate (propo
|
|||||||
|---|---|
|
|---|---|
|
||||||
| ~~Large-library scan stall~~ ✅ **fixed — verified on device** | The 5,363-photo library used to freeze at *“74 / 100 · Comparing file signatures…”* (a **blocked syscall**: zero CPU, workers sleeping). `BoundedCall` now abandons a stuck provider call **and** trips a stall breaker after three consecutive timeouts. **Verified on the real test device (Android 12 / MIUI): the scan completes — 20.2 s cold, 11.0 s warm, 15 groups, 6 unreadable — where it used to hang.** Covered by `BoundedCallTest` and `ScanEngineEndToEndTest` |
|
| ~~Large-library scan stall~~ ✅ **fixed — verified on device** | The 5,363-photo library used to freeze at *“74 / 100 · Comparing file signatures…”* (a **blocked syscall**: zero CPU, workers sleeping). `BoundedCall` now abandons a stuck provider call **and** trips a stall breaker after three consecutive timeouts. **Verified on the real test device (Android 12 / MIUI): the scan completes — 20.2 s cold, 11.0 s warm, 15 groups, 6 unreadable — where it used to hang.** Covered by `BoundedCallTest` and `ScanEngineEndToEndTest` |
|
||||||
| ~~Unreleased `BoundedCall` fix~~ ✅ | The provider-call deadline shipped in **1.0.1** (`versionCode` 2) |
|
| ~~Unreleased `BoundedCall` fix~~ ✅ | The provider-call deadline shipped in **1.0.1** (`versionCode` 2) |
|
||||||
| **Play Console: foreground-service declaration** | Declaring the `dataSync` type (App content › Foreground service permissions) is release-blocking. **[code]** the manifest already declares it, [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) step 5 carries all four things the form asks for (description, defer/interrupt impact, use case **Local processing: Other**, video link), and the **video now exists**: recorded on the test device on 2026-10-14 with `INSTALL=0 WARMUP=0 tools/record-fgs-demo.sh`, then verified frame by frame rather than assumed — intro at 0 s, the scan starting, **~6 s of the shade with the live "Finding duplicate photos / Looking for visually similar photos… / CANCEL" notification while the scan kept running**, and the results at the end. Only hosting it (an unlisted YouTube link) and pasting that link remain. Two details of the take are recorded in step 5 because they each cost an attempt: a *warm* scan is 5.4 s, shorter than the shade takes to open, so `WARMUP=0` films the cold one; and MIUI refuses `adb install` outright, so `INSTALL=0` records with the build already on the device. On a KVM-less emulator the same video cannot be made at all: every scan start dies as `am_crash … ForegroundServiceDidNotStartInTimeException` → *Force finishing activity* with no `am_kill`, i.e. emulation is too slow to reach `startForeground()` inside Android's budget (QEMU's `-icount` clock dilation made it work once, not reproducibly) |
|
| **Play Console: foreground-service declaration** | Declaring the `dataSync` type (App content › Foreground service permissions) is release-blocking. **[code]** the manifest already declares it, [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) step 5 carries all four things the form asks for (description, defer/interrupt impact, use case **Local processing: Other**, video link), and the **video now exists**: recorded on the test device on 2026-10-14 with `INSTALL=0 WARMUP=0 tools/record-fgs-demo.sh`, then verified frame by frame rather than assumed — intro at 0 s, the scan starting, **~6 s of the shade with the live "Finding duplicate photos / Looking for visually similar photos… / CANCEL" notification while the scan kept running**, and the results at the end. It is committed, and that is what published it — the link is the file's **page** in Gitea (`/src/branch/main/…`), which plays it anonymously. The `/raw/` URL is deliberately not the link: Gitea sends `Content-Security-Policy: default-src 'none'` with raw responses, so a browser navigating to the video sits on a blank tab even though the bytes are perfect. Pasting the page URL into the declaration is all that is left. Two details of the take are recorded in step 5 because they each cost an attempt: a *warm* scan is 5.4 s, shorter than the shade takes to open, so `WARMUP=0` films the cold one; and MIUI refuses `adb install` outright, so `INSTALL=0` records with the build already on the device. On a KVM-less emulator the same video cannot be made at all: every scan start dies as `am_crash … ForegroundServiceDidNotStartInTimeException` → *Force finishing activity* with no `am_kill`, i.e. emulation is too slow to reach `startForeground()` inside Android's budget (QEMU's `-icount` clock dilation made it work once, not reproducibly) |
|
||||||
| **Remaining Play paperwork** | Console actions only, no code: the **first upload + Play App Signing enrolment**, the **hosted privacy policy URL** (the working copy is now published to Gitea as [`fishfacegit/foto-duplicate-finder`](https://gitea.softwareapp-hb.de/fishfacegit/foto-duplicate-finder), so the policy renders at a public, login-free URL and only the Console paste is left), **Data safety**, the **Photo/video permissions** declaration, the **content rating / audience / app access / ads / export** questions, and the **listing copy + the three screenshot sets** (phone, 7-inch and 10-inch, all captured), plus the **paid-app setup**: a payments profile with tax rates, the €2.99 price and the 14-day €1.49 launch sale on *Products > App pricing* — the price must be set before the first upload, because free → paid is not possible afterwards (M9). Keystore, `versionCode`, listing copy, graphics, permission audit and the signed `.aab` (`sha256 f8e6a29a…`) are all in place; rollout goes internal → closed → production. Step-by-step: [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) |
|
| **Remaining Play paperwork** | Console actions only, no code: the **first upload + Play App Signing enrolment**, the **hosted privacy policy URL** (the working copy is now published to Gitea as [`fishfacegit/foto-duplicate-finder`](https://gitea.softwareapp-hb.de/fishfacegit/foto-duplicate-finder), so the policy renders at a public, login-free URL and only the Console paste is left), **Data safety**, the **Photo/video permissions** declaration, the **content rating / audience / app access / ads / advertising ID / export** questions, and the **listing copy + the three screenshot sets** (phone, 7-inch and 10-inch, all captured), plus the **paid-app setup**: a payments profile with tax rates, the €2.99 price and the 14-day €1.49 launch sale on *Products > App pricing* — the price must be set before the first upload, because free → paid is not possible afterwards (M9). Keystore, `versionCode`, listing copy, graphics, permission audit and the signed `.aab` (`sha256 f8e6a29a…`) are all in place; rollout goes internal → closed → production. Step-by-step: [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) |
|
||||||
| ~~Store screenshots need one re-shoot~~ ✅ **done — verified on device** | The old captures showed the *Photo access needed* banner (an app-op is not a grant) and `03-results.png` showed the developer's own library. After a real grant the set was re-shot over the generated demo library: **01-empty** (no tap needed — results and selection live in `ScannerViewModel`, so force-stop + relaunch returns to the empty state with the grant still in place), **02-scanning** (`5353 / 5385`), **03-results** (**17 groups, 54 of 5385 photos, 83.5 MB reclaimable**; the headline group's 43.1 MB out-ranks the device's own 39.8 MB, so no real photo is in frame) and **04-options**. Captures are taken by watching for UI **text** changes, because MIUI refuses synthetic taps (`INJECT_EVENTS`). The demo library is deleted from the test device afterwards — MediaStore **5,386 → 5,364** rows, and the 22 stale rows it leaves in the hash index are pruned by `PhotoIndexStore.pruneTo` on the next scan. Deliberately not captured: the staged state and the system confirmation dialog, because staging clears the demo group and would put real photos back in frame. Details: [STORE_LISTING](STORE_LISTING.md) |
|
| ~~Store screenshots need one re-shoot~~ ✅ **done — verified on device** | The old captures showed the *Photo access needed* banner (an app-op is not a grant) and `03-results.png` showed the developer's own library. After a real grant the set was re-shot over the generated demo library: **01-empty** (no tap needed — results and selection live in `ScannerViewModel`, so force-stop + relaunch returns to the empty state with the grant still in place), **02-scanning** (`5353 / 5385`), **03-results** (**17 groups, 54 of 5385 photos, 83.5 MB reclaimable**; the headline group's 43.1 MB out-ranks the device's own 39.8 MB, so no real photo is in frame) and **04-options**. Captures are taken by watching for UI **text** changes, because MIUI refuses synthetic taps (`INJECT_EVENTS`). The demo library is deleted from the test device afterwards — MediaStore **5,386 → 5,364** rows, and the 22 stale rows it leaves in the hash index are pruned by `PhotoIndexStore.pruneTo` on the next scan. Deliberately not captured: the staged state and the system confirmation dialog, because staging clears the demo group and would put real photos back in frame. Details: [STORE_LISTING](STORE_LISTING.md) |
|
||||||
| ~~Tablet store screenshots outstanding~~ ✅ **done — captured on AVDs** | Play has a **7-inch tablet** and a **10-inch tablet** screenshot slot of its own (asking for **≥ 4** screenshots on large screens). Both are now captured on AOSP Android 12 AVDs — `Nexus 7 2013` (1200×1920, `sw600dp`) and `medium_tablet` (1600×2560, `sw800dp`) — because this machine exposes no `/dev/kvm`: they ran in **pure software emulation** (`-accel off -no-window -gpu swiftshader_indirect`), ≈3 min to boot, with `hide_error_dialogs` on so SystemUI's ANR dialog could not sit in frame. Four screens per tablet over the same generated demo library: empty, scanning (20 / 22), results (**2 groups · 16 of 22 photos · 43.7 MB reclaimable**, 39.7 s / 53.1 s) and Options. `tools/make-store-screenshots.sh` is form-factor aware (`FORM_FACTOR=phone\|tablet-7in\|tablet-10in`) and the tablet form factors crop **0 px** of chrome, because a tablet frame is already inside Play's 2:1 cap. Recipe: [STORE_LISTING](STORE_LISTING.md) |
|
| ~~Tablet store screenshots outstanding~~ ✅ **done — captured on AVDs** | Play has a **7-inch tablet** and a **10-inch tablet** screenshot slot of its own (asking for **≥ 4** screenshots on large screens). Both are now captured on AOSP Android 12 AVDs — `Nexus 7 2013` (1200×1920, `sw600dp`) and `medium_tablet` (1600×2560, `sw800dp`) — because this machine exposes no `/dev/kvm`: they ran in **pure software emulation** (`-accel off -no-window -gpu swiftshader_indirect`), ≈3 min to boot, with `hide_error_dialogs` on so SystemUI's ANR dialog could not sit in frame. Four screens per tablet over the same generated demo library: empty, scanning (20 / 22), results (**2 groups · 16 of 22 photos · 43.7 MB reclaimable**, 39.7 s / 53.1 s) and Options. `tools/make-store-screenshots.sh` is form-factor aware (`FORM_FACTOR=phone\|tablet-7in\|tablet-10in`) and the tablet form factors crop **0 px** of chrome, because a tablet frame is already inside Play's 2:1 cap. Recipe: [STORE_LISTING](STORE_LISTING.md) |
|
||||||
| **Device-only verifications** | RAW/DNG files, a *real* iPhone HEIC with a non-upright EXIF orientation, permission revoked mid-scan, and the Android 14 “Selected photos” flow. ✅ The **index-reuse** check is done: after a scan the index holds **5,363 rows, 5,357 with a perceptual hash**, and a second scan runs in **11.0 s vs 20.2 s** cold |
|
| **Device-only verifications** | RAW/DNG files, a *real* iPhone HEIC with a non-upright EXIF orientation, permission revoked mid-scan, and the Android 14 “Selected photos” flow. ✅ The **index-reuse** check is done: after a scan the index holds **5,363 rows, 5,357 with a perceptual hash**, and a second scan runs in **11.0 s vs 20.2 s** cold |
|
||||||
|
|||||||
+32
-10
@@ -9,12 +9,19 @@ release.
|
|||||||
|
|
||||||
## Graphics
|
## Graphics
|
||||||
|
|
||||||
Generated into `store-assets/` **inside the repository**, never into `$HOME`. The icon and the
|
Generated into `store-assets/` **inside the repository**, never into `$HOME`, and **committed**:
|
||||||
feature graphic are the files that get uploaded to the Play Console, so they are committed and
|
the icon, the feature graphic, the twelve normalised screenshots and the foreground-service
|
||||||
versioned with the release they belong to. **Screenshots are not committed** — neither the raw
|
demonstration video all live in git, versioned with the release they belong to. That is deliberate
|
||||||
captures (`store-assets/raw-screenshots/`) nor the normalised ones (`store-assets/screenshots/`) —
|
— Play wants a *link* to the demonstration video, so an asset has to be reachable without a login,
|
||||||
because a screenshot of this app is a picture of a photo library. Regenerate them with the
|
and once one is, it is simpler to keep the whole listing beside the code that produces it.
|
||||||
commands below and upload them straight from disk.
|
|
||||||
|
Publishing them is safe because of where they are shot: every published frame contains the
|
||||||
|
**generated** demo library and nothing else (`tools/make-demo-photos.py`), so the screenshots show
|
||||||
|
the app *over* that library. The phone set was re-checked frame by frame before publication; the
|
||||||
|
sole trace of the test device's own 5,385-photo library in it is a count in the summary card. What
|
||||||
|
stays out of git is the scratch around them — the raw `adb` captures
|
||||||
|
(`store-assets/raw-screenshots/`), the demo photos themselves, and the recording script's milestone
|
||||||
|
PNGs. Regenerate any of it with the commands below and upload straight from disk.
|
||||||
|
|
||||||
Screenshots live **one directory per form factor**, because Play gives phones, 7-inch tablets and
|
Screenshots live **one directory per form factor**, because Play gives phones, 7-inch tablets and
|
||||||
10-inch tablets a slot each (`Main store listing` › *Graphics* › *Phone* / *7-inch tablet* /
|
10-inch tablets a slot each (`Main store listing` › *Graphics* › *Phone* / *7-inch tablet* /
|
||||||
@@ -22,7 +29,7 @@ Screenshots live **one directory per form factor**, because Play gives phones, 7
|
|||||||
|
|
||||||
```
|
```
|
||||||
store-assets/raw-screenshots/{phone,tablet-7in,tablet-10in}/ git-ignored `adb` captures
|
store-assets/raw-screenshots/{phone,tablet-7in,tablet-10in}/ git-ignored `adb` captures
|
||||||
store-assets/screenshots/{phone,tablet-7in,tablet-10in}/ the files that get uploaded
|
store-assets/screenshots/{phone,tablet-7in,tablet-10in}/ the files that get uploaded — committed
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -33,6 +40,22 @@ FORM_FACTOR=tablet-10in ./tools/make-store-screenshots.sh # 10-inch -> screens
|
|||||||
python3 tools/make-demo-photos.py # synthetic photo library -> demo-photos/ (git-ignored)
|
python3 tools/make-demo-photos.py # synthetic photo library -> demo-photos/ (git-ignored)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Committing `store-assets/` is also what *publishes* it: Gitea serves every committed file without a
|
||||||
|
login, and pushing the commit **is** the deployment step — there is no separate upload, so a
|
||||||
|
re-shot screenshot or re-recorded video goes live the moment it is pushed. There are two URL shapes,
|
||||||
|
and which one is right depends on what does the reading:
|
||||||
|
|
||||||
|
```
|
||||||
|
https://gitea.softwareapp-hb.de/fishfacegit/foto-duplicate-finder/raw/branch/main/<path> the bytes — curl, downloads
|
||||||
|
https://gitea.softwareapp-hb.de/fishfacegit/foto-duplicate-finder/src/branch/main/<path> a page — what a browser opens
|
||||||
|
```
|
||||||
|
|
||||||
|
For media that distinction is not cosmetic: Gitea sends `Content-Security-Policy: default-src
|
||||||
|
'none'` with `/raw/` responses, so a video opened at a raw URL shows a blank tab, while the same file
|
||||||
|
plays on its `src` page. Play's foreground-service declaration therefore takes the **page** URL as
|
||||||
|
its video link; the reasoning and what was verified about both URLs are in
|
||||||
|
[PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) step 5.
|
||||||
|
|
||||||
| Asset | Play's spec | Result | Source |
|
| Asset | Play's spec | Result | Source |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| App icon | 512×512, 32-bit PNG with alpha, ≤ 1 MB | `store-assets/icon-512.png` — 512×512, RGBA, 6 KB | `tools/store-assets/icon.svg`, mirrored from `app/src/main/res/drawable/ic_launcher_background.xml` + `ic_launcher_foreground.xml` (paths and group transforms are identical, so the store icon *is* the launcher icon) |
|
| App icon | 512×512, 32-bit PNG with alpha, ≤ 1 MB | `store-assets/icon-512.png` — 512×512, RGBA, 6 KB | `tools/store-assets/icon.svg`, mirrored from `app/src/main/res/drawable/ic_launcher_background.xml` + `ic_launcher_foreground.xml` (paths and group transforms are identical, so the store icon *is* the launcher icon) |
|
||||||
@@ -258,9 +281,8 @@ MediaStore id, so there is nothing else to reset.
|
|||||||
Two further screens were weighed up and deliberately left out of the set: the staged state (*“All
|
Two further screens were weighed up and deliberately left out of the set: the staged state (*“All
|
||||||
duplicates are ready to go”*) after *Remove all selected*, and Android's confirmation dialog for the
|
duplicates are ready to go”*) after *Remove all selected*, and Android's confirmation dialog for the
|
||||||
batch that *Apply* launches. Staging every selected row also clears the demo group out of the list,
|
batch that *Apply* launches. Staging every selected row also clears the demo group out of the list,
|
||||||
which promotes the device's own 39.8 MB group into frame — so those captures could not be published,
|
which promotes the device's own 39.8 MB group into frame — so those captures could not be committed
|
||||||
and since screenshots are not committed there would be nothing to keep them for. (Dismissing the
|
or published. (Dismissing the dialog is non-destructive, so nothing is lost by not going that far.)
|
||||||
dialog is non-destructive, so nothing is lost by not going that far.)
|
|
||||||
|
|
||||||
Captures are taken by hand, because each of these screens needs a tap and MIUI only accepts taps from
|
Captures are taken by hand, because each of these screens needs a tap and MIUI only accepts taps from
|
||||||
a human. A loop that takes a `uiautomator dump` and screencaps whenever the UI **text** changes is
|
a human. A loop that takes a `uiautomator dump` and screencaps whenever the UI **text** changes is
|
||||||
|
|||||||
Reference in New Issue
Block a user