# RECCoon — F-Droid submission and release notes This file is a handoff/runbook. The git log covers the code changes; this covers everything around the F-Droid submission that is not in the code. ## Status - App: **RECCoon**, application id `com.tomcooks.reccoon`, version **1.0.0** (versionCode 1). - Source: (cgit; push over SSH as `wuhei`). - **F-Droid: MERGED.** MR was merged by `linsui` on 2026-10-22 08:26 UTC (squashed as `1e16c8b7`); the final pipeline `2975382157` had all 9 jobs green. - **Buildserver: built and verified.** `com.tomcooks.reccoon:1` built on 2026-10-23 10:01 UTC from `4b237348…` and passed the reproducibility check ("successfully verified"). Log: . - **Publication pending.** Not on f-droid.org yet (`/repo/com.tomcooks.reccoon_1.apk` is still 404). It appears after the next `fdroid publish` → `signindex` → `deploy` cycle at . The build server is in a long `fdroid build --all` run (started 2026-10-22 22:10 UTC), which delays publish; watch and . - Release tag: `v1.0.0` → `4b237348a7e7b026e43353d8ea48f8a01ecedae3`. - Signed APK: `releases/RECCoon-1.0.0.apk`, served at . - fdroiddata metadata (reference copy): `f-droid/com.tomcooks.reccoon.yml`. - `linsui` rebased the MR onto `fdroid:master` on 2026-10-22; head became `b42081c4` and pipeline `2975322828` ran on it: - `fdroid build` **passed**, `check apk` **passed** (the R8 APK reproduces against the `Binaries` URL). - `fdroid rewritemeta` failed **only** on line-wrapping of the `en-US` reason. Fixed in `52aaa4a4` (the wrapping `rewritemeta` itself produces). - `linsui` rebased once more (head `c20f9ee5`); pipeline `2975382157` then ran all 9 jobs green and the MR was merged right after. - Tester `junkerderprovinz` re-tested the signed `1.0.0` APK on 2026-10-22: all four earlier points fixed, transcription works. One minor note left: the Silero VAD file still comes from the moving GitHub `asr-models` release; deferred to 1.0.1 (pin with a SHA-256 next to `VAD_BYTES`). ## Signing key — DO NOT LOSE - Keystore: `/home/wuhei/dev/reccoon-keystore/reccoon-release.jks`, alias `reccoon`. - Password: in `/home/wuhei/dev/reccoon-keystore/README-BACKUP.txt` and the git-ignored `/home/wuhei/dev/reccoon/keystore.properties`. - Certificate SHA-256 (the value in `AllowedAPKSigningKeys`): `98ae9f44c34702e9e65bdc6b5bd7098936566be18ac19f96a9eab3dd66347f00`. - Backed up to KeePassDX on the phone (attachment + password in the entry). - Losing this key means no more updates under the same app id. ## Releasing a new version 1. Bump `versionCode` / `versionName` in `app/build.gradle.kts`. 2. `./tools/build-release.sh` — builds an **unsigned** release, signs it v2/v3-only with preserved alignment, and writes `releases/RECCoon-.apk` (also copied to `dist/`). 3. `git add -A && git commit`, then tag `v` and push `main` + the tag: `git tag -a v1.0.1 -m "RECCoon 1.0.1" && git push origin main v1.0.1`. 4. Update `commit:` in `f-droid/com.tomcooks.reccoon.yml` to the new tag hash and push it to the fdroiddata MR (edit the file on branch `reccoon`), or run `./tools/submit-to-fdroid.sh` if starting a fresh MR. 5. Comment on the MR and ask `linsui` to re-trigger the pipeline. ## Signing / build gotchas (why it is set up this way) These caused real pipeline failures; do not undo them. - **AGP adds a "Dependency metadata" (PKDS) signing block** that F-Droid's scanner rejects. Therefore the release is built **unsigned** and signed afterward with the SDK `apksigner` (`tools/build-release.sh`). - **`META-INF/version-control-info.textproto`** embeds the git revision and breaks reproducibility. Disabled with `buildTypes.release.vcsInfo { include = false }`. - **v1/JAR signing** adds `META-INF/*.SF`/`*.RSA` and changes the bytes. Sign **v2/v3 only** (`--v1-signing-enabled false`). - **apksigner re-aligns the ZIP by default**, changing the bytes. Use `--alignment-preserved`. - **Push the tag** to the source repo — `checkupdates` fails with "No tags found" otherwise. - fdroiddata needs **`subdir: app`** and a **full commit hash** in `commit:`. - **R8** is enabled with keep rules for the sherpa-onnx JNI classes and custom views (`app/proguard-rules.pro`). - The app id was renamed from `com.wuhei.reccoon`; the app prefers the app-specific external model folder and best-effort migrates the old one. ## Review feedback addressed (MR !51981) - `POST_NOTIFICATIONS` is now requested on Android 13+ (recording/download notifications were silent). - Model download wording changed from "over Wi-Fi" to "over the internet". - Parakeet model download pinned to a fixed Hugging Face revision. - `NonFreeNet` anti-feature added, with an `en-US` reason. Open, offered but not done: metered-connection check, SHA-256 model validation (currently size-only), and cleaning the stale `cache/reccoon_recording.wav` after a recording that is killed mid-way. ## Merge-request helper - `tools/submit-to-fdroid.sh` forks `fdroid/fdroiddata`, adds the metadata on a branch and opens the MR. It reads a GitLab token from `~/.config/gitlab-token` (never committed). Revoke the token when done. - The fork's own CI cannot run jobs (GitLab identity verification); F-Droid's maintainers trigger the real pipeline. The fork CI is currently disabled to avoid empty-pipeline notification noise. ## Model / evaluation notes - The app now ships **only** the NVIDIA Parakeet v3 model (Whisper removed). - Evaluation harness and results (Whisper vs Parakeet vs Whistle): `tools/whistle-eval/README.md`. - Desktop model download/side-loading: `tools/download-parakeet.sh`. ## Also done while waiting (goodwill for the queue) Smoke-tested and commented on: Box Breathing `!51970`, Sun Piano `!52095`, Zahlenschatzjagd `!52111`. ## Next up - When it goes live: check and confirm the F-Droid APK signature still matches `98ae9f44c34702e9e65bdc6b5bd7098936566be18ac19f96a9eab3dd66347f00`. - For 1.0.1: pin the Silero VAD with a SHA-256 next to `VAD_BYTES` (`ModelRepository.java`) — the last open note from the tester. - Once no more MR work is needed, revoke the GitLab token in `~/.config/gitlab-token`.