Android 11 may finally bring a proper, native Wireless ADB implementation

Android 11 may finally bring a proper, native Wireless ADB implementation

Image credit: source

For Android app developers, ADB is an indispensable tool for debugging applications. With the ability to generate logs, push and pull files, sideload APKs, and enter the shell, ADB gives developers a lot of control over a test device while using a PC. While it’s possible to use ADB wirelessly by connecting to your device via TCP/IP*, many developers might not know about this so they simply stick with using a wired connection. Plus, wireless ADB currently isn’t that convenient if your device doesn’t have a static IP address or you’re dealing with multiple test devices. Finally, data transfer via ADB over TCP/IP happens in plain text, so it’s not a good idea to use it when connected to an untrusted network. Thankfully, it looks like Google is working on a proper, native, and (possibly) secure implementation of wireless ADB that could land in Android 11 next year.

Joshua Duong, a software engineer at Google, submitted multiple commits to the AOSP Gerrit that implement this feature. These commits create a WiFi service for ADB with support for secure pairing. We haven’t spotted evidence that the new implementation encrypts data in transit, but this feature is clearly still a work-in-progress so it may arrive in a later commit. On the user-side, Google plans to add a new “wireless debugging” switch in Developer Options that supports pairing devices by scanning a QR code or entering a 6 digit code.

Wireless ADB strings for Android 11

Wireless debugging
Debug mode when Wiu2011Fi is connected
Wireless debugging
To see and use available devices, turn on wireless debugging
Pair device with QR code
Pair new devices using QR code Scanner
Pair device with pairing code
Pair new devices using six digit code
Paired devices
Currently connected
Device details
Device MAC address: %s
Connection unsuccessful
Make sure %s is connected to the correct network
Waiting for pairing requests..
Pair new devices
No devices were found for pairing.
Pair with device?
Wiu2011Fi pairing code
Pairing unsuccessful
Make sure the device is connected to the same network.
Checking QR code...
Failed to pair the device. Either the QR code was incorrect, or the device is not connected to the same network.
Discovery unsuccessful
Failed to enable ADB wireless discovery. Please make sure you are connected on a Wiu2011Fi network.
adb, debug, dev

It looks like Google is finally putting development effort into this feature, so I’m hoping it’ll arrive in Android 11 next year. However, these commits haven’t been merged yet, so there’s no guarantee the feature will arrive in the next Android release. We’ll keep an eye out on the AOSP Gerrit to track when it gets merged and to find out more about this implementation.

*XDA Recognized Developer phhusson brought to my attention that ADB has support for multicast DNS, so it’s already possible to wirelessly connect to ADB without needing your device’s IP address. However, starting the service requires root and you can only have one device connected at a time, so it’s not an ideal solution. Plus, it isn’t documented anywhere publicly, so very few people know about it.

Thanks to XDA Recognized Developer luca020400 for the tip and to phhusson for pointing out mDNS support in ADB!

Want more posts like this delivered to your inbox? Enter your email to be subscribed to our newsletter.

(Excerpt) Read more Here | 2019-10-30 02:05:00

Leave a Reply

Your email address will not be published. Required fields are marked *