dsh-mobile-device-bridge

在 DSH「设置 → 移动设备」里连接安卓与鸿蒙手机:可用浏览器页面的 WebUSB,也可用运行 DSH 那台机器上的 adb/hdc 命令行。执行 shell、截图、推拉文件、安装卸载应用,多台手机可同时连接并切换。鸿蒙侧还能用自己的华为账号给未签名 HAP 做 ID 自签:以二维码方式打开 DevEco 授权页,向 AGC 申请绑定本机 UDID 的调试证书与 Profile,本地 hap-sign-tool 签好后装机,包名从 HAP 自动读取。另注册了 5 个原生工具(devices / exec / screenshot / install / sign_install)供其他 agent 调用。凭证只保存在本机。

插件介绍

在 DSH「设置 → 移动设备」里连接安卓与鸿蒙手机:可用浏览器页面的 WebUSB,也可用运行 DSH 那台机器上的 adb/hdc 命令行。执行 shell、截图、推拉文件、安装卸载应用,多台手机可同时连接并切换。鸿蒙侧还能用自己的华为账号给未签名 HAP 做 ID 自签:以二维码方式打开 DevEco 授权页,向 AGC 申请绑定本机 UDID 的调试证书与 Profile,本地 hap-sign-tool 签好后装机,包名从 HAP 自动读取。另注册了 5 个原生工具(devices / exec / screenshot / install / sign_install)供其他 agent 调用。凭证只保存在本机。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-mobile-device-bridge

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:zyi07/dsh-mobile-device-bridge

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令