Genymotion Shell

Genymotion Shell

Genymotion Shell is a shell to script the modification of sensor statuses.

Starting Genymotion Shell

To start Genymotion Shell, perform the action corresponding to your operating system.

C:\Program Files\Genymobile\Genymotion\genyshell.exe

/Applications/Genymotion Shell.app/Contents/MacOS/genyshell

~/genymotion/genymotion-shell

or

/opt/genymotion/genymotion-shell

Interacting with Genymotion Shell

Interacting with virtual devices

The devices command interacts or returns results about virtual devices themselves. Available subcommands are:

Example

Genymotion Shell > devices list
|----------------------------------------------------------------------
| No Genymotion virtual device running found
| Please, run at least one Genymotion virtual device to use this shell
|----------------------------------------------------------------------
Available devices:
Id | Select | Status | Type | IP Address | Name
0 | | Off | virtual | 0.0.0.0 | Samsung Galaxy S8
1 | | Off | virtual | 0.0.0.0 | Samsung Galaxy S9

Example

Genymotion Shell > battery getlevel
Battery level: 97%

Example

Genymotion Shell > gps setstatus enabled
GPS status set to: enabled
Genymotion Shell > gps setlatitude 50
GPS Latitude set to: 50
Genymotion Shell > gps setlongitude 40
GPS Longitude set to: 40

Example

Genymotion Shell > rotation setangle 180
Device angle of rotation set to: 180

Example

Genymotion Shell > android version
Version: 8.1.0
Genymotion Shell > android getandroidid
Android ID: e77d9eeb469a647b

Example

Genymotion Shell > diskio getreadratelimit
Read byterate is unlimited

Genymotion Shell > network setstatus wifi
Network status set to: wifi
Genymotion Shell > network setmobileprofile edge
Mobile network profile set to: edge
Genymotion Shell > network setsignalstrength mobile moderate
Signal strength for mobile set to: moderate

Example

Genymotion Shell > phone baseband sms send 123456789 Hello!

Example

Genymotion Shell > genymotion capabilities
{
  "accelerometer": true,
  "baseband": true,
  "battery": true,
  "camera": true,
  "deviceid": true,
  "diskio": true,
  "gps": true,
  "network": true,
  "remote_control": true,
  "screencast": true
}

Using Genymotion Shell from a command prompt or script

You can connect to Genymotion Shell and interact with a virtual device from a command prompt or in a script. Options below are specific to the command line interface:

Example

./genyshell -c "battery getlevel"

Connection mode: local host

Welcome to Genymotion Shell

Genymotion virtual device selected: Samsung Galaxy S8_1

Battery level: 100%


### Interacting with Genymotion

The genymotion command allows you to perform actions related to the Genymotion application via Genymotion Shell.

Available subcommands are:
- capabilities: Returns Genymotion features available on the selected virtual device.
- clearcache: Clears temporary files and logs.
- version: Returns the Genymotion version of the selected virtual device.
- license: Returns information about the Genymotion license (type, validity).

Example
Genymotion Shell > genymotion capabilities ```

Example: Tools and navigation

The page includes examples and quick references to commands, as shown above. This content is part of the Genymotion Shell documentation and demonstrates command usage, categories, and typical outputs.

Tools Genymotion Desktop