How to analyze https traffic from Android 6 emulator using Charles Proxy

I want to analyze the https traffic of the application that I am developing for Android.
Charles Web Debugging Proxy is the tool I want to use for this. I have the following system configuration:

  • Mac OS X El Capitan Version 10.11.5
  • Android Studio 2.1.2
    • Build # AI-143.2915827, built May 26, 2016.
    • Android SDK Tools 25.2.0 rc1
    • Platform Version: API 24: Android Version 6.X (N) 2
  • Charles Web v 3.11.5 proxy debugging 30-day trial

I already read some posts on StackOverflow, for example,

But I have not reached my goal. I went through all the important steps:

  • Charles Root Max OS X Keychain
    • -: -p > -, "", " HTTP-"
    • - SSL: → SSL, SSL Proxying, " SSL-"
  • Android Android Studio Terminal ~/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -http-proxy <IP_FROM_DEVICE_WITH_CHARLES_PROXY_INSTALLED>:8888 -avd Nexus_5_API_23
  • , http://charlesproxy.com/getssl
  • , Charles Proxy, .crt openssl

http- Charles Proxy - . https- , IP-. ,

https://173.194.65.188:5228

, ip . URL- https? DNS https -?

+4
2

, . , Charles Proxy, - Genymotion. Genymotion url (s) ip (s) Charles.

Genymotion Wifi "10.0.3.2" "8888" (* 8888 - , Charles Proxy).

+2

, Android Charles :

fooobar.com/questions/229645/...

. , , .

:

  • /{path to your android sdk directory}/tools/emulator -avd Nexus_5X_API_23 -http-proxy http://192.168.2.38:8888, -avd - -http-proxy - ip Charles: a > SSL Proxying > Charles Root .

  • : > 8888 Enable transparent proxying ; > macOS Proxy

  • , ` > ( > > a > T-Mobile US ( - ) Proxy 10.0.2.2 8888

  • Settings > Developer Options > Use legacy DHCP.

. , , Android 7 (API 24) . https://android.jlelse.eu/android-nougat-charlesing-ssl-network-efa0951e66de

+1

Source: https://habr.com/ru/post/1648654/


All Articles