@aiot-toolkit/emulator 2.0.2-beta.17 → 2.0.2-beta.19
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/README.md +15 -15
- package/lib/emulatorutil/EmulatorCmd.js +10 -10
- package/lib/static/advancedFeatures.ini +1 -1
- package/lib/static/avdConfigIni.json +39 -39
- package/lib/static/debugger_ip.cfg +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
## emulator
|
|
2
|
-
|
|
3
|
-
QEMU模拟器
|
|
4
|
-
|
|
5
|
-
模拟器的介绍可参考[开发帮助文档](https://xiaomi.f.mioffice.cn/docx/doxk4Rk6x67GanHlzQ8bEOrxtEe)里的「模拟器」章节
|
|
6
|
-
|
|
7
|
-
## 目录结构
|
|
8
|
-
|
|
9
|
-
| 目录 | 描述 |
|
|
10
|
-
| -------- | ------------------------------------------------------------------------------- |
|
|
11
|
-
| avd | 模拟器的AVD,配置统一放置$HOME/.android/avd目录下 |
|
|
12
|
-
| instance | 模拟器实例,不同的Vela镜像版本会使用不同的instance,通过findInstance确定 |
|
|
13
|
-
| static | 创建AVD时需要用到的静态资源,常量配置文件 |
|
|
14
|
-
| typing | 接口定义 |
|
|
15
|
-
| utils | 工具函数 |
|
|
1
|
+
## emulator
|
|
2
|
+
|
|
3
|
+
QEMU模拟器
|
|
4
|
+
|
|
5
|
+
模拟器的介绍可参考[开发帮助文档](https://xiaomi.f.mioffice.cn/docx/doxk4Rk6x67GanHlzQ8bEOrxtEe)里的「模拟器」章节
|
|
6
|
+
|
|
7
|
+
## 目录结构
|
|
8
|
+
|
|
9
|
+
| 目录 | 描述 |
|
|
10
|
+
| -------- | ------------------------------------------------------------------------------- |
|
|
11
|
+
| avd | 模拟器的AVD,配置统一放置$HOME/.android/avd目录下 |
|
|
12
|
+
| instance | 模拟器实例,不同的Vela镜像版本会使用不同的instance,通过findInstance确定 |
|
|
13
|
+
| static | 创建AVD时需要用到的静态资源,常量配置文件 |
|
|
14
|
+
| typing | 接口定义 |
|
|
15
|
+
| utils | 工具函数 |
|
|
@@ -57,12 +57,12 @@ class EmulatorCmd {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
// 挂载节点配置,只读文件加入read-only标识
|
|
60
|
-
const imageMountStr = `-drive index=0,id=system,if=none,format=raw,file=${systemImageBin},read-only \
|
|
61
|
-
-device virtio-blk-device,bus=virtio-mmio-bus.0,drive=system \
|
|
62
|
-
-drive index=1,id=userdata,if=none,format=raw,file=${dataImageBinInAvd} \
|
|
63
|
-
-device virtio-blk-device,bus=virtio-mmio-bus.1,drive=userdata \
|
|
64
|
-
-drive index=2,id=vendor,if=none,format=raw,file=${coreBin},read-only \
|
|
65
|
-
-device virtio-blk-device,bus=virtio-mmio-bus.4,drive=vendor \
|
|
60
|
+
const imageMountStr = `-drive index=0,id=system,if=none,format=raw,file=${systemImageBin},read-only \
|
|
61
|
+
-device virtio-blk-device,bus=virtio-mmio-bus.0,drive=system \
|
|
62
|
+
-drive index=1,id=userdata,if=none,format=raw,file=${dataImageBinInAvd} \
|
|
63
|
+
-device virtio-blk-device,bus=virtio-mmio-bus.1,drive=userdata \
|
|
64
|
+
-drive index=2,id=vendor,if=none,format=raw,file=${coreBin},read-only \
|
|
65
|
+
-device virtio-blk-device,bus=virtio-mmio-bus.4,drive=vendor \
|
|
66
66
|
-device virtio-snd,bus=virtio-mmio-bus.2 -allow-host-audio -semihosting`;
|
|
67
67
|
// grpc配置
|
|
68
68
|
let windowStr = '';
|
|
@@ -143,10 +143,10 @@ class EmulatorCmd {
|
|
|
143
143
|
// fs.copyFileSync(nuttxBinPath, nuttxBinInAvd)
|
|
144
144
|
// }
|
|
145
145
|
// }
|
|
146
|
-
const imageMountStr = `-drive index=0,id=system,if=none,format=raw,file=${systemImageBinInAvd} \
|
|
147
|
-
-device virtio-blk-device,bus=virtio-mmio-bus.0,drive=system \
|
|
148
|
-
-drive index=1,id=userdata,if=none,format=raw,file=${dataImageBinInAvd} \
|
|
149
|
-
-device virtio-blk-device,bus=virtio-mmio-bus.1,drive=userdata \
|
|
146
|
+
const imageMountStr = `-drive index=0,id=system,if=none,format=raw,file=${systemImageBinInAvd} \
|
|
147
|
+
-device virtio-blk-device,bus=virtio-mmio-bus.0,drive=system \
|
|
148
|
+
-drive index=1,id=userdata,if=none,format=raw,file=${dataImageBinInAvd} \
|
|
149
|
+
-device virtio-blk-device,bus=virtio-mmio-bus.1,drive=userdata \
|
|
150
150
|
-device virtio-snd,bus=virtio-mmio-bus.2 -allow-host-audio -semihosting`;
|
|
151
151
|
// grpc配置
|
|
152
152
|
let windowStr = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
ModemSimulator = on
|
|
1
|
+
ModemSimulator = on
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AvdId": "Vela_Virtual_Device",
|
|
3
|
-
"abi.type": "armeabi-v7a",
|
|
4
|
-
"avd.ini.displayname": "Vela_Virtual_Device",
|
|
5
|
-
"avd.ini.encoding": "UTF-8",
|
|
6
|
-
"fastboot.forceChosenSnapshotBoot": "no",
|
|
7
|
-
"fastboot.forceColdBoot": "yes",
|
|
8
|
-
"fastboot.forceFastBoot": "no",
|
|
9
|
-
"hw.accelerometer": "no",
|
|
10
|
-
"hw.arc": false,
|
|
11
|
-
"hw.audioInput": "yes",
|
|
12
|
-
"hw.battery": "yes",
|
|
13
|
-
"hw.camera.back": "None",
|
|
14
|
-
"hw.camera.front": "None",
|
|
15
|
-
"hw.cpu.arch": "arm",
|
|
16
|
-
"hw.cpu.ncore": 4,
|
|
17
|
-
"hw.dPad": "no",
|
|
18
|
-
"hw.gps": "yes",
|
|
19
|
-
"hw.gpu.enabled": "no",
|
|
20
|
-
"hw.gpu.mode": "off",
|
|
21
|
-
"hw.initialOrientation": "Portrait",
|
|
22
|
-
"hw.keyboard": "yes",
|
|
23
|
-
"hw.lcd.density": 420,
|
|
24
|
-
"hw.lcd.height": 480,
|
|
25
|
-
"hw.lcd.width": 480,
|
|
26
|
-
"hw.mainKeys": "no",
|
|
27
|
-
"hw.ramSize": 512,
|
|
28
|
-
"hw.sdCard": "no",
|
|
29
|
-
"hw.sensors.orientation": "yes",
|
|
30
|
-
"hw.sensors.proximity": "yes",
|
|
31
|
-
"hw.trackBall": "no",
|
|
32
|
-
"image.sysdir.1": "",
|
|
33
|
-
"runtime.network.latency": "none",
|
|
34
|
-
"runtime.network.speed": "full",
|
|
35
|
-
"showDeviceFrame": "yes",
|
|
36
|
-
"skin.dynamic": "no",
|
|
37
|
-
"skin.name": "",
|
|
38
|
-
"skin.path": ""
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"AvdId": "Vela_Virtual_Device",
|
|
3
|
+
"abi.type": "armeabi-v7a",
|
|
4
|
+
"avd.ini.displayname": "Vela_Virtual_Device",
|
|
5
|
+
"avd.ini.encoding": "UTF-8",
|
|
6
|
+
"fastboot.forceChosenSnapshotBoot": "no",
|
|
7
|
+
"fastboot.forceColdBoot": "yes",
|
|
8
|
+
"fastboot.forceFastBoot": "no",
|
|
9
|
+
"hw.accelerometer": "no",
|
|
10
|
+
"hw.arc": false,
|
|
11
|
+
"hw.audioInput": "yes",
|
|
12
|
+
"hw.battery": "yes",
|
|
13
|
+
"hw.camera.back": "None",
|
|
14
|
+
"hw.camera.front": "None",
|
|
15
|
+
"hw.cpu.arch": "arm",
|
|
16
|
+
"hw.cpu.ncore": 4,
|
|
17
|
+
"hw.dPad": "no",
|
|
18
|
+
"hw.gps": "yes",
|
|
19
|
+
"hw.gpu.enabled": "no",
|
|
20
|
+
"hw.gpu.mode": "off",
|
|
21
|
+
"hw.initialOrientation": "Portrait",
|
|
22
|
+
"hw.keyboard": "yes",
|
|
23
|
+
"hw.lcd.density": 420,
|
|
24
|
+
"hw.lcd.height": 480,
|
|
25
|
+
"hw.lcd.width": 480,
|
|
26
|
+
"hw.mainKeys": "no",
|
|
27
|
+
"hw.ramSize": 512,
|
|
28
|
+
"hw.sdCard": "no",
|
|
29
|
+
"hw.sensors.orientation": "yes",
|
|
30
|
+
"hw.sensors.proximity": "yes",
|
|
31
|
+
"hw.trackBall": "no",
|
|
32
|
+
"image.sysdir.1": "",
|
|
33
|
+
"runtime.network.latency": "none",
|
|
34
|
+
"runtime.network.speed": "full",
|
|
35
|
+
"showDeviceFrame": "yes",
|
|
36
|
+
"skin.dynamic": "no",
|
|
37
|
+
"skin.name": "",
|
|
38
|
+
"skin.path": ""
|
|
39
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
10.0.2.15:101
|
|
1
|
+
10.0.2.15:101
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiot-toolkit/emulator",
|
|
3
|
-
"version": "2.0.2-beta.
|
|
3
|
+
"version": "2.0.2-beta.19",
|
|
4
4
|
"description": "vela emulator tool.",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"emulator"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@aiot-toolkit/aiotpack": "2.0.2-beta.
|
|
39
|
-
"@aiot-toolkit/shared-utils": "2.0.2-beta.
|
|
38
|
+
"@aiot-toolkit/aiotpack": "2.0.2-beta.19",
|
|
39
|
+
"@aiot-toolkit/shared-utils": "2.0.2-beta.19",
|
|
40
40
|
"@miwt/adb": "^0.9.0",
|
|
41
41
|
"dayjs": "^1.11.12",
|
|
42
42
|
"find-process": "^1.4.7",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"@types/fs-extra": "^11.0.4",
|
|
51
51
|
"@types/ini": "^4.1.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7c6ed600fe84ee9de9b00c6e95dfabf3bfb3ad65"
|
|
54
54
|
}
|