Run Android Emulator with proxy configurations
As an Android developer we use proxy connections all the time to debug our network calls. Before I show you how to configure proxy on Android Emulator, you need to add security config settings to your application code, you can follow this blog post to do that.
Configure Proxy:
Step 1: start Android Emulator. I am using Nexus 5X With Android P
Step 2: Get IP address and port number of your proxy connection. My Proxy IP address is 10.180.181.7 and port number is 8888
Step 3: Go to Android Settings
Step 4: Select Network & Internet
Step 5: Select Mobile Network
Step 6: Expand Advanced
Step 7: Select Access Point Names
Step 8: Select + (plus icon) on the Toolbar
Step 9: Provide Name, APN, Proxy and Port
Step 10: Important — Select overflow menu and Save
Step 11: use newly created Access Point Name
That’s it now Android emulator is configured to use the proxy connection for all the network requests.