Using the Android SDK from the command line, I can get a list of the running devices available using:
./adb device
This gives me the serial number of available devices. How can I get the AVD name of the emulator device from that serial number (like the Eclipse ADT plugin does)?
The Eclipse plugin does it by connecting to the emulator via tcp/ip. To connect, (for linux), type
Replace “5554” with whatever number comes after the hyphen when you type “adb devices” – “emulator-5554”, for instance, would have telnet port 5554 open.
Then, type “avd name”, hit enter, and you should see something similar to the following:
In this example the emulator’s name was “GB10”.