Building adb server for Linux

631 views
Skip to first unread message

vivekianjs

unread,
Jun 8, 2012, 9:22:15 AM6/8/12
to android-ndk
Hi,

I have an environment where Linux is running on an ARM SOC board. I
was wondering if its possible at all to port the adb server from
android to Linux. It would be quite useful to push stuff over USB from
my Linux desktop to the target.

Thanks,
Vivek

Chris Stratton

unread,
Jun 10, 2012, 10:55:14 PM6/10/12
to android-ndk
It's possible, but for it to work the SOC would need to have usb
hardware capable of operating in device mode, and it would need to
have whatever sort of kernel USB hooks the (device side half of) adb
is used to talking to. IIRC adbd is statically linked (for security,
and because /system may not be mounted when it starts), so there's a
chance that with appropriate kernel support and hardware you might not
even have to rebuild adbd if your arm linux has a compatible abi with
android, but you are likely to end up building a kernel or modules.

This would probably be a better fit for android-porting, even there
it's a bit off-topic as you aren't actually building something for
android.
Reply all
Reply to author
Forward
0 new messages