Forrest logo
back to the emulator tool

emulator:tldr:ef35f

emulator: 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}
try on your machine

The command you provided is used to start an Android emulator with a specified AVD (Android Virtual Device) while using an HTTP proxy. Let's break it down:

  • emulator: This is the command to launch the Android emulator.

  • -avd ${name}: The -avd flag specifies the AVD to be launched. ${name} is a variable that should be replaced with the actual name of the AVD you want to start. For example, if your AVD is named "Pixel_2_API_30", you would replace ${name} with "Pixel_2_API_30".

  • -http-proxy ${http:--example-com:80}: The -http-proxy flag is used to set up an HTTP proxy for network communication within the emulator. ${http:--example-com:80} is a variable that specifies the proxy hostname and port. In this case, it is set to "example.com" on port 80. You should replace ${http:--example-com:80} with the actual hostname and port of the HTTP proxy you want to use.

Putting it all together, this command will start an Android emulator with the specified AVD while configuring it to use the provided HTTP proxy for network communication.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the emulator tool