Tracing the ADB communication

943 views
Skip to first unread message

Alvin

unread,
Apr 26, 2011, 10:33:42 AM4/26/11
to android...@googlegroups.com

Hi All,
I am interested in viewing the packets sent by between adb client and adbd through usb.
I tried setting the environment variable ADB_TRACE to 1.
But when I run "adb shell" though the shell comes up, I am not able to see any traces in the terminal.
Any help will be appreciated thanks
Regards,
Alvin


Kees Jongenburger

unread,
Apr 27, 2011, 2:29:58 PM4/27/11
to android...@googlegroups.com
Hi,

On Tue, Apr 26, 2011 at 4:33 PM, Alvin <alv...@in.com> wrote:
>
> Hi All,
>
> I am interested in viewing the packets sent by between adb client and adbd
> through usb.
>
> I tried setting the environment variable ADB_TRACE to 1.
>
> But when I run "adb shell" though the shell comes up, I am not able to see
> any traces in the terminal.
>
> Any help will be appreciated thanks

You can use usbmon to trace the packets sent over usb.
http://www.mjmwired.net/kernel/Documentation/usb/usbmon.txt

Greetings

Hamilton Vera

unread,
Apr 27, 2011, 5:27:27 PM4/27/11
to android...@googlegroups.com
Try this one

http://vusb-analyzer.sourceforge.net/

> --
> unsubscribe: android-kerne...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

--
Hamilton Vera
int Administrator (char Network[],char ComputationalSystems[])
http://hvera.wordpress.com

Oscar Marques

unread,
Apr 27, 2011, 6:44:47 PM4/27/11
to android...@googlegroups.com
I guess wireshark can sniff usb too.

2011/4/27 Hamilton Vera <hamilto...@gmail.com>



--
Oscar Marques
osc...@gmail.com
http://www.dunkelheit.com.br
Twitter: @f117usbr
+55 21 9293-9343

------------------------------------
Participe do I Hack'n Rio
------------------------------------


Reply all
Reply to author
Forward
0 new messages