Security Testing

MobSF and Genymotion Device Image

Julien Maneyrol / 2024-04-23

Setup and use MobSF with Genymotion Device Image for Cloud providers.

How to use MobSF with Genymotion SaaS

Julien Maneyrol / 2025-04-14

In this tutorial, it is assumed that you are familiar with MobSF and you are using it from a physical local machine. For detailed information about MobSF, please refer to MobSF documentation.

> Important: This tutorial requires modification to MobSF source code; it will not work with MobSF official docker image.

Prerequisite Setup gmsaas CLI

Configure the path to your Android SDK

Use the following command:

Configure authentication

You will need a Genymotion SaaS API token for this step. If you haven’t created one yet, you can follow the steps from our on-line documentation. Next, use the following command:

Alternatively, you can store the API Token in the environment variable:

Verify gmsaas configuration

Run the command:

If the command returns “Authentication OK” and “Android SDK OK”, you are all set with gmsaas!

Connect an instance to ADB

Start your instance. When it is in “Running” state, copy the instance UUID (you can get it from Genymotion SaaS UI dashboard, or with the gmsaas recipes list command), then use the following command:

Replace <instance_uuid> with the instance UUID.

The command returns to shell once ADB is connected. If the --adb-serial-port <PORT> option is set, the instance will be connected to ADB on localhost:<PORT>.

Another method is to connect any running instances to ADB by combining this command with the --quiet or -q option and xargs:

You can verify with the adb devices command; adb should now be connected to “localhost:XXXXX device”.

Configure MobSF

1. Clone MobSF code from github

2. Modify the code

3. Install MobSF

4. Launch MobSF

Now, you can access MobSF by browsing to http://localhost:8000/. Log in and navigate to DYNAMIC ANALYSER, your Genymotion SaaS instance should appear as connected at localhost:XXXXX.

How to use MobSF with Genymotion Device Image (navigation tile)

Julien Maneyrol / 2024-04-23

Setup and use MobSF with Genymotion Device Image for Cloud providers.