Hi Andrew,
Check this out: http://www.kandroid.org/online-pdk/guide/tcpdump.html
It's got good information on using tcpdump and piping it over adb to
wireshark running on your PC. You'll need to (re)install tcpdump and nc
onto the b2g device; you can find both in backup-unagi.
tl;dr:
# Push tcpdump and nc from current directory
adb remount
adb push tcpdump /system/xbin/tcpdump
adb push nc /system/xbin/nc
# In one shell, start tcpdump.
adb shell "/system/xbin/tcpdump -n -s 0 -w - | /system/xbin/nc -l -p 11233"
# In a separate shell, forward data and run ethereal.
adb forward tcp:11233 tcp:11233 && nc 127.0.0.1 11233 | ethereal -k -S -i -
I've tried these steps and they work well. IIRC, by default tcpdump
will glom onto the wlan0 interface, but adding *-i <cellular-interface>*
should attach to the cell radio.
Cheers,
--m.
On 12-12-15 04:02 PM, Andrew Sutherland wrote:
E-mail account setup over the unagi cellular data connection seems to
be especially troublesome for both myself and others, as indicated by
bug https://bugzilla.mozilla.org/show_bug.cgi?id=821818.
To better understand what's going on, I would like to be able to see
what's happening with the cellular data connection at a fairly low
level. Can I run tcpdump against the cellular modem? Failing that,
is there something good to turn on in necko? Tips/tricks/helper
scripts already created by others appreciated.
Thanks,
Andrew
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g