Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture app traffic on Android

I'm trying to capture traffic from an app on an Android phone and although I've set the proxy on the phone and can capture all other internet traffic coming from the phone (using Charles Proxy), I can't see any traffic for this one app.

How is this done, and how can I capture the traffic?

UPDATE:

  • If you need help setting up a wifi hotspot from your computer, so you can connect your phone to it and Wireshark the traffic, just look at the following link for directions:
    http://www.wi-fiplanet.com/tutorials/article.php/3849841/How-to-Create-Wireless-Hosted-Networks-in-Windows-7.htm

  • If you want help decompiling an IOS app to assembly, look at this
    link: http://www.infointox.net/?tag=arm

  • If you want a better Dex to Java decompiler than dex2jar, check this out: https://github.com/skylot/jadx

like image 558
blizz Avatar asked Feb 13 '14 14:02

blizz


People also ask

How do I intercept my Android app traffic?

The proxy will act as Man-in-the-middle between the Android device and the servers it connects to. There are several ways to accomplish network traffic interception: using a proxy on a computer, like mitmproxy, or PolarProxy; using a fake VPN on Android to act like a proxy, like Packet Capture, or HTTP Toolkit.


1 Answers

There're several ways:

  1. Connect your phone to your internal wifi access point (before connecting check advanced options and set a manual proxy).. Note: this method do not work for all network data.. some connections ignore this setting.
  2. (works on rooted phones only) Install 'Shark for Root' application on your device... it will capture ALL traffic.. it will generated dump files that can be analized on your PC using Wireshark software
  3. The best way: Setup your PC as a wifi access point and make your android device to use this wifi connection, then sniff the traffic using the same Wireshark application.
like image 64
Marcel Tricolici Avatar answered Sep 18 '22 15:09

Marcel Tricolici