appium-android-adb
БесплатноБез исполняемых скриптовНе проверенBase skill for Android automation over USB ADB. Ships ocr_bridge.py — the screenshot→RapidOCR→click/swipe→re-verify loop that 12306-android-adb…
от openlittlebear1 587 установок в других каталогахОб этом скилле
Android ADB Bridge (base skill)
Generic Android bridge for any app. Reads screens via OCR, executes taps/scrolling/typing.
📦 This is the base skill
Other skills depend on this one. It ships the shared parts:
| File | Role |
|---|---|
ocr_bridge.py |
The OCR loop — screenshot → RapidOCR → click/swipe → re-verify. This is what dependents use. |
requirements-adb.txt |
Pinned deps for the OCR-loop venv. Dependents install it as $BASE/requirements-adb.txt. |
bridge_daemon.py |
Appium backend (fallback only; see the failure mode below) |
start_bridge.sh |
Launches the Appium daemon (fallback only) |
Dependents: 12306-android-adb, pdd-android-adb, hospital-android-adb. Each documents
$PY $BASE/ocr_bridge.py <cmd> where BASE is this skill's directory, so it works from any working
directory.
ClawHub has no dependency resolver — installing a dependent skill does not install this one. Install it explicitly:
clawhub install appium-android-adb
ocr_bridge.py imports no Appium (only uiautomator2 + rapidocr-onnxruntime), so dependents
pay nothing for the Appium backend they never use. Note the name under-sells the skill: the OCR loop
is the reason it exists and the reason others depend on it.
Two backends:
| Backend | Status | Best for | Limitations |
|---|---|---|---|
uiautomator2 + RapidOCR (ocr_bridge.py) |
✅ Primary (proven end-to-end on 12306 booking 2026-08-30) | UC WebView apps, scrolling, booking buttons, Chinese input | Needs rapidocr_onnxruntime in a venv |
Appium (bridge_daemon.py) |
⚠️ Fallback | Native apps, structured dumps, find/wait |
Dead on many consumer devices: Realme etc. block WRITE_SECURE_SETTINGS, so io.appium.settings and IME switching fail → session never starts |
⚠️ Appium Failure Mode (hit this in production)
On a Realme RMX3350 the Appium path was unusable:
- shell lacks
WRITE_SECURE_SETTINGS→io.appium.settingscommands fail d.set_input_ime()blocked → fastinput IME can't be activated →send_keysfails- Result: Appium session creation error ("settings command problem"), bridge daemon useless
Rule: try the OCR loop FIRST. Only fall back to Appium if the app is fully native and OCR is insufficient.
Quick Start (primary — OCR loop)
# One-time venv (Python 3.10+), shared with the three dependent skills.
# The pins live in requirements-adb.txt, in this skill's directory; adjust BASE
# if you installed the skill somewhere other than the default.
# Pinned deliberately — an unpinned `pip install` resolves "latest" at install
# time, so the code that actually runs is whatever PyPI happened to serve that
# day and can change under you (ClawHub review [T08]).
BASE=~/.openclaw/workspace/skills/appium-android-adb # this skill
python3 -m venv ~/.openclaw/workspace/.venv-adb
~/.openclaw/workspace/.venv-adb/bin/pip install -r $BASE/requirements-adb.txt
# Every interaction is one command:
PY=~/.openclaw/workspace/.venv-adb/bin/python
$PY ocr_bridge.py dump # OCR whole screen: (text, l, t, r, b)
$PY ocr_bridge.py markers # page-state markers
$PY ocr_bridge.py tap-text 预订 --idx 0 # click OCR match, then re-OCR verify
$PY ocr_bridge.py tap 540 1987 # click exact coordinates
$PY ocr_bridge.py swipe up --scale 0.35 # normal list scroll
$PY ocr_bridge.py jump --n 3 # 3 rapid swipes (unstuck virtual list)
$PY ocr_bridge.py wait-text 提交订单 # poll until text appears
uiautomator2 auto-installs its atx-agent on the phone at first connect() — no Appium needed.
The bare $PY ocr_bridge.py … form above works here because you're in this skill's directory.
Dependent skills invoke it as $PY $BASE/ocr_bridge.py … instead — $BASE being this skill's
path — so their commands run from any working directory. Use $BASE in anything you write that has
to work outside this directory.
The Proven Loop
shot():adb exec-out screencap -p(streamed over USB — nothing is written to/sdcard) → RapidOCR →[(text, l, t, r, b)]. Thescreencap+pullpair survives only as a fallback for old platform-tools, and deletes its device-side file.Historical note: this step used to leave
s.pngin/sdcardforever, outside the private 0700 screenshot dir the Safety section promises. Fixed in 1.3.5 — see ClawHub review finding[T09].Decide: page-state via
markers(), position viadeps()(HH:MM at x<250)Act:
d.click(cx, cy)/d.swipe_ext('up', scale=0.35)/d.swipe(x1,y1,x2,y2,duration=0.4)Always re-OCR after every action and verify the screen actually changed — this is what makes the loop robust against the virtual list's lies.
Chinese Input (no IME needed)
IME switching is blocked on locked-down devices. The proven route:
d.set_clipboard('苏州') # uiautomator2 clipboard (works where fastin
Установить appium-android-adb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл appium-android-adb?
Base skill for Android automation over USB ADB. Ships ocr_bridge.py — the screenshot→RapidOCR→click/swipe→re-verify loop that 12306-android-adb, pdd-android-adb and hospital-android-adb all depend on. Primary backend is direct uiautomator2 + RapidOCR (battle-proven on real 12306 and hospital bookings); Appium via bridge_daemon.py is kept only as a fallback for fully native apps and is dead on Realme-class devices. ClawHub has no dependency resolver — install this alongside any skill that names it as a requirement.
Как установить скилл appium-android-adb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл appium-android-adb запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic