Wireless App Debugging for Devices with Android 10 or less

Tobias Wissmueller
2 min readJan 22, 2024
Photo by Franck on Unsplash

Most of the time, I debug my Android apps by connecting my device to Android Studio using a USB cable because it is more reliable.

I am currently developing an Android app that communicates with USB devices. However, I encountered an issue when I needed to debug the app while the phone was connected to one of the USB devices. This presented a problem since I also needed the phone to be connected to my Mac via USB in order to debug with Android Studio.

There is an option to wirelessly debug an app, but this feature is only available for Android phones running Android version 10 or higher. Unfortunately, it is not possible to enable WiFi debugging on Android 10 or earlier versions. Since the device I had to test on was running Android 10, I was unable to proceed with wireless debugging.

There is a simple solution that can be easily implemented. Just follow these steps:

  • Launch your app from Android Studio while connected via USB.
  • On your Android device, open the Settings and search for “IP address”.
  • Take note of the IP address.
  • In Android Studio, open the terminal and type adb tcpip 5555.
  • Next, type adb connect <ip_address_of_your_device>:5555.
Android Studio Terminal
Android Studio Terminal

That’s it! You can now disconnect the USB cable and wirelessly debug your app on Android 10.

Resources

--

--

Tobias Wissmueller

Documenting my Tech-Stack: Jetpack Compose for Android, SwiftUI for iOS and more and more Kotlin Multiplatform for everything.