android-emulator-container-scripts icon indicating copy to clipboard operation
android-emulator-container-scripts copied to clipboard

Emulator proxy

Open vaclavbenes opened this issue 6 years ago • 4 comments

Hi is it possible set emulator proxy configuration? Like emulator -avd myavd -http-proxy http://168.192.1.2:3300

vaclavbenes avatar Jan 23 '20 13:01 vaclavbenes

Yes this is possible. Note that you cannot pass in the -avd myavd flag. The docker container uses a preconfigured Pixel2 avd.

You can pass in additional parameters as follows:

  1. Create the container with the extra flag:

    $ emu-docker create emuzip imgzip --extra "-http-proxy http://168.192.1.2:3300"
    
  2. Or launch the container with additional parameters:

    $ ./run.sh <container_id> -http-proxy http://168.192.1.2:3300
    

pokowaka avatar Jan 23 '20 18:01 pokowaka

Hi! I'm using docker-container-proxy, and it's working good with emulator

serpavlov avatar Feb 14 '20 10:02 serpavlov

Hi! Proxy not working if i use adb shell settings put global http_proxy ip:port We need set proxy without reboot or recreate image

kavabunga6 avatar May 07 '20 19:05 kavabunga6

You are likely running into docker networking issues, see: Issue 140

pokowaka avatar Jun 11 '20 02:06 pokowaka