Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac Terminal - How to start Android Virtual Device Manager on CLI?

I am currently developing a mobile web application and I don't have a test device yet so I'm using the android-emulator to check the site. On my mac, I have installed the stand-alone Android SDK. Every time I want to use the AVD Manager, I have to execute the following on my terminal:

monitor

This command (being executed on the installed android sdk path) will open the Android Device Monitor and from here, I go to its menu bar and select Window Virtual Device Manager just to open the AVD Manager. So, is there a shortcut for that? I mean, i want to directly open the AVD manager via cli.

like image 627
JN ERC Avatar asked Oct 08 '13 03:10

JN ERC


People also ask

How do I open AVD Manager from terminal?

Using Android Studio After you've your project open, go to Tools => Android => AVD Manager .

How do I start and launch AVD?

Starting the emulatorUse the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]


2 Answers

I was able to open it from terminal with:

android avd

You may need to navigate to your SDK tools/ first. Here is reference I used: AVD Manager

like image 199
Will Schoenberger Avatar answered Oct 19 '22 09:10

Will Schoenberger


Go to tools directory inside your android sdk like:

cd ~/Android/Sdk/tools

and enter run your avd as

./emulator -avd <your-avd>

You can find your avd name by running:

./emulator -list-avds
like image 44
Krishan Kumar Mourya Avatar answered Oct 19 '22 10:10

Krishan Kumar Mourya