I need to force android emulator to use aut-config proxy script.
I already know the basics of using the android emulator to use a proxy server, you need to either send the http-proxy argument when starting the emulator program, or set the http_proxy environment http_proxy in the system. (See here http://developer.android.com/tools/help/emulator.html )
However, my company uses an automatic script configuration for its proxy, for example:
http://autoproxy.company.org/proxy/west.pac , which is actually some java script-like functions.
So, I need the Android emulator to be able to do this automatic script setup. Now I have tried several things, for example:
set HTTP_PROXY=http://autoproxy.company.org/proxy/west.pac
and I also tried to add it as the last parameter.
start /b emulator-x86.exe -netdelay none -netspeed full -avd Nexus_5_API_22_x86 -no-audio -http-proxy %HTTPS_PROXY%
The above situation led to an error:
emulator: http_proxy format is not supported, try 'proxy: port' or username: password @proxy: port '
I can not find details about this on Google. It seems that everyone can use traditional user proxies: pass @proxy: port, but that just doesn't work. In fact, it ends up blocking my Windows account!
source share