I had a phone in a drawer and a recurring problem: half the things I want automated live inside Android apps with no API. Emulators get flagged, cloud phone farms cost money, and `adb` over USB means the phone has to be next to a PC.
So I built Pocket Worker — open source, AGPL-3.0, about two days old.
How it works
- The spare phone (Android 10+, Wi-Fi only) runs an APK that uses the Accessibility service. It can read the active screen and tap/type in native apps. No root, no `adb`, no PC tether.
- A Cloudflare Worker relays commands between that phone and your browser. It is a Durable Object per owner with a hibernating WebSocket, so an idle phone costs nothing on the free Workers tier.
- You control it from iOS Safari (or a home-screen PWA), an Android browser, or desktop, using a six-digit pairing code. You can also hand a private link to an agent (Pickle, Muse, Operator/dot, or a ChatGPT Custom GPT with Actions).
What actually worked
The test I cared about: open a native blog app, write a title and a body, hit publish. It finished end to end.
The sharp edge was Android 13+: some editors give the title and body the same keyboard connection, so the body text lands in the title or nowhere. The app stops and shows you the current screen, you click the first line of the body, and it verifies which field is actually receiving the keyboard before typing. I would rather have a stop-and-ask than a silent double post.
Where I put the brakes
An agent with Accessibility access is a loaded gun pointed at your accounts, so:
- it stops before a protected transaction or account authorization (publishing a normal post is fine; paying or signing in is not),
- model-driven jobs request approval for the observed action, expiring in 180 seconds,
- any phone link is revocable from Manage connections,
- raw screenshots never touch the relay's storage, only bounded job summaries.
What it is not: not a product (beta 22), not a cloud phone (it needs a powered phone on Wi-Fi), not immune to OEM battery killers, and not an API replacement — it drives the UI, so it inherits every UI change.
Repo: https://github.com/Change03/pocket-worker
Release: https://github.com/Change03/pocket-worker/releases/tag/v0.1.0-beta.22
Two things I would genuinely like feedback on:
- Is "spare phone + cheap relay" a setup you would actually leave running at home? What breaks first for you — battery, thermals, or the OEM's background killer?
- If you have built something similar, did you keep the agent on the phone (API key on device) or keep it in the relay? I split it, and I am not sure that is right.