mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 23:56:00 +00:00
Update cheatsheets
This commit is contained in:
41
emulator
Normal file
41
emulator
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# emulator
|
||||
|
||||
> Manage Android emulators.
|
||||
> 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}}`
|
||||
|
||||
- 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}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`emulator -help`
|
||||
Reference in New Issue
Block a user