From c2c1d0e008d0102e67e22e432f4621ab329a1e1b Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Fri, 17 Jul 2026 11:12:06 +0200 Subject: [PATCH] docs: APK rebuilt + republished (SW v11, peertube, upload, 401 re-login) Co-Authored-By: Gerald KERMA --- .claude/HISTORY.md | 2 ++ .claude/WIP.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.claude/HISTORY.md b/.claude/HISTORY.md index b459a2a5..d8836d12 100644 --- a/.claude/HISTORY.md +++ b/.claude/HISTORY.md @@ -15,6 +15,8 @@ Sessions became auditable, the two stub Companion modules became real, and bille - **`GET /admin/api/billets`** — the authoring list. The public feed can't serve it: its item `id` is a permalink URL (**why Edit/Delete 404'd**) and it hides drafts. - **Companion 401 re-login** 🔓 — box tokens live 24h but the Companion seals one at pairing and reuses it forever → a day later every authed call 401'd with no escape but unpairing ("Failed: unauthorized" in billets + podcaster). `api.js` now triggers re-auth and **replays the request once**, single-flight (one prompt, not one per request), so an in-flight write survives. SW v10. +**APK rebuilt + republished** 📱 — the shipped APK (16/07) bundled pre-fix code (SW v5, the `/feed` 404, no upload, no peertube); Capacitor **bundles** `www`, so no service worker could ever refresh it. Rebuilt with the tracked `android/` scaffold (JAVA_HOME=Android Studio JBR — the system JDK has no `jlink`; `cap copy` not `cap sync`; gradle **8.9-bin**, not the default 8.7-all; TLS was not MITM-intercepted this run so no truststore needed). Debug signer digest is **unchanged** (`5e6163f9…`) → installs over the old app, no uninstall. Live at `https://companion.gk2.secubox.in/secubox-companion.apk` (3.9 MB, carries SW v11 + peertube). Previous APK kept as `.apk.prev`. + Follow-ups: rebuild the billets `.deb` (migration 0004 + tags.py); consider a token refresh so re-login isn't needed every 24h. --- diff --git a/.claude/WIP.md b/.claude/WIP.md index 2042ea21..45d0fea4 100644 --- a/.claude/WIP.md +++ b/.claude/WIP.md @@ -18,7 +18,7 @@ Sessions traçables, les 2 modules Companion stubs deviennent réels, billets ga ### ⬜ Next / follow-ups - **Rebuild `.deb` billets** (migration 0004 + `services/tags.py` + postinst .pth). - **Refresh token** : éviter la re-login toutes les 24h sur le Companion. -- **APK périmé** : l'APK publié (16/07) embarque le vieux code (SW v5, `/feed`) — rebuild nécessaire. +- ✅ **APK rebuild fait** : republié le 17/07 (SW v11, peertube, upload, re-login 401). Recette : `JAVA_HOME`=JBR Android Studio (le JDK système n'a pas `jlink`), `cap copy` (pas `sync`), gradle **8.9-bin**. Signer debug **inchangé** (`5e6163f9…`) → install par-dessus sans désinstaller. Ancien APK conservé en `.apk.prev`. `android/` est désormais versionné → build reproductible ailleurs. ---