adb-dsh-plugin
DeepSeek Harness tools for controlling Android devices through ADB
AI 분석
核心用途为安卓设备自动化控制。适合需要让 AI 助手直接操作真机或模拟器、进行截图、传输文件及管理应用的开发者。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mang0cola/adb_dsh_plugin配置
在 overlay 的插件行添加 config 即可覆盖默认值:
- insert:
- id: adb-tools
name: '/absolute/path/to/adb_dsh_plugin/src/index.ts'
config:
adbPath: adb
defaultSerial: emulator-5554
allowedSerials:
- emulator-5554
commandTimeoutMs: 30000
transferTimeoutMs: 180000
maxOutputBytes: 1048576
maxScreenshotBytes: 16777216
processGraceMs: 1000
enableShell: false
enableDeviceControl: true
enableFileTransfer: true
enableAppManagement: true
enableDestructiveActions: false
enableScreenshots: true
enableUiHierarchy: true
restrictHostPathsToWorkspace: true
allowedSerials: [] 表示允许所有 ADB 可见设备。restrictHostPathsToWorkspace: true 会解析真实路径并拒绝通过绝对路径、.. 或符号链接访问会话工作区外的宿主机文件。adb_app 的 clear_data 和 uninstall 只有在 enableDestructiveActions: true 时才执行。