Skip to content

Instantly share code, notes, and snippets.

@CompuWiser
Last active May 22, 2021 07:16
Show Gist options
  • Save CompuWiser/0bb1c5192e397895ca7cbdcb9d99b8e9 to your computer and use it in GitHub Desktop.
Save CompuWiser/0bb1c5192e397895ca7cbdcb9d99b8e9 to your computer and use it in GitHub Desktop.
How to manage Android Virtual Devices using command-line

How to manage Android Virtual Devices from command line

List all your emulators:

emulator -list-avds

Run one of the listed emulators with -avd flag:

emulator -avd @name-of-your-emulator

where emulator is under:

${ANDROID_SDK}/tools/emulator

Mine:

Pixel_2_API_29_And10
Pixel_4_API_30_And11
Pixel_4_API_S_And12

To start an Virtual Device:

# Start multiple devices:
emulator -avd Pixel_2_API_29_And10 Pixel_4_API_30_And11

# To start one:
emulator -avd Pixel_4_API_30_And11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment