Reputation: 88
I want to capture the iPhone's network traffic. Will Apple allow us to do this? Are there any APIs for the developer to monitor the signals?
Upvotes: 1
Views: 606
Reputation:
If you want to capture IP traffic, and your iPhone is running iOS 5 or later, and you can hook your iPhone up to a machine running OS X, you can use the remote virtual interface mechanism, which funnels a copy of the network traffic to the Mac to be captured with your favorite network tool (tcpdump, Wireshark, etc.).
If you want to capture traffic at a lower level, you could capture Wi-Fi traffic with a Wi-Fi adapter in monitor mode (but be prepared to have to decrypt the traffic; see the Wireshark "how to decrypt 802.11" page for information on that), but you will have extreme difficulty capturing raw mobile-phone-network traffic (you probably won't be able to).
Upvotes: 0
Reputation: 49386
If by "flow" you mean all the data being sent and received by those mechanisms, then no - you can't do this on a non-jailbroken iPhone. Apps are restricted from interfering with anything the system processes or other applications do.
Upvotes: 1