- How to create an AOSP emulator

The Android emulator created via android studio is heavy and comes with many features that we don't use in our apps especially Google APIs so it is recommended to use the Android Open Source Project (AOSP) emulator and here are step-by-step instructions.

  1. $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install emulator
    1. Intel CPU $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "system-images;android-31;default;x86_64"
    2. M CPU: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "system-images;android-31;default;arm64-v8a"
  2. yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
    1. Intel CPU $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd --force -n Pixel_API_31 -d pixel --package "system-images;android-31;default;x86_64"
    2. M CPU $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd --force -n Pixel_API_31 -d pixel --package "system-images;android-31;default;arm64-v8a"

Left: AOSP

Right: Emulator with Google Apis

AOSP - Emulator with Google Apis

Engineering Team

Written by Engineering Team

Development

More articles

Deploying an NFT smart contract

Launching NFTs: Your Guide to Smart Contract Deployment

Read article

Encoding/decoding Android Key

Cracking the Code: Android Key Encoding and Decoding Explained

Read article