Has anybody managed to get the Android Emulator working behind a proxy which requires authentication?
I\'ve tried setting the -http-proxy argument to
I Managed to do it in the Adndroid 2.2 Emulator.
Go to "Settings" -> "Wireless & Networks" -> "Mobile Networks" -> "Access Point Names" -> "Telkila"
Over there set the proxy host name in the property "Proxy" and the Proxy port in the property "Port"
It seems like SDK 1.5 onwards, the -http-proxy
flag also doesn't work. What did work for me is to boot the android image in the emulator and then once Android is running, go to Home > Menu > Settings > Wireless Controls > Mobile Networks > Access Point Names
and then setup the http proxy settings for the default access point.
With the APN proxy settings in place, I can get the emulator's browser to surf the web. However, other stuff like Maps still doesn't work.
I had the same problem when i use the following command:
emulator-x86.exe -http-proxy domain\user:password@proxyIP:port -avd MyAVD
I got the proxy authentication error.
Finally, I had to bypass the proxy NTLM authentication by using the Cntlm here:
http://sourceforge.net/projects/cntlm/
And then after simply configuring the cntlm.ini, I use the following command instead:
emulator-x86.exe -http-proxy 127.0.0.1:3128 -avd MyAVD
and it works :)
Jay, though that would be the ideal place for this information, it has not been updated for 2.1. Below I will list the methods that currently do NOT work for the 2.1 emulator.
The http-post argument does not work for the 2.1 emulator. Setting a proxy in the APN list within the 2.1 emulator does not work. Inserting the proxy directly into the system table via sql-lite does not work with 2.1.
In fact, the ONLY way to get the browser to connect to the internet via the emulator that I've found in 2.1, is to NOT use a proxy at all. I really hope this gets fixed soon, for there are many people with this same problem.
I remember having the same problem - After searching on the web, I found this solution - From the command line,
1. > adb shell
2. # sqlite3 /data/data/com.android.providers.settings/databases/settings.db
3. sqlite> INSERT INTO system VALUES(99,’http_proxy', 'proxy:port');
4. sqlite>.exit
EDIT: Edited answer to reflect the latest version of Android.
Apparently this problems runs only with Android 2.x and Windows. There is a opened bug here : http://code.google.com/p/android/issues/detail?id=5508&q=emulator%20proxy&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars