在虚拟显示器上启动安卓应用,用读屏、点击与滑动驱动它们,主屏不受影响。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:guzhou079-arch/dsh-plugin-android-vscreen
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Let an agent work on your Android phone without taking over your screen. 让 AI 在安卓手机的虚拟显示器上干活 —— 手机你自己的屏幕照常用,互不打扰。
A DeepSeek Harness plugin.
Tested with DSH on Android; the adb transport also works with DSH on a computer.
Looking for the whole thing ready to install on a phone (no PC, no Termux)? That is the Android port — same author, APK + in-app installer.
Why
Most "agent drives my phone" plugins tap the main screen: your phone is hijacked while the agent works — you can't use it, and it can't be used quietly in the background.
Android can create a virtual display: a second, invisible screen. The agent launches an app onto
that display, looks at it and taps it there, while the physical screen keeps doing whatever you were
doing. Every action reports a "main-screen proof" (mainBefore → mainAfter) so you can see the
physical screen was not touched.
⚠️ A virtual display isolates the picture, not the effects / 只隔离画面,不隔离副作用
An app running on a virtual display still acts on the whole device. Tap Airplane mode, Wi-Fi or Do not disturb inside a virtual display and that switch really flips — it is the same system setting. Installing, sending messages, changing settings: all real.
So "your screen stays untouched" is not the same as "your device stays untouched".
Rule for agents using this plugin: take a frame with android_vscreen_see first, and derive tap
coordinates from what you actually see. Never tap a guessed fraction of the screen.
Tools
| Tool | What it does |
|---|---|
android_vscreen_doctor |
Can I drive this device, and over which transport. Run it first. |
android_vscreen_status |
Is a virtual display running, and how big is it. |
android_vscreen_start |
Create the virtual display and optionally launch an app onto it. |
android_vscreen_see |
Grab a frame of the virtual display as a PNG. |
android_vscreen_tap |
Tap on the virtual display. |
android_vscreen_swipe |
Swipe on the virtual display. |
android_vscreen_close |
Destroy the virtual display. |
How it reaches the phone
Two transports, picked automatically:
| Transport | When it's used |
|---|---|
adb |
DSH runs on your computer (USB or wireless debugging) |
local bridge (127.0.0.1:3081) |
DSH runs on the phone itself (e.g. the Android build) |
Both end up as a shell on the device — the same privilege level adb shell has. That privilege is
required: an app cannot put another app onto a virtual display with its own identity, so the
bundled core runs as shell via app_process. It uses only public Android APIs
(DisplayManager.createVirtualDisplay, ImageReader) plus documented reflection constants — no
MediaProjection, no screen-capture permission dialog.
Install
dsh plugin forwards to pnpm, so several specs work. The release tarball needs neither git nor a clone:
# 1. release tarball (28 kB, no git involved)
dsh plugin --profile web add https://github.com/guzhou079-arch/dsh-plugin-android-vscreen/releases/download/v0.1.0/dsh-plugin-android-vscreen-0.1.0.tgz
# 2. straight from the repository
dsh plugin --profile web add github:guzhou079-arch/dsh-plugin-android-vscreen
# 3. from a clone you already have
git clone https://github.com/guzhou079-arch/dsh-plugin-android-vscreen
dsh plugin --profile web add link:./dsh-plugin-android-vscreen
The tarball is dsh-plugin-android-vscreen-0.1.0.tgz, 28227 bytes, SHA-256
915369c3b42a3834636ee22e1dd0e8858fff48358c28ccb0590f9371988953f4.
Where github.com will not open (mainland China), prefix the URL with a mirror — https://ghproxy.net/,
https://ghfast.top/, https://gh-proxy.com/ — or use spec 3 against a clone fetched through one.
Then ask the agent to run android_vscreen_doctor: it reports which transport is available and
probes the device.
Requirements
- An Android device reachable by
adb(USB oradb connect), or DSH running on the phone with its privileged shell bridge available. - Node.js 20+ (whatever your DSH runs on).
Development
The device side is a small Java program in assets/vscreen-core.jar. To rebuild it from source, see
the Android port repository (android-app/src/com/deepseek/harness/vscreen/). Two smoke tests run
the whole chain without going through a model:
node test-m1.mjs # create → launch → see → tap → see → main-screen proof → close
node vs-safe.mjs start # same thing, but aimed at a harmless target
License
LGPL-3.0-only — see LICENSE and THIRD_PARTY_NOTICES.md.
The bundled assets/vscreen-core.jar descends from Operit
(LGPL-3.0), which is why this plugin is LGPL rather than MIT.
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10696
手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
zhu1090093659/dsh-web#packages/dsh-ssh★ 10696
SSH 远程运维面板:Web 终端、SFTP 传输、本地端口转发与一条命令并发集群执行,Agent 与面板共用同一份主机配置。
liguobao/ds-harness-remote★ 4060
通过端到端加密通道远程访问 DeepSeek Harness 及兼容的编码工作区,支持自适应 Relay/WebRTC 传输、设备授权、工作区文件、只读预览、终端和可选的 Codex Remote。
saya-ch/dsh-mobile★ 1029
通过 Android App 或手机浏览器访问 DeepSeek Harness,支持安全局域网连接、远程访问、持久设备配对和可自定义移动界面。
uumit-ai/dsh-uumit-remote★ 534
用 UUMit 账号在手机或其他电脑上打开这台电脑的 dsh web,不用自建服务器、不装其他程序:插件内置通道客户端连接 UUMit 托管的通道,侧栏里的面板负责配对和选择谁能用(仅自己、通过邀请链接或手机号授权的人、所有人),可随时撤销。需 dsh web 且 DSH >=0.2.1-rc.2。
WNLUO/dsh-mobile-plugin★ 503
DeepSeek Harness App 让你在手机上使用这台电脑或服务器上的 DeepSeek Harness。手机和平板都能用,安卓和苹果都支持。在手机上可以继续对话、查看文件、管理插件,也可以从正在用的这一台连上其他几台上的 DeepSeek Harness,分别打开来用。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。