Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

android-adb

bởi staticai

Browser & Automation
5.0kLượt tải do clawskills.sh công bố
11Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Control Android devices via ADB with support for UI layout analysis.

Mô tả

Kỹ năng này làm gì

Controls Android devices remotely using ADB commands. Supports UI hierarchy inspection via uiautomator to locate elements by coordinates, and screencap for visual state verification. Works over USB or wireless on Android 11+.

Combines UI inspection, element interaction, and screenshot verification in one ADB-based workflow without requiring app source code, a test build, or an emulator.

Khi nào nên dùng

  • Automating repetitive in-app actions on a physical device
  • Running UI tests on real Android hardware without app source code
  • Capturing screenshots during scripted test flows
  • Launching apps by package name from a script or agent
  • Locating UI element coordinates for reliable tap interactions

Quy trình ví dụ

ĐẦU VÀO

User asks: Open the Settings app and take a screenshot of the Wi-Fi settings screen

AGENT
  1. 1

    Verify device connection with adb devices

  2. 2

    Launch Settings using adb shell monkey with the package name

  3. 3

    Dump UI hierarchy with uiautomator dump to locate the Wi-Fi menu item

  4. 4

    Tap the Wi-Fi item using coordinates extracted from the hierarchy XML

  5. 5

    Capture and pull the screen with adb shell screencap and adb pull

ĐẦU RA

screen.png saved locally showing the Wi-Fi settings screen

Cài đặt

clawhub install staticai/android-adb

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết