Token导航 LogoToken导航TokenDH.com
开发操作浏览器clawhub未标认证来源可访问clear审计通过

adb-android安卓亚行

Agent Skill

adb-android 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

13,893

周安装

562

GitHub Stars

公开资料未说明

下载量

4,361
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:adb-android(安卓亚行)
来源仓库:https://github.com/dr-xiaoming/adb-android
安装命令:
openclaw skills install adb-android
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install adb-android

简介

通过 ADB 远程控制 Android 设备执行点击滑动等操作。

  • 适用于手机自动化测试与远程操控场景。
  • 支持屏幕截图、录屏与应用启动功能。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 需开启 USB 调试模式并建立设备连接。
  • 操作期间请避免中断数据线连接。adb-android 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
adb-android
description
>

ADB Android Control (macOS)

Control Android devices from a Mac via ADB over USB or Wi-Fi.

Prerequisites

Install on macOS:

brew install android-platform-tools
# Verify
adb version

Optional but recommended — scrcpy for screen mirroring:

brew install scrcpy

Device Connection

USB

  1. Enable Developer Options on Android: Settings → About Phone → tap Build Number 7 times
  2. Enable USB Debugging in Developer Options
  3. Connect USB cable, approve the RSA key prompt on phone
  4. Verify: adb devices should show device as device (not unauthorized)

Wireless (Wi-Fi) — Android 11+

# On phone: Developer Options → Wireless Debugging → enable → Pair with code
adb pair <phone-ip>:<pair-port>    # Enter the 6-digit code
adb connect <phone-ip>:<connect-port>
adb devices   # Should show connected

Wireless (Legacy, Android 10 and below)

# Connect via USB first, then:
adb tcpip 5555
adb connect <phone-ip>:5555
# Disconnect USB

Core Commands

Device Info

adb devices -l                     # List with details
adb shell getprop ro.product.model # Device model
adb shell getprop ro.build.version.release  # Android version
adb shell dumpsys battery          # Battery info
adb shell wm size                  # Screen resolution

App Management

adb install app.apk               # Install
adb install -r app.apk            # Reinstall keeping data
adb uninstall com.example.app     # Uninstall
adb shell pm list packages         # All packages
adb shell pm list packages -3      # Third-party only
adb shell am start -n com.example.app/.MainActivity  # Launch app
adb shell am force-stop com.example.app              # Force stop
adb shell pm clear com.example.app                   # Clear app data

File Transfer

adb push local_file /sdcard/       # Mac → Phone
adb pull /sdcard/file.jpg ./       # Phone → Mac
adb shell ls /sdcard/              # List files

Screen Interaction (UI Automation)

adb shell input tap 500 800        # Tap at (x,y)
adb shell input swipe 500 1500 500 500 300  # Swipe (x1,y1,x2,y2,durationMs)
adb shell input text "hello"       # Type text (no spaces — use %s for space)
adb shell input keyevent 66        # Press Enter
adb shell input keyevent 4         # Press Back
adb shell input keyevent 3         # Press Home
adb shell input keyevent 26        # Power button
adb shell input keyevent 187       # Recent apps

Common keyevent codes: See references/keyevent-codes.md

Screenshot & Recording

adb shell screencap /sdcard/screen.png && adb pull /sdcard/screen.png ./
adb shell screenrecord /sdcard/video.mp4   # Record (Ctrl+C to stop, max 3min)
adb shell screenrecord --time-limit 10 /sdcard/video.mp4  # 10 seconds
adb pull /sdcard/video.mp4 ./

Logcat

adb logcat                         # Full log stream
adb logcat -d                      # Dump and exit
adb logcat *:E                     # Errors only
adb logcat -s "MyTag"              # Filter by tag
adb logcat --pid=$(adb shell pidof com.example.app)  # App-specific
adb logcat -c                      # Clear log buffer

Shell & System

adb shell                          # Interactive shell
adb shell whoami                   # Current user
adb shell settings get system screen_brightness  # Get brightness
adb shell settings put system screen_brightness 128  # Set brightness (0-255)
adb shell svc wifi enable          # Enable Wi-Fi
adb shell svc wifi disable         # Disable Wi-Fi
adb shell dumpsys activity top     # Current foreground activity
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE  # Toggle airplane
adb reboot                         # Reboot device

Clipboard

adb shell am broadcast -a clipper.set -e text "content to copy"  # Requires Clipper app
# Alternative for Android 10+:
adb shell input text "paste this"

Screen Mirroring with scrcpy

scrcpy                             # Mirror with default settings
scrcpy --max-size 1024             # Limit resolution
scrcpy --bit-rate 2M               # Limit bitrate
scrcpy --record file.mp4           # Mirror + record
scrcpy --no-audio                  # Video only
scrcpy --turn-screen-off           # Mirror but keep phone screen off
scrcpy --stay-awake                # Prevent sleep while connected
scrcpy --window-title "MyPhone"    # Custom window title
scrcpy --crop 1080:1920:0:0        # Crop region (w:h:x:y)

Wireless scrcpy (after adb connect):

scrcpy --tcpip=<phone-ip>:<port>

Multi-Device

When multiple devices are connected, specify the target:

adb -s <serial> shell ...          # By serial number
adb -s <ip>:<port> shell ...       # By IP (wireless)

Get serial: adb devices — first column is the serial.

Automation Patterns

Take screenshot → analyze → tap

# 1. Screenshot
adb shell screencap /sdcard/screen.png && adb pull /sdcard/screen.png ./screen.png
# 2. Analyze image (use vision model or image tool)
# 3. Tap target coordinates
adb shell input tap <x> <y>

Batch install APKs

for apk in *.apk; do adb install -r "$apk"; done

Open URL in browser

adb shell am start -a android.intent.action.VIEW -d "https://example.com"

Send SMS (requires default SMS app handling)

adb shell am start -a android.intent.action.SENDTO -d "sms:+1234567890" --es sms_body "Hello"

Troubleshooting

IssueFix
unauthorized in adb devicesApprove RSA prompt on phone; revoke & re-approve in Developer Options
offlineReconnect USB; adb kill-server && adb start-server
Wireless disconnectRe-pair: adb pair or reconnect: adb connect
no permissionsOn Linux: add udev rules; on Mac: usually not an issue
Slow wirelessUse 5GHz Wi-Fi; keep phone and Mac on same network
scrcpy black screenUpdate scrcpy; try --codec h264; check USB debugging enabled

Node Execution (for OpenClaw on cloud servers)

When the agent runs on a cloud server (not directly on the Mac), execute ADB commands on the Mac node:

Use exec with host="node" and node="<mac-node-name>" to run adb commands on the Mac
that has the Android phone connected via USB.

This is the typical setup: the Android phone is USB-connected to the Mac, and the agent orchestrates from the cloud.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.84%
按下载量换算3,307

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills