Install
openclaw skills install android-adbControl Android devices via ADB with support for UI layout analysis (uiautomator) and visual feedback (screencap). Use when you need to interact with Android apps, perform UI automation, take screenshots, or run complex ADB command sequences.
openclaw skills install android-adbControl and automate Android devices using ADB, uiautomator, and screencap.
adb devices.adb pair <ip>:<pairing_port> <pairing_code>adb connect <ip>:<connection_port>adb devices.Use the monkey tool to launch apps by package name:
adb shell monkey -p <package_name> -c android.intent.category.LAUNCHER 1
Dump and pull the UI hierarchy to find coordinates:
adb shell uiautomator dump /sdcard/view.xml && adb pull /sdcard/view.xml ./view.xml
Then grep for text or resource IDs to find bounds="[x1,y1][x2,y2]".
adb shell input tap <x> <y>adb shell input text "<text>" (Note: Use %\s for spaces in some environments or handle quoting carefully)adb shell input keyevent <keycode> (Home: 3, Back: 4, Power: 26, Search: 84, Enter: 66)adb shell input swipe <x1> <y1> <x2> <y2> <duration_ms>Take a screenshot to verify the state:
adb shell screencap -p /sdcard/screen.png && adb pull /sdcard/screen.png ./screen.png
input keyevent 84 to trigger search in many apps.sleep <seconds> between commands to allow the UI to update.[x1,y1][x2,y2] for reliable taps.