Is there any way to launch by command line a given avd
and have it registered via adb
?
I would also prefer to get the emulator launched headless.
I am looking for this to run tests quickly.
For others looking for non-headless command line startup:
/Applications/Genymotion.app/Contents/MacOS/player --vm-name "xxxx"
Get a list of vms:
$ VBoxManage list vms "Galaxy Nexus - 4.2.2 - API 17 - 720x1280" {56d8e3aa-ecf8-483e-a450-86c8cdcedd35}
Where xxxx can be either the name or the id:
/Applications/Genymotion.app/Contents/MacOS/player --vm-name 56d8e3aa-ecf8-483e-a450-86c8cdcedd35 /Applications/Genymotion.app/Contents/MacOS/player --vm-name "Galaxy Nexus - 4.2.2 - API 17 - 720x1280"
You can kill it with a normal process kill:
ps | grep "Genymotion\.app/Contents/MacOS/player" | awk '{print $1}' | xargs kill
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With