@echo off REM Configure emulator to route traffic through PC's mitmproxy on port 8080 echo. echo ======================================== echo CONFIGURING EMULATOR PROXY echo ======================================== echo. cd /d "%~dp0" REM Get the host PC's IP (usually 10.0.2.2 from emulator perspective) echo [*] Setting up proxy routing in emulator... echo [*] Proxy will be: 10.0.2.2:8080 echo. REM Set system proxy using adb shell echo [*] Configuring global HTTP proxy... adb shell settings put global http_proxy 10.0.2.2:8080 echo [*] Configuring global HTTPS proxy... adb shell settings put global https_proxy 10.0.2.2:8080 echo. echo [*] Proxy configured! echo [*] All emulator traffic will now route through mitmproxy echo. echo [*] To verify, check Settings > Network & internet > Private DNS echo. echo [*] Next steps: echo 1. Start mitmproxy: mitmproxy -p 8080 -w canadapost_traffic.mitm echo 2. Launch app: frida -U -f com.canadapost.android -l frida_simple_bypass.js echo 3. Watch mitmproxy for traffic! echo. pause