跳到正文
TakoAPI
返回技能列表

android-adb

由 staticai 提供

Browser & Automation
5.0k下载量由 clawskills.sh 提供
11星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

安装

clawhub install staticai/android-adb

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接