Genymotion shell
2014-02-28 09:47
295 查看
Genymotion provides a shell that enables you to script the modification of sensor states.
Command line options
Available commands
Get the current battery mode of the selected virtual device. The mode can only be:
Set the battery mode. The mode can only be:
Get the current battery amount of power. The value can only be between 0% and 100%.
If the battery mode is "host", the returned value is the host value.
Set the current battery amount of power. The value can only be between 0% and 100%.
Set the battery level force the "manual" mode: if the last mode was "host", then it's turned to "manual"
Get the current battery status. There are 4 possible status:
Set the current battery status. There are 4 possible status:
List available Genymotion virtual devices and provides details like current states or IP address.
Send a ping message to check if virtual device if responding
Refresh Genymotion virtual device list. Use it to keep the list up-to-date.
Select the Genymotion virtual device you want to interact with.
List available Genymotion virtual devices and provides details like current states or IP address
Factory reset virtual device (add keyword
Activate the GPS sensor (if not already activated)
Desactivate the GPS sensor (if activated)
Return current latitude (if GPS is activated AND already has a latitude) or 0
Set latitude (and activate GPS if not already activated)
Return current longitude (if GPS is activated AND already has a longitude) or 0
Set longitude (and activate GPS if not already activated)
Return current altitude (if GPS is activated AND already has a altitude) or 0
Set altitude (and activate GPS if not already activated)
Return current accuracy in meters (if GPS is activated AND already has a accuracy) or 0
Set accuracy (and activate GPS if not already activated)
Return current orientation in degrees (if GPS is activated AND already has a orientation) or 0
Set orientation (and activate GPS if not already activated)
Set the rotation angle of the virtual device.
Get Genymotion capabilities (gps, webcam, remote-control, ...) of selected virtual device.
Clear temporary downloaded files and logs.
Get Genymotion version of selected virtual device.
Get Genymotion license (type, validity, ...).
Get Android version of selected virtual device.
Get Android ID of selected virtual device (available only with Indie or Business license).
Set Android ID of selected virtual device (available only with Indie or Business license).
Warning: if several users exist on the Android system, Android ID will only be set for the first user, not for all.
Two kind of values are accepted:
custom value (must be 16 hexadecimal digits long).
Get Device ID (IMEI/MEID number) of selected virtual device (available only with Indie or Business license).
Set Device ID (IMEI/MEID number) of selected virtual device (available only with Indie or Business license).
Three kind of values are accepted:
custom value (alphanumeric characters, point, dash, underscore).
Get Genymotion Shell build number
Prompt the help.
Pause execution (in number of seconds).
Get Genymotion Shell version.
Close Genymotion Shell.
Command line options
-h: print help
-r ip_address: connect to specific Genymotion virtual device
-c "command": execute the given command in Genymotion Shell environment and return
-f file: execute the content of the file. Each command per line
Available commands
battery getmode
Get the current battery mode of the selected virtual device. The mode can only be:
host: The virtual battery reflect the host battery (if exists)
manual: In this mode, you can set the level and status battery values
battery setmode
Set the battery mode. The mode can only be:
host: The virtual battery reflect the host battery (if exists)
manual: In this mode, you can set the level and status battery values
battery getlevel
Get the current battery amount of power. The value can only be between 0% and 100%.
If the battery mode is "host", the returned value is the host value.
battery setlevel
Set the current battery amount of power. The value can only be between 0% and 100%.
Set the battery level force the "manual" mode: if the last mode was "host", then it's turned to "manual"
battery getstatus
Get the current battery status. There are 4 possible status:
Discharging: The power supply is disconnected and the battery is discharging.
Charging: The power supply is connected and the battery is charging.
Full: The battery is full.
Unknown: Sometimes, the battery status cannot be established, it happens when there is no host battery.
battery setstatus
Set the current battery status. There are 4 possible status:
Discharging: The power supply is disconnected and the battery is discharging.
Charging: The power supply is connected and the battery is charging.
Full: The battery is full.
Unknown: Sometimes, the battery status cannot be established, it happens when there is no host battery.
devices list
List available Genymotion virtual devices and provides details like current states or IP address.
devices ping
Send a ping message to check if virtual device if responding
devices refresh
Refresh Genymotion virtual device list. Use it to keep the list up-to-date.
devices select
Select the Genymotion virtual device you want to interact with.
devices show
List available Genymotion virtual devices and provides details like current states or IP address
devices factoryreset
Factory reset virtual device (add keyword
forceat the end to avoid warning message about data loss)
gps activate
Activate the GPS sensor (if not already activated)
gps desactivate
Desactivate the GPS sensor (if activated)
gps getlatitude
Return current latitude (if GPS is activated AND already has a latitude) or 0
gps setlatitude
Set latitude (and activate GPS if not already activated)
gps getlongitude
Return current longitude (if GPS is activated AND already has a longitude) or 0
gps setlongitude
Set longitude (and activate GPS if not already activated)
gps getaltitude
Return current altitude (if GPS is activated AND already has a altitude) or 0
gps setaltitude
Set altitude (and activate GPS if not already activated)
gps getaccuracy
Return current accuracy in meters (if GPS is activated AND already has a accuracy) or 0
gps setaccuracy
Set accuracy (and activate GPS if not already activated)
gps getorientation
Return current orientation in degrees (if GPS is activated AND already has a orientation) or 0
gps setorientation
Set orientation (and activate GPS if not already activated)
rotation setangle
Set the rotation angle of the virtual device.
genymotion capabilities
Get Genymotion capabilities (gps, webcam, remote-control, ...) of selected virtual device.
genymotion clearcache
Clear temporary downloaded files and logs.
genymotion version
Get Genymotion version of selected virtual device.
genymotion license
Get Genymotion license (type, validity, ...).
android version
Get Android version of selected virtual device.
android getandroidid
Get Android ID of selected virtual device (available only with Indie or Business license).
android setandroidid
Set Android ID of selected virtual device (available only with Indie or Business license).
Warning: if several users exist on the Android system, Android ID will only be set for the first user, not for all.
Two kind of values are accepted:
random: generate a random Android ID.
custom value (must be 16 hexadecimal digits long).
android getdeviceid
Get Device ID (IMEI/MEID number) of selected virtual device (available only with Indie or Business license).
android setdeviceid
Set Device ID (IMEI/MEID number) of selected virtual device (available only with Indie or Business license).
Three kind of values are accepted:
none: set an empty Device ID.
random: generate a random Device ID.
custom value (alphanumeric characters, point, dash, underscore).
build number
Get Genymotion Shell build number
help
Prompt the help.
pause
Pause execution (in number of seconds).
version
Get Genymotion Shell version.
exitor
quit
Close Genymotion Shell.
相关文章推荐
- Genymotion的shell的命令
- Genymotion shell 命令行
- Genymotion shell 在ubuntu下怎么打开
- Genymotion Shell命令
- shell内置命令
- shell的基本概念
- shell技巧之------输出中文
- shell 的字符串操作
- Linux命令exit - 退出当前shell
- Linux下SHELL的PS1变量简介
- shell命令
- linux下shell显示-bash-4.1#不显示路径解决方法
- Shell中临时性文件的建立和使用
- zabbix3.0.4-agent通过shell脚本获取mysql数据库登陆用户
- python 反弹shell
- HBase shell scan 模糊查询
- SHELL控制语句的语法
- linux批量修改文件后缀名shell脚本
- shell 之su/sudo
- 控制shell终端提示符格式和颜色