Skip to content

v1.18.0 — App Released: Manage the Toolkit From Your Phone

Latest

Choose a tag to compare

@niyazmft niyazmft released this 26 Nov 20:20
· 2 commits to main since this release

The toolkit now has a second front-end, and it fits in your pocket.

Two things land in this release: the engine became a declarative spec runner that can be
driven head-lessly, and an Android app that drives it — install, update, repair and remove
tools, see what is running and what it costs, watch a run's real progress, and set up reboot
recovery. Termux still does the work; nothing here needs root.

📱 App (v0.1.0 beta) — download below

droid-ai-0.1.0.apk · Android 9+ · debug-signed · beta

  • Home tells you what is actually happening: each service with its memory and restart count,
    and the tools you installed with their versions.
  • Tools is the catalogue as cards — install, update, repair, remove — running the same action
    files the terminal menu uses, so a fix lands once instead of twice.
  • Live progress: the step the engine is on ("Step 3 of 7 · Install OpenClaw"), not a spinner.
  • Reboot recovery you can set up and test from the app, with the result remembered.
  • Evidence when it fails: the failing step's own last lines, with the full stream one tap away.
  • About this phone: model, API, architecture, RAM/swap and a memory chart over the last 24 h.

Requirements (the first one is the usual blocker):

  1. Termux from F-Droid — not the Play Store build.
  2. allow-external-apps=true in ~/.termux/termux.properties:
    echo "allow-external-apps=true" >> ~/.termux/termux.properties && termux-reload-settings
  3. Android 9.0+. The app's Setup provisions the toolkit itself, so the curl one-liner is not a
    prerequisite.
  4. Optional: files permission → live progress; notifications → the background watcher;
    Termux:Boot → services restored after a reboot.

⚠️ The APK is debug-signed, so a later build signed with a different key must be installed
over an uninstalled app. And do not use the app's Update button to cross an OpenClaw version
your device cannot run
— some builds are pinned per device because newer ones cannot migrate
their own state on Android. If a tool works today, an update is a choice, not a fix.

⚙️ Engine

  • install.sh --api — list, status [--fast], health, run <id>; NDJSON events, contract
    in docs/CONTRACT.md. The TUI keeps its menus and gained a Catalog entry that runs the same
    actions.
  • --api health answers "is anything alive" in ~35 ms with pure bash (/proc/<pid>) — no
    pm2, no Node, no jq.
  • A usage ledger (lib/usage.sh, scripts/usage_report.sh) so "cheaper" is a number.
  • Uninstall actually uninstalls: a tool living in the pre-migration global/<n> tree is now
    removed, and the step fails if the command still resolves instead of reporting success.
  • Cleanup is gated behind legacy_global_present + tools_migrated and reports what it
    reclaimed.
  • Reboot recovery is an action (service.boot): writes the boot script, saves the PM2 list,
    verifies.
  • Progress feed (~/storage/shared/droid-ai/progress.ndjson) so a client can show the current
    step.

🩹 Fixes found by using it on two devices

  • --api health listed PM2's dead pid files — thirteen "services" for two live processes.
  • Opening Tools triggered two full status reads, so versions appeared twice.
  • The app's smoke harness had four ways to lie (stale uiautomator dump, a run's repaint blocking
    dumps, the selected tab reporting clickable="false", the system USB chooser) — all fixed.

✅ Verification

  • Engine: 7 test scripts, 89 assertions — run in CI on every PR.
  • App: 76 JVM unit tests — run in CI, then the APK is built and uploaded as an artifact.
  • Device: an 8-point smoke suite on an Android 10/API 29 arm64 phone and an Android 9/API 28
    armv8l phone.
  • pnpm run lint:all green (ESLint, Stylelint, Markdownlint, action-spec validation, shellcheck,
    ktlint).

Versions: the toolkit is 1.18.0 (install.sh reports it); the APK keeps its own 0.1.0
track — they are not meant to match.

SHA256SUMS is attached for the APK.