Files listed and showed text. It now does what the web's explorer does, through the server's /api/v2/files routes: upload (the system picker, several at once, each streamed from where it is with its progress, one request a file so a 413 for one does not take the others), new folder, new text file (never over one that is there), rename, move and copy through a folder picker that is walked rather than typed into, delete to the trash, a long press to choose and a bar that moves, copies, downloads, shares or deletes all that is chosen through /files/batch -- which answers path by path, and what it refused is said in its own sentences. The trash: list, restore, remove for good, empty. A file's versions: list, restore. Leaving the instance: a download goes into a document the person chose (ACTION_CREATE_DOCUMENT), streamed, several things or a folder as the server's zip. Open with and Share hand another app a copy in the private cache through the FileProvider the camera already uses (one more cache-path, read-only, per grant); the copies go when Files is left, when the app starts and at sign-out. No permission is added. The viewer goes by file_kind. Text kinds as before, now editable up to the server's 1 MB: a save says the sha it opened, a 409 shows the server's sentence with Reload and Save anyway, and leaving with unsaved text asks. The text being edited lives in a ViewModel: a megabyte does not fit a saved instance state. A picture is copied to the cache, decoded with its edge and pixel count capped whatever the file claims, and zooms and pans. A PDF is drawn page by page by the platform's PdfRenderer from a cache copy. Sound and video are played by the platform's MediaPlayer through a MediaDataSource that asks the app's own HTTP client for each piece with a Range request: the token stays in the Authorization header and the player is never given an address, so no player library is added. CSV and TSV are a grid with a row and column cap; a notebook is its cells' text, outputs as plain text only. Archives, 3D models and binaries are their details with Download, Open with and Share. An SVG is its source: the app has no WebView and draws nothing a file could script. Nothing is rendered as HTML. The share sheet has a third place to send to: Save to Files, into a folder chosen with the same picker; shared text is kept as a note. Strings: 61 new keys, 49 worded as the server's explorer words them and translated from its catalogues at the pinned commit, 12 the app's own in all eight languages. An instance without these routes still lists and shows text; what it cannot do says so. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LLeMbas for Android
A native Android app for a LLeMbas instance: your chats and agent chats, notifications that arrive when the app is closed, and LLeMbas as the phone's digital assistant -- hold the power button and ask.
- Native, not a web view. Kotlin and Jetpack Compose on the server's JSON API (
/api/v2). The installable web app keeps working; this is for what a web page on a phone cannot do. - No Google services. Notifications come through UnifiedPush (ntfy, or any distributor you like), so the app runs on de-Googled phones and builds for F-Droid.
- Your instance, nobody else's. Nothing is predefined: the app talks to the address you give it, and to nothing else.
Alpha. 0.x versions may change how things work between releases.
Install
Download the APK from the latest release
and check it against SHA256SUMS. The full APK updates itself from llembas.eu; the -fdroid
one does not. Android 10 or newer; the instance must run LLeMbas server 2.0 or newer (an older
one is refused at sign-in, with a sentence saying so).
Test builds. Every push to dev builds a debug APK: open the newest green run under
Actions, download the
llembas-android-debug-N artifact (GitHub asks you to be signed in), unzip it and install the APK that does
not end in -fdroid. It is a separate app ("eu.llembas.android.debug") beside a released one,
signed with a public test key kept in this repository, so each test build installs over the one
before it -- and anyone could sign one, so take test builds only from this repository's runs.
If your instance uses a certificate from your own certificate authority, install that CA on the phone first (Settings › Security › Encryption & credentials › Install a certificate › CA certificate). The app trusts CAs you installed, as the browser does.
Use
- Sign in: type the instance's address and approve the code shown, in the browser.
- Notifications: install a UnifiedPush distributor (for example ntfy), then Settings › Notifications › Turn notifications on.
- Assistant: Settings › Assistant › Open the assistant settings, and choose LLeMbas as the digital assistant app. On Samsung phones also set Settings › Advanced features › Side button › Press and hold › Digital assistant.
A wake word is there if you want one, off by default: Settings › Assistant › Wake word, a greeting and a name in English ("Hey Assistant"). Android reserves its low-power, always-on hotword detection for the system's own preinstalled assistant, so LLeMbas listens with an on-device engine in a microphone service, with a notification up the whole time; nothing leaves the phone before the word. Not in the F-Droid build.
The wake word and the hands-free parts of the voice assistant (listening by itself, the spoken conversation) are experimental: new, and tried on few phones. Settings marks them so.
Over the lock screen the assistant can listen (the wake word, a headset's button), but nothing goes to the instance and no answer is shown or spoken until the phone is unlocked: with the instance's speech-to-text the question waits on the phone as a recording.
Build
Builds run on GitHub Actions (.github/workflows/ci.yml); locally it is
scripts/fetch-wakeword.py (the wake-word engine and model, hash-pinned, never committed) and
then the usual ./gradlew assembleFullStandardDebug with JDK 17 and the Android SDK.
A release is three APKs of one app, signed with one key:
| File | Build | What it is |
|---|---|---|
llembas-android-<version>.apk |
fullStandard |
The app: updates itself, has the wake word. The one to install. |
llembas-android-<version>-notifications.apk |
fullNotifications |
The same, plus a notification listener for notification summaries. Separate because Google Play Protect blocks installing an app from outside the Play Store that can read notifications; it installs over the standard one, and back. |
llembas-android-<version>-fdroid.apk |
fdroidStandard |
No updater and no wake-word engine: only what F-Droid can build from source. |
scripts/check-apk.sh checks each built file for what it must and must not declare.
Three things are generated from the server at one ref; the first two are pinned with a lock file CI checks, and CI checks the strings against the code:
| What | Script | From the server |
|---|---|---|
ui/theme/Tokens.kt |
scripts/fetch-tokens.py <server-ref> |
tokens.css |
contract/*.json |
scripts/fetch-contract.py <server-ref> |
tests/fixtures/api_v2/ |
res/values*/strings.xml |
scripts/gen-strings.py <server-ref> |
the translation catalogues |
The icons come from the server's pixel leaf (scripts/gen-icons.py).
Licence
MIT -- see LICENSE.