vin*_*smo 42 shell android android-virtual-device genymotion
我需要通过shell命令启动genymotion,有谁知道是否可以这样做?
eya*_*zmy 64
Genymotion提出了一个shell:Genymotion Shell.目前无法使用它启动VM.
但是,您可以通过此命令启动Genymotion VM:
player --vm-name <VM id | VM name>
此命令启动Genymotion的播放器,使您可以访问所有Genymotion增强功能小部件(GPS,电池,旋转......),屏幕缩放,渲染,......就像标准的GUI启动一样.
如果您想使用没有增强功能的Genymotion VM,可以通过VirtualBox命令行启动它,如下所示:
VBoxManage startvm gui <VM id | VM name>
通过此命令行可以找到VM ID:
VBoxManage list vms
它以这种格式显示VirtualBox机器的列表:name {id}.
UPDATE
从Genymotion 2.5.0开始,您可以通过命令行工具管理所有Genymotion设备.使用此工具,您可以创建,启动,停止,删除,推送文件,刷新设备......以下是创建设备并启动它的简单示例:
gmtool admin create "Google Nexus 5 - 4.4.4 - API 19 - 1080x1920" myNexus
gmtool admin start myNexus
Run Code Online (Sandbox Code Playgroud)
此功能适用于付费许可证.
plo*_*man 19
从Genymotion 2.6.0(2015年12月)开始,它们似乎已经将player可执行文件移动了player.app.
在OSX上,您可以像这样启动所需的VM:
# First, get a list of the VM's you have installed
VBoxManage list vms
# Returns something like "5.0.0 - API 21 - 768x1280" {091d022d-6a7b-4475-845f-7a6e06024fb6}
Run Code Online (Sandbox Code Playgroud)
例如091d022d-6a7b-4475-845f-7a6e06024fb6,复制VM ID,然后再次使用它,如下所示:
# Launch a specific VM
open -a /Applications/Genymotion.app/Contents/MacOS/player.app --args --vm-name '091d022d-6a7b-4475-845f-7a6e06024fb6'
Run Code Online (Sandbox Code Playgroud)
Yur*_*rev 11
对于窗户.
通过运行以下方式检索可用虚拟设备列表:
<Genymotion installer path>\genyshell -c "devices list"
Run Code Online (Sandbox Code Playgroud)
运行以下命令启动其中一个虚拟设备:
<Genymotion installer path>\player --vm-name "<virtual device name>"
Run Code Online (Sandbox Code Playgroud)
链接.
| 归档时间: |
|
| 查看次数: |
43323 次 |
| 最近记录: |