问题
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:
- Install fiddler2
- Open and go to Tools > Fiddler Options > Connections > check Allow Remote computers to connect
- Optional - uncheck act as system proxy on startup (to prevent you from getting traffic from your pc)
- Restart fiddler
- 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)
- 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