Reference for controlling Android devices and emulators with raw ADB commands.
- What it does
- This skill is a command reference for driving Android devices and emulators through raw adb commands. It covers device and server management, USB and Wi-Fi connection, app launch and force-stop, tap, swipe, keyevent and text input, screenshots, UI hierarchy dumps, APK install and uninstall, and common keycodes. It also lists execution constraints such as targeting a serial when multiple devices are connected and confirming screen resolution before coordinate actions. It produces executed device actions and captured artifacts such as screenshots and UI XML dumps.
- When to use it
- Use it when an Android device or emulator must be discovered, connected over USB or Wi-Fi, or operated through taps, swipes, key events and text entry. It also fits capturing screenshots or UI hierarchy dumps and troubleshooting ADB connection or authorization problems.
- Requirements
- Requires the adb command-line tool with a connected Android device or emulator, and USB or network access to the device. Wi-Fi connection needs USB first to enable tcpip; CJK and special-character input needs the ADB Keyboard app installed and selected as the input method. No scripts are shipped; it is instructions only.