Рет қаралды 78,624
Instead of using a USB cable, we can set up an ADB connection with Android over WiFi with the Wireless Debugging feature.
~~~~~
Hi! Don't forget to like the video, subscribe to the channel, and hit the "Thanks" button on this video, if you can, and join our channel community here - / @explainingandroid
Video Description
~~~~~~~~~~~~~~~~~
Today I want to show you how to set up an ADB connection with your smartphone or tablet without having to use a USB cable at all.
#android #googlepixel #samsunggalaxy
Most people will choose to connect a USB cable to their Android device when they want to do something with ADB. In some cases, this is best because most of the time it gives you a faster connection. But there are times when using a USB cable isn't possible.
Maybe your USB cable recently broke and you don't have another one laying around.
Or maybe you're having issues with a USB port on your computer.
There can also be instances when a wireless connection is just more convenient.
No matter what your reasons are, we are able to set this up on any smartphone or tablet running Android 11 or later.
To begin, we need to enable what is commonly referred to Developer Mode.
If this is something you're not familiar with, then be sure to check the video description below for links to dedicated videos that I have already done which show you all of the steps involved in this.
Once Developer Mode has been enabled, we can search for the newly revealed Developer Options menu from within the Settings application
Now, we just need to scroll down a little bit until you get to the Debugging section. This should be close to the top and shouldn't take much scrolling to find.
Usually when we want to execute ADB commands on our device, we need to enable the USB Debugging option because we're making that connection over a USB cable.
But if you plan on using wireless debugging then that toggle doesn't need to be enabled at all.
Instead, we want to enable the toggle labeled Wireless Debugging, which should appear under the usual USB Debugging option
Once this feature has been enabled, we then need to tap the name of the option so we can go into the details area.
If this is your first time using the wireless debugging feature, then you won't see anything in this Paired Devices section.
And in order to proceed, we need to pair our devices first.
So let's tap the Pair Device with Pairing Code option and this will give us some details.
Now let's turn our attention to the PC and open up a command prompt, windows powershell or a terminal window within the same folder as our ADB and Fastboot tools. If you don't have ADB & Fastboot tools installed yet, I'll include a link to a dedicated tutorial I have done in the video description below that will show you how to set it up.
We need to make note of the ip address here and the port number next to it.
In this command prompt, we're going to type out the command. . .
adb pair ip:port
When we press enter on the keyboard, it will ask us for the pairing code.
This is where we input the pairing code that is displayed on our Android smartphone or tablet.
As long as we get a Successfully Paired message here, then we have set this part up correctly.
Once we have paired our two devices together, we can then make the wireless debugging connection over WiFi.
So let's look at our phone again and again, we need to make note of the IP address and port number that we see here on this page.
With that information, let's go back to our command prompt window and establish that ADB connection over WiFi.
We do that by typing out the command. . .
adb connect ip:port
And and then press enter on the keyboard.
If we do not see any error messages here then that means the connection is successful.
When this connection has been made, we'll also get a notification about it on our device.
From here, we can drop into an ADB shell or execute any other ADB commands that we would normally do over a USB cable.
I hope this has helped anyone who has ever seen the Wireless Debugging feature and wondered how it could be used.
Mentioned Links
~~~~~~~~~~~~~~~~
ADB & Fastboot Tools - • Download and Install T...
Samsung Galaxy Developer Mode - • How to Turn On Galaxy ...
Google Pixel Developer Mode - • How to Enable Develope...
Xiaomi MIUI Developer Mode - • How to Turn On the Xia...
Step by Step Tutorial
~~~~~~~~~~~~~~~~~
1. Intro [00:00]
2.
As an Amazon associate, I may earn a commission on sales from the links below.
The Gear I Use
~~~~~~~~~~~~~~~~~
5W "Slow" Charger - amzn.to/2OaUMV8
Fast Charger - amzn.to/3rtBsC6
MicroUSB Cable - amzn.to/38dkpeM
USB-C Cable - amzn.to/2OqlTvi
TPU Cases - amzn.to/38g9b9w
USB-C to 3.5mm Dongle - amzn.to/3rVt7c3
USB-C to 3.5mm DAC - amzn.to/3CyksSJ
NVIDIA Shield TV - bit.ly/3KA17RV