M 101: Genymotion (15 pts)

What You Need for This Project

Purpose

To prepare a Genymotion Android emulator, so you can easily install apps from Google Play and audit their security.

Genymotion is a very nice, luxurious Android virtual machine, more convenient and efficient than the emulator Google Studio provides.

Task 1: Installing Genymotion

Dowloading Genymotion

In a Web browser, go to

https://www.genymotion.com/fun-zone/

Click "Download Genymotion Personal Edition", as shown below.

In the next screen, click "Create an account". Fill in the form with your email address and other details, as shown below.

Accept the terms and click "Create account".

Download links appear. Download the correct version for your OS. There are four choices:

If you are using Windows, download the version including VirtualBox unless VirtualBox is already installed.

While the download proceeds, check your email and activate your Genymotion account.

Installing Genymotion

If you are using Mac or Window, double-click the installer file and install the software with the default options.

Ubuntu Users

If you are using Ubuntu, execute these commands:
sudo apt-get update
sudo apt-get install virtualbox -y
cd
cd Downloads
ls -l
You should see the name of the downloaded file, which should be something like genymotion-2.7.2-linux_x64.bin. Use that name in the next two commands:
chmod +x genymotion-2.7.2-linux_x64.bin
./genymotion-2.7.2-linux_x64.bin
Install the software with the default options. Once it's installed, launch it with these commands:
cd /opt/genymobile/genymotion/ 
./genymotion

Creating a Virtual Device

Using a USB Stick

If you are at DEF CON or somewhere else with slow Internet service, you can get an OVA file via sneakernet and double-click it to install it into VirtualBox and Genymotion.
After Genymotion starts, it asks if you want to add a new virtual device. Click Yes.

Sign in with your Genymotion account to see available devices.

In the list of "Available templates", double-click "Google Nexus 5", as shown below.

In the "Install virtual device" box, click INSTALL.

The virtual device downloads.

In Genymotion, your device appears in the top section, under the heading "My installed devices", as shown below.

Starting the Genymotion Device

In the Genymotion window, in the "My installed devices" section, double-click "Google Nexus 5".

The Android device starts up, showing the Home Screen, as shown below.

Installing Google Apps (Outside China Only)

To test apps, we need access to the Google Play Store. Genymotion now makes that very easy. However, you cannot use this method inside China--see the next section for another method.

In your Genymotion machine, at the top right, click the "OPEN GAPPS" button, outlined in green in the image above.

A box opens, titled "OPEN GAPPS". Click the Accept button.

When you are prompted to, click "Restart now".

When your device restarts, click on the hone screen, hold down the mouse button, and swipe up to see all apps.

You should see "Play Store", outlined in green in the image below.

Installing Google Apps (In China)

If you are unable to connect to Google, download this file and drop it on your Genymotion device to install Google apps.

open_gapps-x86-6.0-pico-20190601.zip

A box pops up saying "Do you want to flash it..."

Click OK.

After the flash is complete, click OK. Close the Genymotion window to power off the virtual device and restart it.

Launching Play Store

If you are in China, skip this section--Play Store won't be able to connect to the Google servers.

Click "Play Store".

When you are prompted to, log in with a Gmail account.

Agree to the terms.

The Play Store opens, as shown below.


M 101: ID (15 pts)

On the right side of Genymotion, in the black bar, click the seventh icon down, titled ID, as colored pink in the image above.

An Identifiers box pops up, as shown on the right side in the image above.

Find the text in that box that is covered by the green box in the image above. That's the flag.


Installing Chrome

If you are in China, skip this section--Play Store won't be able to connect to the Google servers.

In the Play Store, search for chrome. Install "Google Chrome", as shown below.


Modifications made to support Chinese users 6-1-19
Sneakernet OVA note added 8-9-19