Modern Automation
A portable engine that drives Android apps by looking at the screen, built to be tested, safe to leave running, and easy to extend.
What it is
A private, personal project. It runs on macOS, Linux (Fedora) and Windows, talks to a device or emulator over adb, and decides what to tap by matching screenshots against templates. Each app it knows about is a plugin: screens, pop-up rules, routes and tasks. Nothing about it is published; this page describes how it is built.
How it works
- Screen only. Everything is driven by screenshots and input events over adb. No app memory, network traffic or app modification is touched.
- Never tap blind. A task reads the screen before each tap and proves the expected screen arrived afterwards. A stage loop stops with a named reason (
target,unknown_screen,limit,stuck) instead of guessing. - Layers. Transport, vision, privacy, screen logic, a queue-based engine, per-app plugins, and interfaces (a CLI and a localhost monitor).
- Tasks compose. A daily routine is a list of child tasks, each recording its own outcome in a per-day ledger so a rerun skips what is already done.
- Pop-ups handled outside tasks. A wrapper dismisses interruptions with template rules, so task code stays about the task.
Safety and privacy by design
- Redaction fails closed. Names and IDs are blanked before any image is saved; if redaction cannot be applied, the save is refused. Templates are cut from redacted frames.
- Safe dismissal. When something unexpected appears, the fallback reads the screen and taps only decline or leave buttons. Any word about money or a sale blocks it.
- Hard rules. No spending, no selling without explicit approval, and a stop on any energy or purchase dialog rather than a retry.
- Watchdogs. A lobby guard before tasks start, a stuck watcher that counts taps that change nothing, and an idle timeout per device.
Testing and delivery
- A fake transport replays recorded frames and records actions, so the engine is tested without a device. The suite passed 1,796 tests on 2026-11-09, with 42 skipped that need machine-only fixtures.
- CI runs across macOS, Windows and Linux. Work lands as small Conventional Commits; the repo has about 425 commits since the first on 2026-10-20.
- Templates and per-device data stay outside git and move between machines as one checksummed archive.
Beyond one app: where the engine applies
The engine is app-agnostic. Only the plugin (screens, templates, routes, tasks) is specific to an app. These are uses the architecture supports; none is built yet, and the first plugin is the only one proven so far.
- Mobile app regression and smoke testing. Drive a real build on a real device through its key flows and fail with a named reason and a redacted screenshot. Useful where UI tests are brittle or the app can't be instrumented.
- Apps with no API (RPA on Android). Field, kiosk or line-of-business apps where the only interface is the screen: scheduled data entry, status checks and report pulls.
- Device-fleet health checks. Cycle a shelf of test phones and tablets, confirm each is signed in, updated and on the expected screen, and log the result per device.
- Visual regression. The template-matching and scoring layers can compare screens across releases, resolutions and locales.
- Accessibility and localization sweeps. Walk every reachable screen at different font sizes and languages and capture the layouts that break.
- Scripted demos and training. Repeatable, hands-free walkthroughs of an app for sales demos or onboarding material.
What carries over unchanged: the adb transport, vision layer, task queue, per-day ledger, pop-up handling, the watchdogs and the fail-closed redaction. What each new app needs: its own templates and a small plugin. Any automation should stay within the app's terms and use accounts and devices you own.
Where it is now
About 60 tasks are registered in the first plugin. The daily runs are moving from a Mac emulator to a Fedora PC driving a physical Android tablet, which is the portability the design aimed at from the start. Figures are from the project repo in November 2026.
Source is private. Happy to talk through the design.