dsh-apk-vm 0.6.0 → 0.6.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 +14 -0
- package/README.md +1 -1
- package/client.js +25 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
Network panel completeness.
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Network card pcap path input and apply action (capture starts on the next emulator start).
|
|
10
|
+
- `setTcpdumpPath` API/tool wiring for per-instance pcap configuration.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Clearing the hosts list now unmounts the `/etc/hosts` bind mount instead of leaving the last
|
|
15
|
+
entries active until reboot.
|
|
16
|
+
|
|
3
17
|
## 0.6.0
|
|
4
18
|
|
|
5
19
|
Network controls.
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ same-origin, loopback-only debug HTTP API and an `apk_vm` Agent tool.
|
|
|
24
24
|
> 当前 **Windows x64 与 Linux x86_64(headless)为端到端已验证平台**;macOS 仅做探测/CI
|
|
25
25
|
> 覆盖,详见 `docs/LINUX-E2E.md`。
|
|
26
26
|
|
|
27
|
-
**Status:** `0.6.
|
|
27
|
+
**Status:** `0.6.1` · Apache-2.0 · no npm runtime dependencies · no build step.
|
|
28
28
|
|
|
29
29
|
This is an open-source DSH plugin published on npm as **`dsh-apk-vm`**. Repository:
|
|
30
30
|
[github.com/yuxiaole-bili/dsh-apk-vm](https://github.com/yuxiaole-bili/dsh-apk-vm).
|
package/client.js
CHANGED
|
@@ -205,6 +205,7 @@ window.__ModuleLoader__.load({
|
|
|
205
205
|
'network.testOk': 'Connectivity OK',
|
|
206
206
|
'network.testFail': 'Connectivity check failed',
|
|
207
207
|
'network.pcap': 'Download pcap',
|
|
208
|
+
'network.pcapPath': 'Host pcap path (.pcap, next start)',
|
|
208
209
|
'network.restartRequired': 'Restart the VM to apply custom DNS',
|
|
209
210
|
'network.sharedHint': 'Shared forwards are reachable from other VMs through the emulator host alias.',
|
|
210
211
|
'network.guestUrl': 'Guest URL: {url}',
|
|
@@ -437,6 +438,7 @@ window.__ModuleLoader__.load({
|
|
|
437
438
|
'network.testOk': '连通性正常',
|
|
438
439
|
'network.testFail': '连通性检查失败',
|
|
439
440
|
'network.pcap': '下载 pcap',
|
|
441
|
+
'network.pcapPath': '宿主机 pcap 路径(.pcap,下次启动)',
|
|
440
442
|
'network.restartRequired': '重启虚拟机后生效自定义 DNS',
|
|
441
443
|
'network.sharedHint': '共享转发可被其他 VM 通过模拟器宿主别名访问。',
|
|
442
444
|
'network.guestUrl': 'Guest URL: {url}',
|
|
@@ -1318,6 +1320,9 @@ window.__ModuleLoader__.load({
|
|
|
1318
1320
|
var hostsTextState = React.useState('');
|
|
1319
1321
|
var hostsText = hostsTextState[0];
|
|
1320
1322
|
var setHostsText = hostsTextState[1];
|
|
1323
|
+
var pcapPathState = React.useState('');
|
|
1324
|
+
var pcapPath = pcapPathState[0];
|
|
1325
|
+
var setPcapPath = pcapPathState[1];
|
|
1321
1326
|
|
|
1322
1327
|
var actualFpsState = React.useState(0);
|
|
1323
1328
|
var actualFps = actualFpsState[0];
|
|
@@ -4216,6 +4221,18 @@ window.__ModuleLoader__.load({
|
|
|
4216
4221
|
},
|
|
4217
4222
|
'aria-label': T('network.hosts'),
|
|
4218
4223
|
}),
|
|
4224
|
+
h('input', {
|
|
4225
|
+
className: 'apkvm-input',
|
|
4226
|
+
type: 'text',
|
|
4227
|
+
value: pcapPath,
|
|
4228
|
+
placeholder: T('network.pcapPath'),
|
|
4229
|
+
spellCheck: false,
|
|
4230
|
+
disabled: Boolean(networkBusy),
|
|
4231
|
+
onChange: function (event) {
|
|
4232
|
+
setPcapPath(event && event.target ? String(event.target.value) : '');
|
|
4233
|
+
},
|
|
4234
|
+
'aria-label': T('network.pcapPath'),
|
|
4235
|
+
}),
|
|
4219
4236
|
h(
|
|
4220
4237
|
'div',
|
|
4221
4238
|
{ style: { display: 'flex', alignItems: 'center', gap: '5px', flexWrap: 'wrap' } },
|
|
@@ -4225,6 +4242,14 @@ window.__ModuleLoader__.load({
|
|
|
4225
4242
|
disabled: !ready || Boolean(networkBusy),
|
|
4226
4243
|
onClick: applyHosts,
|
|
4227
4244
|
}),
|
|
4245
|
+
actionBtn('pcap', {
|
|
4246
|
+
key: 'pcap-apply',
|
|
4247
|
+
small: true,
|
|
4248
|
+
disabled: !ready || Boolean(networkBusy) || !pcapPath.trim(),
|
|
4249
|
+
onClick: function () {
|
|
4250
|
+
networkAction('pcap', { path: pcapPath.trim() });
|
|
4251
|
+
},
|
|
4252
|
+
}),
|
|
4228
4253
|
network && network.pcap && network.pcap.enabled
|
|
4229
4254
|
? h(
|
|
4230
4255
|
'a',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-apk-vm",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.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",
|