What is a command to list available avdnames

I know that I can run the avd emulator by typing

emulator.exe @avdname

But is there a command to list avdnames available? Where is this avd configuration stored?

+44
android shell avd configuration adb
Oct. 20 '11 at 15:02
source share
6 answers

AFAIK android list avd is what you need.

+88
Oct. 20 '11 at 15:09
source share
— -

Using sdk / tools / emulator

All available avds are listed here.

 emulator -list-avds 
+33
Jun 11 '16 at 1:20
source share

I try several combinations, and it worked :), it was pretty obvious

 android list avd 

the conclusion is similar to this

 Available Android Virtual Devices: Name: EMULLL Path: /home/krste_ristevski/.android/avd/EMULLL.avd Target: Android 2.3.3 (API level 10) Skin: WVGA800 Sdcard: 512M 

now with

 emulator @EMULLL 

I can run the emulator from the console

+11
Oct. 20 2018-11-18T00:
source share

List all your emulators:

emulator -list-avds

Run one of the following emulators:

emulator @ name-of-your-emulator

where is the emulator located:

$ {ANDROID_SDK} / tools / Emulator

+3
Jun 16 '17 at 11:28
source share

I have a simple method (windows only):

  • First of all, set a permanent path to adb on your system (pretty similar to java). Find yours, For most cases - C:\Program Files\android\android-sdk\platform-tools and copy it. Now look at the properties of your system and find the Advance System setting. Now find the environment variable in the search path of the system variable tab. If there is no path, create a new variable and name it "Path" and paste the copied value into the next field. But if there is already a Way, then open it and place it ; semi-colon in the last value field and paste the copied value.

  • Now you are almost done! Check it out by typing adb in cmd

  • and now enter adb devices , this is what you wanted. Greetings.

+2
Sep 08 '12 at 11:16
source share

This is an old post, but I am currently using this script to display avd names and run them.

 #! /bin/bash # (@) start-android # If the emulator command exists on this device, displays a list of emulators # and prompts the user to start one # Check if the emulator command exists first if ! type emulator > /dev/null; then echo "emulator command not found" exit 1 fi # Gather emulators that exist on this computer DEVICES=( $(emulator -list-avds 2>&1 ) ) # Display list of emulators echo "Available Emulators ----------------------------------------" N=1 for DEVICE in ${DEVICES[@]} do echo "$N) $DEVICE" let N=$N+1 done # Request an emulator to start read -p " Choose an emulator: " num # If the input is valid, launch our emulator on a separate PID and exit if [ $num -lt $N ] && [ $num -gt 0 ]; then DEVICE=${DEVICES[$num-1]} emulator "@$DEVICE" > /dev/null 2>&1 & exit 0 else echo "Invalid Entry : $num" exit 1 fi 

Here is an example of launch and output:

 ./start-android.sh Available Emulators ---------------------------------------- 1) Nexus_5X_API_23 2) Nexus_9_API_23 Choose an emulator: 1 
+2
Jan 03 '17 at 5:38 on
source share



All Articles