I'm using Fiddler to capture traffic from Android phones. I have followed the steps in https://www.telerik.com/blogs/how-to-capture-android-traffic-with-fiddler and I can capture https traffic just fine on a physical device. However when using an Android emulator I am unable to capture any traffic.
I'm using an Android 5.1 system image to be sure that the Android 7 change with ignoring user-installed root certificates does not affect me. When trying to load an https page like https://example.com in the default browser on the emulator the initial CONNECT request gets closed immediately according to fiddler and after a very long time the browser times out and shows an net::ERR_CONNECTION_REFUSED error.
See the attached screenshot for what this looks like in Fiddler.
Here are some setups that I've tried:
* Fiddler 5.0.20202.18177 on two different Windows 10 computers
* Using the emulator bundled with Android Studio on the same computer as I'm running Fiddler
* Using the emulator bundled with Android Studio on a Linux computer on the same network as I'm running Fiddler
* Using the Genymotion emulator, on the same computer as I'm running Fiddler
In all these cases http traffic is captured fine but https traffic can not be captured.
In addition to this I've also tried swapping out Fiddler with both Burp suite and mitmproxy and when doing this I can capture https traffic from emulators just fine. It seems like there is some problem with Fiddler and Android emulators rather than my setup.
Please let me know if there there is any other information I could provide to help resolve this issue. I really like Fiddler and would hate it if I had to use Burp suite or similar when working with emulators.
I'm using an Android 5.1 system image to be sure that the Android 7 change with ignoring user-installed root certificates does not affect me. When trying to load an https page like https://example.com in the default browser on the emulator the initial CONNECT request gets closed immediately according to fiddler and after a very long time the browser times out and shows an net::ERR_CONNECTION_REFUSED error.
See the attached screenshot for what this looks like in Fiddler.
Here are some setups that I've tried:
* Fiddler 5.0.20202.18177 on two different Windows 10 computers
* Using the emulator bundled with Android Studio on the same computer as I'm running Fiddler
* Using the emulator bundled with Android Studio on a Linux computer on the same network as I'm running Fiddler
* Using the Genymotion emulator, on the same computer as I'm running Fiddler
In all these cases http traffic is captured fine but https traffic can not be captured.
In addition to this I've also tried swapping out Fiddler with both Burp suite and mitmproxy and when doing this I can capture https traffic from emulators just fine. It seems like there is some problem with Fiddler and Android emulators rather than my setup.
Please let me know if there there is any other information I could provide to help resolve this issue. I really like Fiddler and would hate it if I had to use Burp suite or similar when working with emulators.