Skip to main content

Android 11 DP2: ‘Wireless debugging’ gives developers hassle-free ADB connection

In the world of Android development, you need to connect your computer to your phone, usually via a USB cable, in order to transmit your app to your phone. To simplify and modernize this process, Android 11 Developer Preview 2 includes a new “Wireless debugging” setting to let you connect ADB over a Wi-Fi network.

The second Android 11 Developer Preview was released today with quite a few minor tweaks and adjustments that overall give stock Android a healthy quality of life improvement. For app developers, the most exciting change is a new feature in Developer Options called “Wireless debugging.”

Simply put, Wireless debugging will let you leave your USB cable behind and connect your phone to your computer via ADB completely over Wi-Fi. Of course, considering how many potentially bad things you can do to a phone once you have ADB access, it’s not as simple as just connect and go.

Just like when connecting via a USB cable, you need to directly give permission for Wireless debugging, both for the computer trying to connect and for the Wi-Fi network you’re using. This means that if you take your same phone and laptop to, say, a public Wi-Fi network, ADB won’t automatically connect.

Once you’ve approved a network, the next step is to connect to a computer, which can be done through either a pairing code or a QR code. For now though, there’s no way to actually complete the process of pairing to a new device, but this is sure to change in the near future, either with an update to Android Studio or the ADB tool itself. Until then, the page simply lists every device you’ve connected to before via USB.

This is actually not the first time that connecting to ADB has been possible over Wi-Fi, but the set up is actually quite a bit more complicated, especially by comparison to Android 11’s version, as it involves knowing your Android phone’s IP address on the network.

More on Android 11:

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Author

Avatar for Kyle Bradshaw Kyle Bradshaw

Kyle is an author and researcher for 9to5Google, with special interests in Made by Google products, Fuchsia, and uncovering new features.

Got a tip or want to chat? Twitter or Email. Kyle@9to5mac.com

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications