Skip to the content.

AndroidStudioEmulator-GUIconfig

The goal of this tutorial is to install Android Studio to run apps.

   
by-nc-sa This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Table of Contents

1. Install required tools

NOTES TO LINUX USERS

NOTES TO WINDOWS USERS

Download and install the following tool:

NOTE

If you need to disable the “Windows Hypervisor Platform” type “Turn Windows features on or of” in the Windows search bar, then disable the feature from the menu by removing the check mark:

hyper-v

Then restart your computer (this is mandatory) and follow the installation steps bellow.

If you already installed Android Studio and need to install the HAXM drivers, run: %LOCALAPPDATA%\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe

To install Android Studio, follow thess steps:

2. Configure emulator

Once the Android Studio is installed, we need to create and configure an Android Virtual Device (AVD).

  1. Open Android Studio and choose New Project: step1

  2. In the New Project window select No Activity, and then Next: step2

  3. On the Configure Your Project give a name to it, like MCIF-AFD2, and click Finish: step3
    • Wait for the installation of the packages, then press Finish.
  4. The Android Studio IDE should be open now. Go to Tools → Device Manager: step4

  5. In the Device Manager sub-window, click Create Device: step5

  6. In the Select Hardware window, click New Hardware Profile: step6

  7. A new windows will open, the Configure Hardware Profile:
    • give a name to the device, e.g. AFD2 Low resolution
    • chose a resolution (the lower the resolution the better the emulator performance will be), we recommend 320x640
    • activate both Input check boxes (Has Hardware ...)
    • then click Finish step7

    • Verify that the new devices exists, then press Next step7.1
  8. In the System Image window select x86 Images, then select API Level = 30 (we don’t want the latest version because it’ll have more security features that make it harder for us to analyse apps) with ABI = x86_64 . Finaly click the down arrow next to the R letter to download the emulator files: step8
    • Then click Finish, and Next

NOTE

We need root access to the folders inside the emulator, therefore we cannot select a system-image with _playstore name, or symbol.

  1. Now, in the Android Virtual Device (AVD) verify the configuration and click Finish: step9

  2. The newly created AVD should now be listed in the Devices. Select it and click run (triangle under the Actions column): step10
    • You may detach the Devices window:step10
  3. If everything goes ok, you should be able to see the emulator window. Notice the buttons Power, Back, Home and Overview on top of the window. Interact with the emulated Android to confirm that everything is working. step11

3. Exercise

After setting up the Android Studio Emulator and making sure it’s working, do the exercise listed here