Android Things: ADB over USB on Raspberry Pi

自闭症网瘾萝莉.ら 提交于 2019-11-28 01:40:54

The NXP i.MX7D development board has the same pins as the Raspberry Pi for development, however it uses USB-C for power and ADB.

Highly recommend it over the Raspberry Pi

https://developer.android.com/things/hardware/imx7d.html

How to debug Android Things device over USB?

Briefly: you can't do it with Raspberry Pi.

Why not?

Let's look at the pin specification of Raspberry Pi micro USB (J1):

where

  • 1: power
  • 2: D- (data out), not connected
  • 3: D+ (data in), not connected
  • 4: NC, not connected
  • 5: GND (ground)

So summing up the above said: no data pin connection - no adb. You can only power your RPi over micro USB.

Any chance to have direct debugging over USB cable just like any other Android device like smartphone/tablet?

Use another board. In fact, any board that has USB OTG and is supported by Android Things would allow debugging over USB, just as a "regular" smartphone/tablet.

And ironically, by the time of this writing, all the supported hardware platforms would fit except for Raspberry Pi :)

Another option is to setup Wi-Fi access point on your laptop and allow the Pi to connect to it. I have not tested it but it should work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!