emulator

Manager Android emulators from the command line.

TLDR

Display the help

$ emulator -help
copy


Start an Android emulator device
$ emulator -avd [name]
copy


Display the webcams on your development computer that are available for emulation
$ emulator -avd [name] -webcam-list
copy


Start an emulator overriding the facing back camera setting (use -camera-front for front camera)
$ emulator -avd [name] -camera-back [none|emulated|webcamN]
copy


Start an emulator, with a maximum network speed
$ emulator -avd [name] -netspeed [gsm|hscsd|gprs|edge|hsdpa|lte|evdo|full]
copy


Start an emulator with network latency
$ emulator -avd [name] -netdelay [gsm|hscsd|gprs|edge|hsdpa|lte|evdo|none]
copy


Start an emulator, making all TCP connections through a specified HTTP/HTTPS proxy (port number is required)
$ emulator -avd [name] -http-proxy [http://example.com:80]
copy


Start an emulator with a given SD card partition image file
$ emulator -avd [name] -sdcard [path/to/sdcard.img]
copy

Copied to clipboard