Three APKs: the notification listener leaves the standard builds; releases drop x86_64
CI / check (push) Canceled after 0s

Google Play Protect blocked installing beta.7, most likely for the
notification listener (notification summaries).

- A second flavour dimension, `reading`: `standard` declares no listener and
  no permission of it; `notifications` is the full build plus the listener,
  with the same application id and key. Variants: fullStandard,
  fullNotifications, fdroidStandard (no F-Droid build with the listener).
  The listener class and its manifest entry live in src/notifications only.
- Settings in a standard build says where notification summaries went and
  why. The self-updater installs only its own kind: a notifications build
  takes latest.json's optional `notifications {url, sha256}` or nothing.
- Release builds carry arm64-v8a and armeabi-v7a only; debug keeps x86_64
  for the emulator. The engine's unused C and C++ API libraries are left out.
- scripts/check-apk.sh checks the built files (listener only where it may
  be, model stored, no x86 in a release); CI runs it on the three debug APKs
  and on an unsigned release build, release.yml on what it publishes.
- release.yml publishes llembas-android-<version>.apk, -notifications.apk
  and -fdroid.apk with SHA256SUMS.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Fable 5.2 committed 2026-11-12 09:58:07 +00:00
1 parent 6a05f56e7c
commit f2a2acf996
28 files changed
+403 -140

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
#!/usr/bin/env bash
# What an APK declares and carries, checked on the built file rather than believed from the build
# script. CI runs it on every push's builds and the release workflow on what it is about to publish.
#
# scripts/check-apk.sh <apk> <kind> [release]
#
# <kind> is `standard` (the full build), `fdroid` or `notifications`:
# - only `notifications` may declare a notification listener or name its permission; the other
# two must have nothing of it in the manifest (Google Play Protect blocks installing an app
# from outside the Play Store that can read notifications);
# - `standard` and `notifications` carry the wake-word model, stored uncompressed, and the
# engine's library for arm64; `fdroid` carries neither;
# - with `release`, no x86_64 library (only an emulator would load it).
set -euo pipefail
apk="$1"; kind="$2"; release="${3:-}"
[ -f "$apk" ] || { echo "check-apk: no $apk" >&2; exit 1; }
fail() { echo "check-apk: $(basename "$apk"): $1" >&2; exit 1; }
aapt2="$(find "${ANDROID_HOME:?ANDROID_HOME is not set}/build-tools" -name aapt2 -type f | sort -V | tail -1)"
[ -x "$aapt2" ] || fail "no aapt2 under ANDROID_HOME"
manifest="$("$aapt2" dump xmltree --file AndroidManifest.xml "$apk")"
listener=0
grep -qiE "notification_?listener" <<<"$manifest" && listener=1
case "$kind" in
notifications) [ "$listener" = 1 ] || fail "the notifications build declares no notification listener" ;;
standard|fdroid) [ "$listener" = 0 ] || fail "a $kind build must not declare a notification listener" ;;
*) fail "unknown kind $kind" ;;
esac
files="$(unzip -v "$apk")"
models="$(awk '$NF ~ /^assets\/wakeword\/.*\.onnx$/' <<<"$files")"
if [ "$kind" = fdroid ]; then
[ -z "$models" ] || fail "the fdroid build carries the wake-word model"
! grep -q " lib/.*libsherpa" <<<"$files" || fail "the fdroid build carries the wake-word engine"
else
[ "$(wc -l <<<"$models")" = 3 ] || fail "expected the three model files in assets/wakeword"
! awk '$2 != "Stored"' <<<"$models" | grep -q . || fail "a model file is compressed (the engine's files must be stored)"
grep -q " assets/wakeword/version$" <<<"$files" || fail "no assets/wakeword/version"
grep -q " lib/arm64-v8a/libsherpa-onnx-jni.so$" <<<"$files" || fail "no arm64 wake-word engine"
fi
if [ "$release" = release ]; then
! grep -q " lib/x86" <<<"$files" || fail "a release must carry no x86 library"
fi
size="$(stat -c %s "$apk")"
echo "check-apk: $(basename "$apk"): $kind${release:+ $release}, $((size / 1024 / 1024)) MB, as it should be"
+2
View File
@@ -476,6 +476,8 @@ STRINGS: dict[str, str] = {
"notification_summaries": "Notification summaries",
"notification_summaries_switch": "Let the assistant read my notifications when I ask",
"notification_summaries_line": "Ask “summarise my notifications”, or tap the chip in the assistant.",
"notification_summaries_unavailable": "Not in this build. Reading notifications needs the “notifications” build of LLeMbas, because Google Play Protect blocks installing an app from outside the Play Store that can read them. It is the same app with the same signature: on the release page, the file ending in -notifications.apk installs over this one.",
"update_notifications_manual": "This is the “notifications” build: install the update from its release page, the file ending in -notifications.apk.",
"notification_access": "Notification access",
"notification_access_on": "Given. Android's switch for it is in the system's settings.",
"notification_access_off": "Not given yet. Tap to open Android's switch for LLeMbas.",
+16
View File
@@ -143,6 +143,7 @@
"notification_summaries_line": "Řekněte „shrň moje oznámení“, nebo klepněte na tlačítko v asistentovi.",
"notification_summaries_privacy": "Ve výchozím stavu vypnuto. Když požádáte, text oznámení, která jsou v telefonu právě teď (aplikace, název, text), půjde s touto jedinou otázkou na vaši instanci a její model. Dřív se nic nečte, aplikace si nic neponechá a při zamčeném telefonu se nečte nic. Přístup k oznámením v Androidu dovolí aplikaci vidět každé oznámení, proto je na vás, zda ho dáte a zase vezmete.",
"notification_summaries_switch": "Dovolit asistentovi číst má oznámení, když o to požádám",
"notification_summaries_unavailable": "V tomto sestavení není. Čtení oznámení vyžaduje sestavení LLeMbas „notifications“, protože Google Play Protect blokuje instalaci aplikace mimo Obchod Play, která je umí číst. Je to stejná aplikace se stejným podpisem: na stránce vydání se soubor končící na -notifications.apk nainstaluje přes tuto.",
"notify_always": "Dá vědět pokaždé",
"notify_matters": "Dá vědět, když na tom záleží",
"notify_never": "Nedá vědět nikdy",
@@ -254,6 +255,7 @@
"update_none": "Toto je nejnovější verze.",
"update_notice_text": "Je k dispozici novější verze. Klepnutím otevřete stránku vydání.",
"update_notice_title": "LLeMbas pro Android %1$s",
"update_notifications_manual": "Toto je sestavení „notifications“: aktualizaci nainstalujte ze stránky vydání, soubor končící na -notifications.apk.",
"update_unreachable": "Aktualizaci se nepodařilo stáhnout.",
"viewer_html_source": "Toto je zdrojový kód stránky. Samotnou stránku uvidíte po otevření v prohlížeči.",
"viewer_long_markdown": "Dlouhý soubor, proto je zobrazen jako prostý text.",
@@ -462,6 +464,7 @@
"notification_summaries_line": "Sag „fasse meine Benachrichtigungen zusammen“ oder tippe auf den Chip im Assistenten.",
"notification_summaries_privacy": "Standardmäßig aus. Wenn du fragst, geht der Text der Benachrichtigungen, die gerade auf deinem Telefon sind (App, Titel, Text), mit dieser einen Frage an deine Instanz und ihr Modell. Vorher wird nichts gelesen, die App behält nichts davon, und bei gesperrtem Telefon wird nichts gelesen. Der Benachrichtigungszugriff von Android lässt eine App jede Benachrichtigung sehen; ihn zu erteilen und zu entziehen liegt bei dir.",
"notification_summaries_switch": "Den Assistenten meine Benachrichtigungen lesen lassen, wenn ich frage",
"notification_summaries_unavailable": "Nicht in diesem Build. Das Lesen von Benachrichtigungen braucht den „notifications“-Build von LLeMbas, weil Google Play Protect die Installation einer App von außerhalb des Play Store blockiert, die sie lesen kann. Es ist dieselbe App mit derselben Signatur: Auf der Release-Seite lässt sich die Datei, die auf -notifications.apk endet, über diese installieren.",
"notify_always": "Meldet sich jedes Mal",
"notify_matters": "Meldet sich, wenn es wichtig ist",
"notify_never": "Meldet sich nie",
@@ -573,6 +576,7 @@
"update_none": "Dies ist die neueste Version.",
"update_notice_text": "Eine neuere Version ist verfügbar. Tippen Sie, um die Release-Seite zu öffnen.",
"update_notice_title": "LLeMbas für Android %1$s",
"update_notifications_manual": "Dies ist der „notifications“-Build: Installiere das Update von der Release-Seite, die Datei, die auf -notifications.apk endet.",
"update_unreachable": "Das Update konnte nicht abgerufen werden.",
"viewer_html_source": "Das ist der Quelltext der Seite. Die Seite selbst sehen Sie im Browser.",
"viewer_long_markdown": "Eine lange Datei, daher wird sie als reiner Text angezeigt.",
@@ -780,6 +784,7 @@
"notification_summaries_line": "Pide «resume mis notificaciones» o toca el botón en el asistente.",
"notification_summaries_privacy": "Desactivado por defecto. Cuando lo pides, el texto de las notificaciones que hay ahora en tu teléfono (app, título, texto) va con esa única pregunta a tu instancia y su modelo. No se lee nada antes, la app no guarda nada y no se lee nada con el teléfono bloqueado. El acceso a notificaciones de Android permite a una app ver todas las notificaciones; darlo y retirarlo es cosa tuya.",
"notification_summaries_switch": "Dejar que el asistente lea mis notificaciones cuando lo pida",
"notification_summaries_unavailable": "No en esta versión. Leer notificaciones requiere la versión «notifications» de LLeMbas, porque Google Play Protect bloquea la instalación de una app de fuera de Play Store que pueda leerlas. Es la misma app con la misma firma: en la página de la versión, el archivo que termina en -notifications.apk se instala sobre esta.",
"notify_always": "Avisa siempre",
"notify_matters": "Avisa cuando importa",
"notify_never": "No avisa nunca",
@@ -891,6 +896,7 @@
"update_none": "Esta es la versión más reciente.",
"update_notice_text": "Hay una versión más reciente. Toque para abrir su página de publicación.",
"update_notice_title": "LLeMbas para Android %1$s",
"update_notifications_manual": "Esta es la versión «notifications»: instala la actualización desde su página, el archivo que termina en -notifications.apk.",
"update_unreachable": "No se pudo obtener la actualización.",
"viewer_html_source": "Este es el código fuente de la página. Ábrala en el navegador para ver la página.",
"viewer_long_markdown": "Un archivo largo, por eso se muestra como texto sin formato.",
@@ -1099,6 +1105,7 @@
"notification_summaries_line": "Demandez « résume mes notifications », ou touchez la puce dans l’assistant.",
"notification_summaries_privacy": "Désactivé par défaut. Quand vous le demandez, le texte des notifications présentes sur votre téléphone (app, titre, texte) part avec cette seule question vers votre instance et son modèle. Rien n’est lu avant, l’app n’en garde rien, et rien n’est lu téléphone verrouillé. L’accès aux notifications d’Android permet à une app de voir toutes les notifications : c’est à vous de l’accorder et de le retirer.",
"notification_summaries_switch": "Laisser l’assistant lire mes notifications quand je le demande",
"notification_summaries_unavailable": "Pas dans cette version. Lire les notifications demande la version « notifications » de LLeMbas, car Google Play Protect bloque l’installation d’une app hors du Play Store capable de les lire. C’est la même app avec la même signature : sur la page de la version, le fichier se terminant par -notifications.apk s’installe par-dessus celle-ci.",
"notify_always": "Prévient à chaque fois",
"notify_matters": "Prévient quand c’est important",
"notify_never": "Ne prévient jamais",
@@ -1210,6 +1217,7 @@
"update_none": "C'est la version la plus récente.",
"update_notice_text": "Une version plus récente est disponible. Touchez pour ouvrir sa page de publication.",
"update_notice_title": "LLeMbas pour Android %1$s",
"update_notifications_manual": "Ceci est la version « notifications » : installez la mise à jour depuis sa page, le fichier se terminant par -notifications.apk.",
"update_unreachable": "La mise à jour n'a pas pu être récupérée.",
"viewer_html_source": "Ceci est le code source de la page. Ouvrez-la dans le navigateur pour voir la page elle-même.",
"viewer_long_markdown": "Un fichier long, il est donc affiché en texte brut.",
@@ -1418,6 +1426,7 @@
"notification_summaries_line": "Kérd, hogy „foglald össze az értesítéseimet”, vagy koppints a gombra az asszisztensben.",
"notification_summaries_privacy": "Alapból ki van kapcsolva. Ha kéred, a telefonon éppen látható értesítések szövege (alkalmazás, cím, szöveg) ezzel az egy kérdéssel együtt a példányodhoz és a modelljéhez kerül. Előtte semmit nem olvas, az alkalmazás semmit nem tart meg, és zárolt telefonnál semmit nem olvas. Az Android értesítés-hozzáférése minden értesítést láthatóvá tesz egy alkalmazásnak, ezért rajtad múlik, megadod-e, és visszavonod-e.",
"notification_summaries_switch": "Az asszisztens kérésemre elolvashatja az értesítéseimet",
"notification_summaries_unavailable": "Ebben a változatban nincs. Az értesítések olvasásához a LLeMbas „notifications” változata kell, mert a Google Play Protect letiltja az olyan, Play Áruházon kívüli alkalmazás telepítését, amely olvasni tudja őket. Ugyanaz az alkalmazás ugyanazzal az aláírással: a kiadás oldalán a -notifications.apk végű fájl erre telepíthető rá.",
"notify_always": "Mindig szól",
"notify_matters": "Szól, ha számít",
"notify_never": "Soha nem szól",
@@ -1529,6 +1538,7 @@
"update_none": "Ez a legújabb verzió.",
"update_notice_text": "Újabb verzió érhető el. Koppintson a kiadás oldalának megnyitásához.",
"update_notice_title": "LLeMbas Androidra %1$s",
"update_notifications_manual": "Ez a „notifications” változat: a frissítést a kiadás oldaláról telepítsd, a -notifications.apk végű fájlt.",
"update_unreachable": "A frissítést nem sikerült letölteni.",
"viewer_html_source": "Ez az oldal forráskódja. Magát az oldalt a böngészőben megnyitva láthatja.",
"viewer_long_markdown": "Hosszú fájl, ezért egyszerű szövegként jelenik meg.",
@@ -1736,6 +1746,7 @@
"notification_summaries_line": "Chiedi «riassumi le mie notifiche» o tocca il pulsante nell’assistente.",
"notification_summaries_privacy": "Disattivato per impostazione predefinita. Quando lo chiedi, il testo delle notifiche presenti ora sul telefono (app, titolo, testo) va con quella sola domanda alla tua istanza e al suo modello. Prima non si legge nulla, l’app non conserva nulla e a telefono bloccato non si legge nulla. L’accesso alle notifiche di Android permette a un’app di vedere ogni notifica: concederlo e revocarlo spetta a te.",
"notification_summaries_switch": "Lascia che l’assistente legga le mie notifiche quando lo chiedo",
"notification_summaries_unavailable": "Non in questa build. Leggere le notifiche richiede la build «notifications» di LLeMbas, perché Google Play Protect blocca l’installazione di un’app esterna al Play Store in grado di leggerle. È la stessa app con la stessa firma: nella pagina della release, il file che termina in -notifications.apk si installa sopra questa.",
"notify_always": "Avvisa ogni volta",
"notify_matters": "Avvisa quando conta",
"notify_never": "Non avvisa mai",
@@ -1847,6 +1858,7 @@
"update_none": "Questa è la versione più recente.",
"update_notice_text": "È disponibile una versione più recente. Tocca per aprire la pagina della release.",
"update_notice_title": "LLeMbas per Android %1$s",
"update_notifications_manual": "Questa è la build «notifications»: installa l’aggiornamento dalla pagina della release, il file che termina in -notifications.apk.",
"update_unreachable": "Non è stato possibile scaricare l'aggiornamento.",
"viewer_html_source": "Questo è il sorgente della pagina. Aprila nel browser per vedere la pagina.",
"viewer_long_markdown": "Un file lungo, quindi è mostrato come testo semplice.",
@@ -2054,6 +2066,7 @@
"notification_summaries_line": "Poproś „podsumuj moje powiadomienia” albo dotknij przycisku w asystencie.",
"notification_summaries_privacy": "Domyślnie wyłączone. Gdy poprosisz, tekst powiadomień, które są teraz na telefonie (aplikacja, tytuł, treść), trafi z tym jednym pytaniem do Twojej instancji i jej modelu. Wcześniej nic nie jest czytane, aplikacja niczego nie zachowuje i nic nie jest czytane przy zablokowanym telefonie. Dostęp do powiadomień w Androidzie pozwala aplikacji widzieć każde powiadomienie, więc to Ty decydujesz, czy go dać i odebrać.",
"notification_summaries_switch": "Pozwól asystentowi czytać moje powiadomienia, gdy poproszę",
"notification_summaries_unavailable": "Nie w tej wersji. Czytanie powiadomień wymaga wersji „notifications” LLeMbas, bo Google Play Protect blokuje instalację aplikacji spoza Sklepu Play, która potrafi je czytać. To ta sama aplikacja z tym samym podpisem: na stronie wydania plik kończący się na -notifications.apk instaluje się na tę.",
"notify_always": "Powiadamia za każdym razem",
"notify_matters": "Powiadamia, gdy to ważne",
"notify_never": "Nigdy nie powiadamia",
@@ -2165,6 +2178,7 @@
"update_none": "To jest najnowsza wersja.",
"update_notice_text": "Dostępna jest nowsza wersja. Dotknij, aby otworzyć jej stronę wydania.",
"update_notice_title": "LLeMbas na Androida %1$s",
"update_notifications_manual": "To jest wersja „notifications”: zainstaluj aktualizację ze strony wydania, plik kończący się na -notifications.apk.",
"update_unreachable": "Nie udało się pobrać aktualizacji.",
"viewer_html_source": "To jest źródło strony. Otwórz ją w przeglądarce, aby zobaczyć samą stronę.",
"viewer_long_markdown": "Długi plik, dlatego jest pokazany jako zwykły tekst.",
@@ -2372,6 +2386,7 @@
"notification_summaries_line": "Povedzte „zhrň moje oznámenia“, alebo ťuknite na tlačidlo v asistentovi.",
"notification_summaries_privacy": "Predvolene vypnuté. Keď požiadate, text oznámení, ktoré sú v telefóne práve teraz (aplikácia, názov, text), pôjde s touto jedinou otázkou na vašu inštanciu a jej model. Predtým sa nič nečíta, aplikácia si nič neponechá a pri zamknutom telefóne sa nečíta nič. Prístup k oznámeniam v Androide dovolí aplikácii vidieť každé oznámenie, preto je na vás, či ho dáte a znova vezmete.",
"notification_summaries_switch": "Dovoliť asistentovi čítať moje oznámenia, keď o to požiadam",
"notification_summaries_unavailable": "V tomto zostavení nie je. Čítanie oznámení vyžaduje zostavenie LLeMbas „notifications“, pretože Google Play Protect blokuje inštaláciu aplikácie mimo Obchodu Play, ktorá ich dokáže čítať. Je to tá istá aplikácia s tým istým podpisom: na stránke vydania sa súbor končiaci na -notifications.apk nainštaluje cez túto.",
"notify_always": "Dá vedieť zakaždým",
"notify_matters": "Dá vedieť, keď na tom záleží",
"notify_never": "Nedá vedieť nikdy",
@@ -2483,6 +2498,7 @@
"update_none": "Toto je najnovšia verzia.",
"update_notice_text": "Je dostupná novšia verzia. Ťuknutím otvoríte stránku vydania.",
"update_notice_title": "LLeMbas pre Android %1$s",
"update_notifications_manual": "Toto je zostavenie „notifications“: aktualizáciu nainštalujte zo stránky vydania, súbor končiaci na -notifications.apk.",
"update_unreachable": "Aktualizáciu sa nepodarilo stiahnuť.",
"viewer_html_source": "Toto je zdrojový kód stránky. Samotnú stránku uvidíte po otvorení v prehliadači.",
"viewer_long_markdown": "Dlhý súbor, preto je zobrazený ako obyčajný text.",