Genymotion Setup Example

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search

Summary

This documentation explains how to set up a virtual phone using Genymotion for later use in IT security testing, such as attacks and vulnerability analysis.


Description

Genymotion is a versatile Android emulation platform that started as a fast developer-focused emulator and has grown into a cloud and desktop-based "Android as a Service" solution.

Step 1

First download Genymotion: https://www.genymotion.com/product-desktop/download/

Step 2

Add a new phone.


Genymotion1.png


Step 3

Choose which phone you would like to emulate and set all your preferences in the following configurations.


Genymotion2.png


The only thing important is that you set the network mode to be bridged, so that the virtual device can directly communicate with the local network. (and with making it a potential target for attacks within the network)


Genymotion3.png


Make sure that the atacker machine is in the same network. In Virtual Box this can be seen in the settings in the network tap of the atacker machine. It should look like this:


Genymotion4.png


Step 4

After this you can already start your phone and you will see that a popup of a virtual phone apears.


Genymotion5.png


Step 5

Once you have the virtual phone running, you can use the adb shell to access the device's command line interface. This provides you with a variety of options to interact with the virtual phone, such as configuring network settings, managing files, installing apps, or even executing specific commands to troubleshoot or control the device remotely. ADB stands for (Android Debug Bridge Shell) and it is part of the Android SDK (Software Development Kit).

For setting up first ensure that the Android SDK is installed on the computer. When Android Studio is installed, ADB is usually included as part of the installation. The ADB executable then typically is located in the following path:

   C:\Users\<YourUserName>\AppData\Local\Android\Sdk\platform-tools\adb.exe

This path needs to be added to the environment varibales.

Search for environment varibles:

Genymotion6.png


Under System Variables, select Path, then click Edit.

Genymotion7.png

Genymotion8.png


Add the path to the platform-tools directory:

Genymotion9.png


Now, the virtual phone can be accessed in the command line with the adb shell command, allowing commands to be issued as needed.

Genymotion10.png

References