Android debug bridge protocol

165 views
Skip to first unread message

Carlo Kok

unread,
Oct 28, 2011, 1:35:23 PM10/28/11
to android-...@googlegroups.com
Hi,

Is there any documentation on the ADB protocol? I want to talk to adb from a foreign language (Read: non java) and am wondering if there's any documentation on the protocol; and if not if the protocol is backward compatible (so my code stays working)?

Mike Pontillo

unread,
Oct 28, 2011, 6:23:46 PM10/28/11
to android-...@googlegroups.com
Hi Carlo,

   From what I understand, the debugging of Java code is done using JDWP (Java Debug Wire Protocol), so it's very Java specific. You can find the spec here:


   For non-Java languages, (such as if using C with the NDK) you can use gdb with gdbserver running on the device to debug. I'm assuming you would bypass adb and use a similar strategy for debugging. (that is, when using gdbserver, adb is only used to forward the TCP port used for debugging to your local machine)

Regards,
Mike

On Fri, Oct 28, 2011 at 10:35 AM, Carlo Kok <carl...@gmail.com> wrote:
Hi,

Is there any documentation on the ADB protocol? I want to talk to adb from a foreign language (Read: non java) and am wondering if there's any documentation on the protocol; and if not if the protocol is backward compatible (so my code stays working)?

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/ct_aX46JhR8J.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

biAji

unread,
Oct 28, 2011, 10:51:20 PM10/28/11
to android-...@googlegroups.com

You can read the source code of adb from aosp. They are c code.

在 2011-10-29 上午6:12,"Carlo Kok" <carl...@gmail.com>写道:
Hi,

Is there any documentation on the ADB protocol? I want to talk to adb from a foreign language (Read: non java) and am wondering if there's any documentation on the protocol; and if not if the protocol is backward compatible (so my code stays working)?

--
Reply all
Reply to author
Forward
0 new messages