While there isn't a mobile edition of Wireshark [yet], there are other packet-capture tools, based on tcpdump (which runs on most Android devices). However, tcpdump requires root privileges, so you would have to root your phone in order to use it (assuming a rootkit is available for your device).
1) Firewalls in android.
they are java build frontend to set rules for iptables binary. which is the acutal firewall.
2) Wireshark or its alternative.
again native c binarry application doing the low level task there invokers being written in Java JNI to call and get then started.