How do I connect w/ adb
to the Raspberry Pi 3 running Android Things?
So lets compile adb on the Raspberry Pi itself - without any cross-compiling madness. It was actually easier than you'd think. All you should need is git and gcc (and the package libssl-dev, which is installed by the bash script). Run the first bash script directly on your Raspberry Pi.
Android Things for Raspberry Pi only support connecting to adb using adb-over-ip with the following command:
adb connect `<raspberry-pi-ip-address>`
You have multiple options to find your IP address depending on your Pi setup:
Android.local
if you have mDNS/Bonjour support, or see https://learn.pimoroni.com/tutorial/raspberry-pi/finding-your-raspberry-pi for info on how to find your Pi IP address using third-party tools.If you don't have any screen or Ethernet connection, you can connect a USB to TTL serial cable on the UART0 connector (see pinout and type the following command to connect to a WiFi network and get the Pi IP address:
am startservice -n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid '<NETWORK_SSID>' -e passphrase '<NETWORK PASSPHRASE>'
ifconfig
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With