Flutter: Wireless Android Development

Alish Giri - Aug 15 - - Dev Community

If you have experienced the amazing wireless development/debugging mode on iOS then you must have wondered if it is possible in Android too?

I wondered the same thing for a while and found out that it is not as straight forward as using wireless debugging mode in the XCode and iPhone. For Android we have to follow a few steps manually.

  1. Enable developer mode on the Android device.
  2. Turn on wireless debugging on the device.
  3. Set the adb port.
  4. Connect to the device using device IP.

Enable developer mode on the Android device

Search Build number on the Settings and tap it multiple times to activate the Developer Mode.

Enable developer mode on Android device

Turn on wireless debugging on the device

Search Wireless debugging on the Settings and turn it on. Now click on it and find the device IP as shown in the image below.

Everything before semi-colon (:) is your_device_ip which will be used in the final step below.

Turn on wireless debugging on the device

Set the adb port (on Terminal)

adb tcpip 5555
Enter fullscreen mode Exit fullscreen mode

Connect to the device using device IP (on Terminal)

# You got the `your_device_ip` from the `Wireless debugging` section above.
adb connect your_device_ip:5555 
Enter fullscreen mode Exit fullscreen mode

After hitting this command you will be able to see your device in the VSCode connected device list. (Make sure that Flutter extensions are installed in the VSCode.)

. . . . . . . . . . . .