M 140: Android Studio Emulator (15 pts)

What You Need for This Project

Purpose

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

Task 1: Installing Android Studio

Dowloading Android Studio

In a Web browser, go to

https://developer.android.com/studio

Download the software, as shown below.

Run the installer with the default options.

Launch Android Studio. Don't import settings. Accept the default options. Accept any agreements you are asked to.

Create a New Project. Select the "Google Pay" activity, as shown below.

Click Next. Click Finish.

Creating an Emulated Android Device

In Android Studio, on the right side, click the sideways "Device Manager" tab, outlined in yellow in the image below.

In the Device Manager pane, click the "Create Device" button, outlined in red in the image below.

In the "Select Hardware" screen, click "Pixel 3a", as shown below. Notice the arrow icon in the "Play Store" column, showing that this hardware supports Google Play. Click Next.

In the "System Image" screen, on the Recommended tab, on the "Android 11.0 (Google Play)" line, click the Download link.

When the download completes, your screen will look like the image shown below. Click Next.

Mac M1

On the Mac M1, on the the Recommended tab, on the "API 31" line, click the Download link.

In the "Android Virtual Device" screen, on the left side, at the bottom, click the "Show Advanced Settings" button.

Increase the Internal Storage to 4096 MB, outlined in red in the image below.

Click Finish.

In Android Studio, on the right side, in the Device Manager pane, you see a "Pixel 3a API 30" device.

Click the Run button, outlined in red in the image below.

Mac M1

On the Mac M1, from the Android Studio menu bar, click "Android Studio", Preferences.

In the Preferences window, on the left side, click Emulator. On the right side, clear the "Launch in a tool window" check box. Click OK. Then click the Run button.

The emulator starts, as shown below.

If you are asked to, allow it to use the microphone.

To make the emulator appear in its own window, at the top right of the Emulator pane, click the gear icon, outlined in red in the image above, point to "View Mode", and click Float.

Troubleshooting

If the emulator doesn't start, and shows a "Connecting to the emulator" message for a long time, try this:

On a Mac, from the Android Studio menu bar, click "Android Studio", Preferences, Tools, Emulator. Uncheck "Launch in a tool window".

Close Android Studio and relaunch it.

If you are using a PC, the first two clicks are File, Settings.

Installing Qute: Terminal Emulator

From the Android home screen, click the center icon to launch Google Play.

Log in with a Google account. Don't enable backups.

In Google Play, search for Qute, as shown below.

Install "Qute: Terminal Emulator".

M 140.1: Operating System (15 pts)

Launch Qute: Terminal Emulator. At the "Personalize Your Experience" page, close the page by clicking the X at the top right.

Allow any permissions Qute needs.

In Qute, execute this command:


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

Posted 8-28-2022
Mac M1 instructions added 8-29-22 3:16 pm
Tool window troubleshooting tip added 9-19-22
Minor correction on 10-7-22