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.
I was able to open it from terminal with:
You may need to navigate to your SDK tools/ first. Here is reference I used: AVD Manager
this is just a small addon to previous solutions presented. What is probably handy to do is to just jam this as a alias into your bash_profile like so:
Open your bash_profile:
Add this:
Source it again:
In the CLI type:
Now you can open up the AVD by just using avd in the command line. The only thing i haven't figured out how to make it stay alive after closing the terminal. Maybe somebody has tips on that.
You can start emulator use terminal shell
options can be special -http-proxy, -dns-server setting. Get more options here
And to list all avd you can use:
result like following:
Example when I start Nexus_5X_Edited_API_23 emulator in OS X 10.11 with proxy setting
In order to open the avd manager on terminal, execute the following:
Go to tools directory inside your android sdk like:
and enter run your avd as
You can find your avd name by running: