Android 如何使用shell命令启动Genymotion设备?

Android 如何使用shell命令启动Genymotion设备?,android,shell,avd,genymotion,Android,Shell,Avd,Genymotion,我需要通过shell命令启动genymotion,有人知道是否可以这样做吗?genymotion提出了一个shell:the。目前无法使用它启动VM 但是,由于以下命令,您可以启动Genymotion VM: player——虚拟机名称 此命令启动Genymotion的播放器,让您可以访问所有Genymotion增强小部件(GPS、电池、旋转等)、屏幕缩放、渲染等。。。就像标准的GUI发布一样 如果要使用不带增强功能的Genymotion VM,可以通过VirtualBox命令行如下所示启动它:

我需要通过shell命令启动genymotion,有人知道是否可以这样做吗?

genymotion提出了一个shell:the。目前无法使用它启动VM

但是,由于以下命令,您可以启动Genymotion VM:

player——虚拟机名称

此命令启动Genymotion的播放器,让您可以访问所有Genymotion增强小部件(GPS、电池、旋转等)、屏幕缩放、渲染等。。。就像标准的GUI发布一样

如果要使用不带增强功能的Genymotion VM,可以通过VirtualBox命令行如下所示启动它:

# 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}
# Launch a specific VM
open -a /Applications/Genymotion.app/Contents/MacOS/player.app --args --vm-name '091d022d-6a7b-4475-845f-7a6e06024fb6'
vboxmanagestartvmgui

可以通过以下命令行找到VM id:

VBoxManage列表虚拟机

它以以下格式显示VirtualBox计算机的列表:
name{id}

更新

自Genymotion 2.5.0以来,借助命令行工具,您可以管理所有Genymotion设备。使用此工具,您可以创建、启动、停止、删除、推送文件、闪存设备。。。 以下是创建并启动设备的简单示例:

gmtool admin create "Google Nexus 5 - 4.4.4 - API 19 - 1080x1920" myNexus
gmtool admin start myNexus
此功能适用于付费许可证。

适用于windows

通过运行以下命令检索可用虚拟设备的列表:

<Genymotion installer path>\genyshell -c "devices list"
<Genymotion installer path>\player --vm-name "<virtual device name>"
\genyshell-c“设备列表”
通过运行以下命令启动其中一个虚拟设备:

<Genymotion installer path>\genyshell -c "devices list"
<Genymotion installer path>\player --vm-name "<virtual device name>"
\player--虚拟机名称“”
2019年5月8日UPD: 我正在bash上为genymotion cli创建简单的包装器。链接到github。

从Genymotion 2.6.0(2015年12月)开始,他们似乎已经将
播放器
可执行文件移动为
播放器.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}
# Launch a specific VM
open -a /Applications/Genymotion.app/Contents/MacOS/player.app --args --vm-name '091d022d-6a7b-4475-845f-7a6e06024fb6'
复制虚拟机ID,例如091D0222D-6a7b-4475-845f-7a6e06024fb6,然后像这样再次使用它:

# 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}
# Launch a specific VM
open -a /Applications/Genymotion.app/Contents/MacOS/player.app --args --vm-name '091d022d-6a7b-4475-845f-7a6e06024fb6'

检查更新。我为您提供了正确的命令行来启动GUI上的VM。我在Mac上使用Genymotion。我找不到“玩家”命令。如何找到它?您的提示符需要位于Genymotion文件夹中,其中包含“player”二进制文件。我不知道它应该在Mac上的什么位置。@David在应用程序捆绑包中找到它。Mac上的应用程序层位于/Applications/Genymotion.app/Contents/MacOS/player。到Genymotion常见问题解答的快速链接是它也适用于Linux(当然,你必须更改斜杠),从今天开始,这是通过命令行运行设备而无需支付许可证费用的唯一方法+1要停止虚拟机:
player-n$NAME-x
github链接已断开,正确的链接已被删除