Emulated Features and Sensors

Emulated Features and Sensors

To simulate various behaviors of your application according to specific use cases, Genymotion provides easy-to-use widgets which emulate the following sensors and features:

The following sections describe how to use each widget. Not all widgets are available on Android Automotive.

Sound Volume

You can control the volume of the sound emitted by your virtual device by clicking the volume controls.

Rotate Screen

This feature is not available with Android Automotive.

Full-screen

You can turn the full-screen mode on or off by clicking.

Clipboard

This feature is not available with Android Automotive.

Copy/Paste to the virtual device

1. Click to open the widget window.

2. Paste your text into the clipboard text field.

3. From within the virtual device, hold the left mouse button in the field you wish to paste to.

4. Click Paste as on a real Android device.

Copy/Paste from the virtual device

From within the virtual device, select the text you wish to copy and hold the left mouse button.

Click Copy or Cut as on a real Android device.

The copied text is displayed in the clipboard text window. The text is automatically copied to your OS clipboard.

File upload

You can upload files from your computer to the virtual device.

1. Click to open the widget window.

2. A file picker is shown; click BROWSE to browse for the file you wish to upload.

Uploaded files are stored in /sdcard/Download on the virtual device. You can also install the Open GApps package by clicking INSTALL OPEN GAPPS.

Camera and Microphone

This feature is not available with Android Automotive.

The Camera and Microphone injection widget allows you to send a video and audio stream from a virtual device to the Android system. The video stream comes from a real physical webcam and microphone connected or integrated into your computer.

To use the Camera and Microphone injection widget:

Battery

This feature is not available with Android Automotive.

The Battery widget allows you to test how your application reacts with different battery charge levels and states of charge.

To use the Battery widget, click the battery icon. You can:

GPS

Many applications do not rely on the GPS orientation, but use the device accelerometer or gyroscope to determine the bearing of the device, which are not yet supported.

The GPS widget allows real-time activation and modifications of a position, accuracy and bearing.

To use the GPS widget, click the widget and then set the following values:

You can also:

Capture

The Capture widget allows you to take a screenshot or screencast of virtual devices. This way, you can broadcast images or videos of your applications.

To open the capture window, click the capture widget and select:

Identifiers

This feature is not available with Android Automotive.

The Identifiers widget shows Android ID and Device ID numbers. You can view and edit these values at any time, without having to reboot your virtual device.

To use the Identifiers widget, click the ID widget. A panel appears showing Android ID and Device ID with a GENERATE button for each and an UPDATE button to apply changes.

Network

The Network widget allows you to test how your application reacts with different network quality and performance types.

Click to open the widget window. By default, Wifi is enabled. To disable Wifi and simulate Mobile Data transfer speed, uncheck Wifi, select a Network Type and a Signal Strength from the drop-down lists.

Network profiles and their corresponding values with max Signal strength (Great) are listed in the table below:

Tables:

Baseband

SIM data (Baseband) is only simulated: it is not possible to send or receive calls or messages to/from physical phones or tablets. Baseband emulation allows you to test different mobile network operators with different SIM operators.

Click to open the widget window and fill the fields with the desired values:

Click UPDATE to apply the changes.

Phone

Phone is only simulated: it is not possible to send or receive calls or messages to/from physical phones or tablets.

The Phone widget allows you to test applications relying on telephony features and observe their behavior when receiving a call or a text message.

To open the Phone widget, click the phone icon. Then, enter a fictious incoming phone number and:

Text messages are displayed in the virtual device via a notification, but they can also be read in the Messaging application.

Disk I/O

The Disk I/O widget allows you to emulate devices with slow internal storage. It can be very handy if your app requires reading large amount of data from the disk such as gallery apps that load locally stored images or game apps that load large files.

As the speed limit provided by this feature comes on top of the one already defined in your Cloud provider instance, make sure the profile you wish to apply does not exceed the disk performance already provided in the instance. If so, the widget will not be able to emulate the expected disk performance. For more information, refer to your Cloud provider documentation.

Click to open the widget:

Biometrics

This feature is not available with Android Automotive. This feature is only available for Android 13 and above.

The Biometrics widget allows you to simulate fingerprint recognition.

Click the biometrics widget to open the widget window. The icons will only become available when fingerprint enrollment starts in Android. At that moment, Authentication required will turn to Yes. Then, you will be able to click on one of the icons to simulate the following scenarios:

You can also toggle Recognized by default to automatically respond to a fingerprint enrollment with the recognized scenario.

Important Note: In order to use this widget in any application asking for Fingerprint authentication, you need to configure one fingerprint in Android. Follow these steps in Android: 1. Go to "Settings". 2. Then "Security & privacy". 3. Then "Device unlock" and "Fingerprint" 4. Select a screen lock method 5. Enter your Pattern, PIN or Password and click NEXT 6. Confirm and proceed to the setup 7. Use the Biometric widget to configure one finger

Navigation Widgets

The navigation widgets emulate the Android navigation buttons:

Power

The Power Widget emulates a real device power button:

The Power widget does not shut down the instance, and you will still be charged by the Cloud provider. To shutdown an instance safely, use the Power Off and Reboot feature, or do it from your Cloud provider EC2 dashboard.

---

[JSON-LD] { "@context": "https://schema.org", "@type": "TechArticle", "headline": "Emulated Features and Sensors", "description": "Overview of Genymotion emulated sensors and how to use their widgets.", "datePublished": null, "contentFreshness": "assumed-current", "inLanguage": "en", "keywords": ["Genymotion", "emulated sensors", "GPS", "Camera", "Biometrics", "Network", "Disk I/O", "Identifiers", "Baseband"], "about": { "@type": "SoftwareApplication", "name": "Genymotion", "applicationCategory": "Android Emulator", "description": "Android emulator with emulated sensors and features" }, "mainEntity": { "@type": "Thing", "name": "Genymotion Emulated Features and Sensors" }, "geo_quality": { "fluency_applied": true, "issues_fixed": ["vague_referents", "compound_sentences", "missing_definitions"], "rewrite_count": 5 } } [/JSON-LD]