Here is a link to the emulator announcement (included with Visual Studio 15 CTP): https://www.visualstudio.com/en-us/msft-android-emulator-vs.aspx
I would like to set up a proxy for the Internet connection in this VM. My purpose is to connect through port 8888 on my host machine so that I could see this Android VM's traffic in my Fiddler.
Is this possible? The android settings in the VM itself do not contain any mobile network access points and therefore I can't figure out how to set up a proxy.
Thanks in advance.
Unfortunately it's not possible to monitor network traffic on the VS Emulator for Android yet. This is because we treat the network connection as an Ethernet connection, and you can only set a proxy on a WiFi network adapter in Android. It doesn't even work when you try to manually set the
System.HTTP_PROXY
variable via a JavaSystem.putString()
call, because Android only gives this permission to system apps. We're working on a fix for this and it should be available soon!Once you have launched the emulator follow the steps below.
Hope this works for you.
We've made this work as of Visual Studio 2015 RC. See http://blogs.msdn.com/b/visualstudioalm/archive/2015/05/06/using-fiddler-to-monitor-network-traffic-from-the-vs-emulator-for-android.aspx for the full instructions.