Using mitmproxy with an Android phone
This is how I got a Nexus 5, running Android L, to route HTTP and HTTPS requests through mitmproxy:
Connected the phone to my Mac with a USB cable, which caused an Android File Transfer window to appear, as I have the developer tools installed.
Copied ~/.mitmproxy/mitmproxy-ca-cert.cer to my phone by dragging it to the Android File Transfer window.
On my phone, went to Settings → Security → Install from storage (under Credential storage), navigated to the location where I dropped the file, and selected it.
In the dialog that appeared, I entered mitmproxy as name and pressed ok. A warning triangle now appeared in the top left corner ("Network may be monitored").
Went to Settings → Wi-Fi and long-pressed on my network name, and selected Modify network in the panel that appeared.
Selected Advanced options, changed proxy from None to Manual, and then keyed in the IP address on my Mac with mitmproxy running, and port `8080.
Started mitmproxy on my Mac (see previous post).
Now HTTP and HTTPS requests from my phone started showing up:















