1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 12:42:07 +02:00
tldr/pages/common/emulator.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

1.1 KiB

emulator

Manager Android emulators from the command-line. More information: https://developer.android.com/studio/run/emulator-commandline.

  • Display the help:

emulator -help

  • 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}}

  • Start an emulator, with a maximum network speed:

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}}