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 "Basic Views" 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.

Mac M1

On the Mac M1, on the the Recommended tab, on the "API 31" line, click the Download link.
When the download completes, your screen will look like the image shown below. Click Next.

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, expand Tools.

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, at the bottom, 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.

In the "EULA & PRIVACY POLICY" page, click "AGREE & CONTINUE".

In the "Help us get better" page, click CONTINUE.

In the "Please, grant permissions for app" page, click "GRANT PERMISSIONS".

Click the slider to allow access to all files.

At the top left, click the back-arrow.

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
Minor updates to M1 instructions 3-13-23
Updated project choice 6-21-23