brew install mitmproxy
Terminal interface:
mitmproxy -p 8888
Web interface:
mitmweb -p 8888 --set web_port=8082
ifconfig | grep "inet " | grep -v "127.0.0.1"
Settings > Connections > Wi-Fi > Name of netwrok > settigns > View More > Proxy
IP address: IP of the PC
PORT: port supplied to mitmweb after "-p", in our example "8888"
brew install --cask android-platform-tools
brew install node
npm install -g apk-mitm # if fail try with `sudo npm install ...`
Enable developer settings: https://developer.android.com/studio/debug/dev-options
On Android:
Settings > Developer Options:
1. Enable "USB debugging"
2. Enable "Wireless debugging"
Go to "wireless debugging" > Pair device with pairing code
On MacOS:
adb pair DEVICE_IP:PORT # e.g. 192.168.0.42:34546, it should be now displayed on the device
adb devices
adb shell uname -a # will display "Linux ..."