2020-09-14 12:58:51 +01:00
|
|
|
# emulator
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Manage Android emulators.
|
2020-09-14 12:58:51 +01:00
|
|
|
> More information: <https://developer.android.com/studio/run/emulator-commandline>.
|
|
|
|
|
|
|
|
- Start an Android emulator device:
|
|
|
|
|
|
|
|
`emulator -avd {{name}}`
|
|
|
|
|
|
|
|
- Display the webcams on your development computer that are available for emulation:
|
|
|
|
|
|
|
|
`emulator -avd {{name}} -webcam-list`
|
|
|
|
|
|
|
|
- Start an emulator overriding the facing back camera setting (use `-camera-front` for front camera):
|
|
|
|
|
|
|
|
`emulator -avd {{name}} -camera-back {{none|emulated|webcamN}}`
|
|
|
|
|
2020-12-04 12:37:44 +00:00
|
|
|
- Start an emulator, with a maximum network speed:
|
2020-09-14 12:58:51 +01:00
|
|
|
|
|
|
|
`emulator -avd {{name}} -netspeed {{gsm|hscsd|gprs|edge|hsdpa|lte|evdo|full}}`
|
|
|
|
|
|
|
|
- Start an emulator with network latency:
|
|
|
|
|
|
|
|
`emulator -avd {{name}} -netdelay {{gsm|hscsd|gprs|edge|hsdpa|lte|evdo|none}}`
|
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
|
|
|
- Start an emulator with a given SD card partition image file:
|
|
|
|
|
|
|
|
`emulator -avd {{name}} -sdcard {{path/to/sdcard.img}}`
|
2023-07-16 18:23:40 +01:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`emulator -help`
|