Connecting to Wi-Fi with adb

To connect your board to Wi-Fi, first access a shell prompt on the device. You
can use either of the following methods:

Open a shell over adb with the adb shell command.

For the Raspberry Pi, first connect your board to your Wi-Fi router or
development computer to assign it an IP address. Run the
adb connect <ip-address> command to connect to this IP
address using the adb tool.

Connect to the serial console. Refer to the Get Started page for the
particular board.

Once you can access a shell prompt, follow these steps:

Send an intent to the Wi-Fi service that includes the SSID of your local network. Your board must
support the network protocol and frequency band of the wireless network in
order to establish a connection.