mang0cola/adb_dsh_plugin0

adb-dsh-plugin

用于通过 ADB 控制安卓设备的 DeepSeek Harness 工具插件,支持屏幕截图、文件传输及应用管理。

AI 分析

核心用途为安卓设备自动化控制。适合需要让 AI 助手直接操作真机或模拟器、进行截图、传输文件及管理应用的开发者。

包名
adb-dsh-plugin
版本
0.1.0
许可证
MIT
最近更新
2026年8月14日

安装

$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_appclear_datauninstall 只有在 enableDestructiveActions: true 时才执行。