DEV Community

Alish Giri
Alish Giri

Posted on

Flutter: Wireless Android Development

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.)

Top comments (2)

Collapse
 
chasanpro profile image
Chaitanya_Damarasingu

I'm only concerned with the latency in Hot-reload and restart .... but still I'll try this

Collapse
 
alishgiri profile image
Alish Giri

Sure. You won't be disappointed!