Skip to content

Other Features

Along with the emulated sensors and widget, Genymotion Device image also offers a series of extra features.

Change locale

Genymotion v.12.0.0

In the device display top bar, click to change the language of the user interface:

Language

Note

  • This only changes the user interface language, not the device (Android) language.
  • Only English and French are available for the moment.

Dark mode

Genymotion v.12.0.0

The web UI theme now includes a dark mode. Click to switch between dark and light mode.

Power Off and Reboot

Version badge

In the upper-right corner of the device display titlebar window, click on to stop or reboot your instance:

titlebar

Device Logcat

Version badge

You can access the virtual device real time logcat using ADB or the Device logs panel:

logcat UI

There, you can:

  • Filter or search the device logcat
  • Clear the device logcat buffer
  • Save the logcat for technical support

Shell

Genymotion v.12.0.0

It is now possible to access the instance shell from the front end user interface, without using adb or ssh, by clicking Shell in the left bar menu:

Shell

You can then input shell commands:

Shell prompt

SSH Keys Management

Version badge

This features allows you to add other SSH keys and/or remove existing ones. It also sets the persist.god.keep_ssh_keys property to true, so changes are kept after reboot or restart.

It is also possible to edit keys manually in /data/ssh/authorized_keys.

Note

Supported SSH key types are: ssh-rsa, ssh-ed25519, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384 and ecdsa-sha2-nistp521.

Go to Configuration and the SSH Keys box:

Add a new SSH keys

Click in the text field, copy/paste your SSH public key and press return. If the key is valid, the APPLY button will become available - click the button to apply the change:

Note

If a private or invalid key is input, an error will be display and the APPLY button will remain greyed out.

Remove an SSH key

  1. Click the x button next to the key to remove it.
  2. Click APPLY to apply changes.

Change an SSH key

  1. Click the x button next to the existing key to remove it and add your new key.
  2. Click APPLY to apply changes.

Multi-touch

Multi-touch movements are emulated using the following key and mouse combinations:

Action Windows/Linux macOS
Zoom in Ctrl + Cmd +
Zoom out Ctrl + Cmd +
Tilt forth Ctrl + Cmd +
Tilt back Ctrl + Cmd +
Rotate clockwise Shift + Ctrl + Shift + Cmd +
Rotate counterclockwise Shift + Ctrl + Shift + Cmd +

Changing Resolution

Note

You will need to reboot your device after changing resolution in order to execute the change.

Version badge

  1. Go to the Configuration section of your device, or https://{your_instance_IP}/configuration:

    Configuration screenshot

  2. In the Resolution box, select a preset resolution from the dropdown list, or fill the Width, Height and Density fields to set a custom resolution:

    Configuration resolution

  3. When clicking on APPLY, the virtual device will ask for reboot. This can take several seconds.

Android geometry (size and density) can be changed with the persist.graph_mode and persist.dpi properties. You can use ADB or SSH to run the following commands:

Note

  • {WidthxHeight-Depth} is the desired resolution - for example, 720x1280-32
  • {dpi} is the desired density - for example, 240

Change resolution:

adb shell setprop persist.graph_mode {WidthxHeight-Depth}

Change density:

adb shell setprop persist.dpi {dpi}

Change resolution:

ssh -i key.pem [email protected]{instance_public_IP} 'su -c "setprop persist.graph_mode {WidthxHeight-Depth}"'

Change density:

ssh -i key.pem [email protected]{instance_public_IP} 'su -c "setprop persist.dpi {dpi}"'

Reboot the device to apply the changes.

Use the POST method and call the API /android/resolution to set the following variables:

  • width: the display width. Default value is 800.
  • height: the display height. Default value is 600.
  • dpi: the display density. Default value is 260.

For more details, see Genymotion HTTP API

Kiosk mode

If you want a user to interact with your application and nothing else, you can configure the virtual device so that it turns into a kiosk mode, making it a single-purpose tool.

Version badge

  1. Install & launch the application
  2. Open the Configuration panel:

    Configuration screenshot

  3. In the Kiosk box, you can kiosk and unkiosk the application by clicking the toggle button:

    Kiosk

  1. Connect to your virtual device via ADB or SSH
  2. Start the application you want to lock in kiosk mode
  3. Once the application is started, use the following commands to lock or unlock it:

Lock:

adb shell cmd activity kiosk start

Unlock:

adb shell cmd activity kiosk stop

Lock:

ssh -i key.pem [email protected]{instance_public_IP} 'su -c "cmd activity kiosk start"'

Unlock:

ssh -i key.pem [email protected]{instance_public_IP} 'su -c "cmd activity kiosk stop"'

To lock an application, you can use the POST method and call the API /configuration/kiosk. To unlock it, use the DELETE method and call the API /configuration/kiosk.

For detailed instructions, please refer to Genymotion HTTP API

In kiosk mode, the status bar is hidden and cannot be scrolled down and the Back or Home buttons are unavailable.

Note

If within your application you start another application, this might not work depending on how this application is started. For more information, please refer to the LockTask mode from Android DeviceOwner APIs.

Disabling the Right Toolbar

It is no longer possible to disable the toolbar via iframe from Genymotion Device 12.0.0 onwards. Instead, it is recommended to embed the device display with our web player javascript SDK and select which widget to show/hide.

  1. Connect to the instance shell with SSH
  2. Run su to change the shell ownership from ordinary to root user. For more information about root access, please refer to section Root Access
  3. To disable and re-enable the toolbar:

Disable the toolbar:

/sbin/busybox sed -i -e 's/minimal/no_tool_bar/g' /data/www/iframe/index.html

Re-enable the toolbar:

/sbin/busybox sed -i -e 's/no_tool_bar/minimal/g' /data/www/iframe/index.html

Warning

Please note that this action will disable the right toolbar only on the https://{your_instance_IP}/iframe/ path of your instance, not on the main UI.

  1. Connect to the instance shell with SSH
  2. Run su to change the shell ownership from ordinary to root user. For more information about root access, please refer to section Root Access
  3. To disable and re-enable the toolbar:

Disable the toolbar:

/sbin/busybox sed -i -e 's/default/simple/g' /data/www/iframe/index.html

Re-enable the toolbar:

/sbin/busybox sed -i -e 's/simple/default/g' /data/www/iframe/index.html

Warning

Please note that this action will disable the right toolbar only on the https://{your_instance_IP}/iframe/ path of your instance, not on the main UI.

Changing Product Properties

Version badge

This features allows you to edit the build.prop to emulate a real device more precisely.

  1. Go to the Configuration panel:

    Configuration

  2. Go to the Product Properties box:

    Product Properties

You can change the following build.prop properties:

Field name Property
Display ID ro.build.display.id
Product name ro.product.name
Manufacturer ro.product.manufacturer
Device ro.product.device
Board ro.product.board
Brand ro.product.brand
Model ro.product.model
Fingerprint ro.build.fingerprint
Build description ro.build.description

Misc Features

Version badge

The following options can be reached from the Configuration tab:

Configuration tab

Show pointer location

Show or hide the Android pointer location when clicking in the virtual device:

pointer

Animations

Controls Android animations speed ("0" value disables animation):

animations

Virtual Keyboard

Enables or disables virtual keyboard:

virtual keyboard

Back to top