HTTPs Inspection on Android with Hyper-V and an Emulator

I’ve been doing some work with Microsoft Intune - specifically around Conditional Access, Azure AD and Intune. There are plenty of guides online for getting a Fiddler trace of HTTPS traffic between Android and a back end, but they all require you to have your Windows Laptop on the same network as your Android device. In a modern corporate network architecture that isn’t easy. The Microsoft support team, my customer network, and my conracting company network were all locked down preventing this setup.

Option 1 - Go Home

Drag the device home and setup fiddler in a few minutes, but if you need to troubleshoot at work, that can be a pain.

Option 2 - Android SDK/Emulator

This will work - as long as you aren’t running Hyper-V on your work machine already - you are? Oh.. well try option 3.

Option 3 - Microsoft Android Emulator + Android SDK

Intune company portal APk https://www.microsoft.com/en-us/download/details.aspx?id=49140

Download the Microsoft android emulator https://www.visualstudio.com/vs/msft-android-emulator/

Download Android studio https://developer.android.com/studio/index.html

Download fiddler https://www.telerik.com/download/fiddler

  • Download each of the tools and install them
  • Setup fiddler to allow remote connections
  • Configure the proxy in the Android device by press + holdon the network
  • Install the Intune Company portal by drag+Drop (if you need it)
  • Browse to the loopback connection in the Android browser http://ipv4.fiddler:8888 (default)
  • Install the root certificate
  • Start troubleshooting