How to see network packets in Android?

大憨熊 提交于 2020-01-06 01:17:11

问题


I am looking to see when and which apps are accessing the network from my Android Phone. I am looking for something like Wireshark but for Android. I found Shark for Root but it requires a rooted phone, I dont have one.

Is there a way to see the network traffic from each app?


回答1:


You cannot monitor your own network on the android phone without root, but here is how you can do it on a computer (doesn't require root)

If you are on a windows PC, try the following:

  1. Install fiddler2
  2. Open and go to Tools > Fiddler Options > Connections > check Allow Remote computers to connect
  3. Optional - uncheck act as system proxy on startup (to prevent you from getting traffic from your pc)
  4. Restart fiddler
  5. Go to wifi settings > touch your connected wifi network for 4 seconds > choose modify network config > show advanced options > Proxy > Manual > hostname > YOURCOMPUTER NAME OR IP > Proxy port > 8888 (or what you set it to in fiddler2)
  6. Enjoy

P.S. If you are on MAC there is charles, if you are on another O.S. you can search for "fiddler2 OS_NAME alternative"



来源:https://stackoverflow.com/questions/22583411/how-to-see-network-packets-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!