mang0cola/adb_dsh_plugin
用于通过ADB控制Android设备的DeepSeek Harness插件
Project Overview项目介绍
This is a DSH-native plugin that registers a locally installed Android Debug Bridge (ADB) instance as a set of callable tools for DeepSeek Harness. Unlike wrappers that spawn unmanaged shell processes directly, this plugin launches all ADB commands through DSH’s built-in ctx.subprocess service, so all commands properly inherit tool call cancellation and timeout signals from the Harness runtime. It provides 14 distinct ADB-backed tools that cover everything from device enumeration and info querying to app management, UI input, file transfer, and logcat snapshot capture. All tool outputs are structured to be easily parsed and used by the LLM agent running inside DSH.
The plugin is designed for Android developers and testers who want to use LLM agents to automate debugging, application information extraction, or UI interaction with connected Android devices. When multiple devices are connected to the host machine, the LLM must explicitly pass a device serial number to target the correct device for operations. If no serial is provided, the plugin automatically falls back to a configured default serial or the only connected authorized device available. Users can test the full set of tool functions directly in the DSH web UI using the pre-written verification prompts included in the repository.
The plugin is released under the permissive MIT open source license, and requires Node.js version ^22.19.0 or >=24, the pnpm package manager, and a working ADB binary available on your system PATH to build and run. By default, arbitrary adb shell access and destructive actions like app uninstall and app data clear are disabled, and the plugin restricts file transfers to the current DSH session workspace for additional host security. It can be installed either as a local source overlay for plugin development or as a bundled web profile plugin for regular production use.
这是一个专为 DeepSeek Harness 开发的原生插件,作用是将本机已安装的 Android 调试桥(ADB)注册为 DSH 大模型可用的工具集合。插件不启动额外的代理服务,也不在宿主机 Shell 中拼接命令,所有 ADB 进程都通过 DSH 的 ctx.subprocess 服务启动,继承工具调用的取消和超时信号。它一共提供 14 种不同的 ADB 工具,覆盖设备信息查询、应用管理、UI 交互、文件传输和日志获取等场景。
该插件面向需要让大模型辅助完成 Android 开发测试、自动化交互、应用信息提取等工作的开发者使用。它支持自定义允许连接的设备列表、各工具的启用开关、输出大小限制和安全策略,能灵活适配不同的使用场景和安全需求。多设备连接时需要大模型指定设备序号,未指定时会默认使用配置的默认序号或仅有的一台在线授权设备,用户可通过预定义提示词快速验证功能。
该插件使用 MIT 许可证开源,要求 Node.js 版本符合 DSH 0.1.0-rc.5 的要求(^22.19.0 或 >=24),需要 pnpm 包管理器,且 ADB 已经配置在系统 PATH 中。默认关闭任意设备侧 Shell 和有破坏性的卸载清理操作,对工作区外的宿主机文件默认做路径限制,使用前需要根据需求调整配置,避免非预期的设备修改。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:adb_dsh_plugin(mang0cola/adb_dsh_plugin)
仓库:https://github.com/mang0cola/adb_dsh_plugin
本站详情页:https://www.yhbd.top/plugins/mang0cola-adb-dsh-plugin/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-08-14 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:mang0cola/adb_dsh_plugin
把 mang0cola/adb_dsh_plugin 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
adb-dsh-plugin
adb-dsh-plugin 将本机已有的 Android Debug Bridge(ADB)注册为 DeepSeek Harness 模型工具。插件不启动额外的代理服务,也不在宿主机 shell 中拼接命令;所有 ADB 进程都通过 Harness 的 ctx.subprocess 服务启动,并继承工具调用的取消和超时信号。
能力
| 工具 | 能力 |
|---|---|
adb_devices |
列出设备、连接状态、型号和 transport id |
adb_device_info |
获取 Android 版本、SDK、ABI、屏幕及电池信息 |
adb_packages |
结构化列出应用,可按系统/第三方、启用状态和用户筛选,并返回 APK 路径、版本码、安装来源及 UID |
adb_system_services |
列出 Binder 服务及支持 dumpsys 的系统服务 |
adb_service_dump |
读取单个系统服务的有界 dumpsys 状态快照 |
adb_app_info |
获取应用版本、APK 路径、权限状态及 activity/service/receiver/provider 组件 |
adb_screenshot |
截屏并通过 Harness 附件服务把 PNG 交给支持图片输入的模型 |
adb_ui_hierarchy |
获取包含文本、resource id、可点击状态和 bounds 的 UI XML;uiautomator 不可用时自动读取可见窗口 View 数据;文本模型也可使用 |
adb_input |
点击、滑动、安全 ASCII 文本输入及 keyevent |
adb_app |
列出、安装、启动、停止、清理及卸载应用 |
adb_file |
在会话工作区与设备之间 push/pull 文件或目录 |
adb_logcat |
获取有行数和字节上限的 logcat 快照 |
adb_shell |
执行任意设备侧 shell 命令;默认不注册,需要显式启用 |
未传 serial 时,插件依次使用 defaultSerial 或唯一一个在线且允许的设备。连接多个在线设备时,模型必须明确传入 serial。
本机开发运行
要求与当前 DeepSeek Harness 0.1.0-rc.5 相同:Node.js ^22.19.0 || >=24、pnpm,以及 PATH 中可用的 adb。
在插件目录安装依赖、检查并构建:
cd ~/Desktop/side_projects/adb_dsh_plugin
pnpm install
pnpm test
pnpm build
已连接并授权一台测试设备时,还可以运行不调用外部模型的本地真机功能测试:
pnpm test:device
它会测试设备发现、设备信息、UI 层级、截图、无副作用按键码、结构化应用信息、权限与四大组件、系统服务、日志,以及一次位于 /data/local/tmp/adb_dsh_plugin_function_test.txt 的文件 push/pull 往返;测试结束会自动清理宿主机和设备上的临时文件。请只在允许测试的设备上运行。
有两种加载方式。
方式一:源码 overlay
复制开发配置模板,并把其中的插件路径改为本机绝对路径:
cp cordis.dev.example.yml cordis.dev.yml
cordis.dev.yml 是包含本机路径和个人权限策略的本地文件,不纳入 Git。配置完成后,先停止已有的 pnpm dsh web,再从 Harness 仓库启动:
cd ~/Desktop/playground/deepseek-harness
pnpm dsh web --patch ~/Desktop/side_projects/adb_dsh_plugin/cordis.dev.yml
如果移动了插件目录,需要同步修改 cordis.dev.yml 中的绝对路径。
方式二:安装为 web profile bundle
构建插件后,从 Harness 源码仓库把本地 checkout 安装到 web profile:
cd ~/Desktop/playground/deepseek-harness
pnpm dsh plugin --profile web add ~/Desktop/side_projects/adb_dsh_plugin
pnpm dsh web
package.json 中的 dsh.bundle 会让 cordis.patch.yml 自动加入 profile 的 bundle 层。更新插件代码后重新运行 pnpm build 并重启 dsh;bundle 列表发生变化也需要重启。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
reactive-resume/reactive-resume
anywhere-labs/dsh-desktop
dataelement/dsh-desktop
ccch1mneyyy/dsh-TUI
DSH-EAC/DSH-Desktop-EAC
shaobeichen/dsh-pocket
xyTom/coding-tools-mcp