ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.39k stars 178 forks source link

Android Emulator Override Does Not Set Proxy #1240

Open RisenAsh opened 2 years ago

RisenAsh commented 2 years ago

Proxyman version? 3.5.0

macOS Version? 12.3.1

Steps to reproduce

  1. Open the certificate screen for Android emulator.
  2. Press "Override Emulator".
  3. Wait for the override script to complete and restart the emulator.
  4. Go back to the emulator. Look at the Wifi configuration.
  5. Notice that the current network connection has no proxy settings set.

Expected behavior

Script should be setting the device proxy settings on the network connection.

Screenshots (optional)

image

NghiaTranUIT commented 2 years ago

Sorry, it's not a bug from Proxyman. It's how adb command works.

Basically, the emulator is overridden by this command adb shell settings put global http_proxy $ip $port, and adb command doesn't update the UI.

I tested and It still works. Proxyman still captures the traffic.

Screen_Shot_2022-05-19_at_19_13_04
RisenAsh commented 2 years ago

Proxyman still captures the traffic, however without setting this manually after the script I've found that SSL requests do not function. I get this after running the script:

image

Once I have manually set the the proxy settings via the Android UI in the emulator, SSL requests suddenly start working as expected.

I appreciate this could be wholly an Android issue, just wasn't sure so thought I'd raise it here.