dsh-apk-vm 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +9 -5
- package/docs/LINUX-E2E.md +5 -5
- package/docs/screenshot-sidebar.png +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
Privacy cleanup for the published proof assets.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Cropped `docs/screenshot-sidebar.png` to the plugin panel only (removes the center session
|
|
10
|
+
area and workspace label; the APK paths were already redacted).
|
|
11
|
+
- Removed host account names from `docs/LINUX-E2E.md`; the document now describes the KVM
|
|
12
|
+
group requirement without identifying accounts.
|
|
13
|
+
|
|
3
14
|
## 0.4.0
|
|
4
15
|
|
|
5
16
|
Substantive feature release: inspection, replay, package bundles, network debugging,
|
package/README.md
CHANGED
|
@@ -21,9 +21,10 @@ same-origin, loopback-only debug HTTP API and an `apk_vm` Agent tool.
|
|
|
21
21
|
> 点击、滑动、按键、文本输入送回虚拟机。支持拖拽 APK 上传、环境自检卡片、root 调试
|
|
22
22
|
> API 与 `apk_vm` Agent 工具;多个 Agent 可各自使用独立的隔离虚拟机实例(多开)。
|
|
23
23
|
> 参考机上冷启动约 29.5 s、快照快速启动约 8.4–10.5 s。
|
|
24
|
-
> 当前 **Windows x64
|
|
24
|
+
> 当前 **Windows x64 与 Linux x86_64(headless)为端到端已验证平台**;macOS 仅做探测/CI
|
|
25
|
+
> 覆盖,详见 `docs/LINUX-E2E.md`。
|
|
25
26
|
|
|
26
|
-
**Status:** `0.4.
|
|
27
|
+
**Status:** `0.4.1` · Apache-2.0 · no npm runtime dependencies · no build step.
|
|
27
28
|
|
|
28
29
|
This is an open-source DSH plugin published on npm as **`dsh-apk-vm`**. Repository:
|
|
29
30
|
[github.com/yuxiaole-bili/dsh-apk-vm](https://github.com/yuxiaole-bili/dsh-apk-vm).
|
|
@@ -849,9 +850,12 @@ before pointing the DSH Web UI at an untrusted network.
|
|
|
849
850
|
|
|
850
851
|
- **The plugin manages processes on your machine.** It spawns the Android emulator, `adb`,
|
|
851
852
|
`sdkmanager` and `avdmanager` with `child_process.spawn(exe, argv)` — never through a shell —
|
|
852
|
-
so user-supplied strings are not shell-interpreted. Paths are validated (APK paths must
|
|
853
|
-
and end in `.apk`; push/pull paths are restricted to `/data/local/tmp`,
|
|
854
|
-
`/storage/emulated/0` and allowed local roots).
|
|
853
|
+
so user-supplied strings are not shell-interpreted. Paths are validated (APK/bundle paths must
|
|
854
|
+
exist and end in `.apk`/`.apks`/`.xapk`; push/pull paths are restricted to `/data/local/tmp`,
|
|
855
|
+
`/sdcard`, `/storage/emulated/0` and allowed local roots).
|
|
856
|
+
- **Only emulators spawned by this plugin are stopped.** `stop()` sends `adb emu kill` only when
|
|
857
|
+
this process owns the emulator; a pre-existing/attached device (physical, remote adb or a
|
|
858
|
+
manually started emulator) is detached and left running.
|
|
855
859
|
- **The guest is deliberately rooted and debuggable.** `adb root`, `ro.debuggable=1` and
|
|
856
860
|
`ro.adb.secure=0` mean anything you install inside the VM is not sandboxed from root. Do not
|
|
857
861
|
put real secrets or personal data in the AVD.
|
package/docs/LINUX-E2E.md
CHANGED
|
@@ -18,10 +18,10 @@ CI-only check.
|
|
|
18
18
|
| System image | `system-images;android-34;default;x86_64` |
|
|
19
19
|
| AVD | `dsh_linux_test` (1080×2340, pixel_5) |
|
|
20
20
|
|
|
21
|
-
The regular
|
|
22
|
-
`/dev/kvm` is denied for it. The emulator portion was therefore run as
|
|
23
|
-
|
|
24
|
-
requires sudo or system-wide changes.
|
|
21
|
+
The regular login account is **not in the `kvm` group** and has no passwordless sudo;
|
|
22
|
+
`/dev/kvm` is denied for it. The emulator portion was therefore run as a second account on
|
|
23
|
+
the same host (authenticated with the same SSH key), which is in the `kvm` group. The plugin
|
|
24
|
+
itself never requires sudo or system-wide changes.
|
|
25
25
|
|
|
26
26
|
## Emulator launch
|
|
27
27
|
|
|
@@ -66,7 +66,7 @@ The final tree should be re-run in CI for the release tag.
|
|
|
66
66
|
screenshots; the screenshots still succeed.
|
|
67
67
|
- The emulator prints a metrics-collection warning; the launch args now include
|
|
68
68
|
`-no-metrics`.
|
|
69
|
-
-
|
|
69
|
+
- An account without `kvm` group membership gets the documented "No usable CPU hypervisor"
|
|
70
70
|
error instead of a hung boot. Add the user to `kvm` (or use an account that has it) for
|
|
71
71
|
hardware acceleration.
|
|
72
72
|
- The platform still requires an Android SDK and AVD; only the SDK install and test harness
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-apk-vm",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local AOSP Android VM for DeepSeek Harness: preview rooted APKs at up to 60 fps, automate UIAutomator flows, and give each Agent an isolated VM.",
|
|
6
6
|
"license": "Apache-2.0",
|