قالب وردپرس درنا توس
Home / Tips and Tricks / Set up wireless debugging on Android 11 to send ADB commands without a USB cable «Android :: Gadget Hacks

Set up wireless debugging on Android 11 to send ADB commands without a USB cable «Android :: Gadget Hacks



From launching Fastboot mode with a single command to installing mods without root access, there is no shortage of reasons to use ADB. The catch, however, was that you had to be attached to a computer with a USB connection. But with a new feature in Android 11, you can finally run ADB commands over Wi-Fi instead of tethering.

Step 1: Download or Update SDK Platform Utilities

Since wireless debugging is new to Android 11, you need to make sure your Platform-Tools package is at least version 30.0.0, which is the provided initial support for the position. Click on the link below corresponding to your operating system to download the latest version. You can save and extract the platform tools folder to your desktop for easy access.

Step 2: Enable wireless debugging

The procedure here is generally the same for most devices. Pixel users should go to & # 39; About Phone & # 39; in Settings and seven times on & # 39; Buildnumber & # 39; tap to activate developer options. From there, go to Developer Options via Settings -> System -> Advanced or at the bottom of the Settings app. Tap the "Wireless debugging" option, check "Always allow on this network" and then press "Allow".

Step 3: Link code for Get Wi-Fi device

On the main wireless debug screen, tap "Pair device with pairing code", which will reveal what you need to connect to your computer via Wi-Fi. The pairing code, IP address and port number are all things necessary for use in the next steps, so leave the screen like this and move on to the next section below.

Step 4: Open a Command Window in the Platform-Tools folder

Go back to your computer, you need to open a command window from the platform-tools folder that you downloaded from step 1. This allows you to run the few commands required to complete the installation over Wi-Fi, so you can use ADB commands without a USB cable. [19659015] If you are a Windows user, you can open the platform tools folder and then click the address bar at the top of the window. Type "cmd" without the quotation marks and then hit enter to immediately open the command window in the platform tools folder.

Image by Dallas Thomas / Gadget Hacks

If you are using Mac or Linux you want to open the Terminal app, type "cd" followed by a space, but do not press enter yet. From there, drag the platform tools folder to the command window itself to immediately get the location for you. You could also do this on Windows if you wanted to – there's more than one way to do the same thing.

Image by Dallas Thomas / Gadget Hacks

Step 5: Run the ADB wireless pairing command

Have a look at your phone to find the IP address of your device and also which port it is currently using. Based on that information from step 3, type the following command in the platform tools command window and then press enter.

  adb-pair ipaddr: port 

Note: Mac, Linux and Windows PowerShell users may need a period and a slash (./) before entering certain commands. For example:

  ./ adb-pair 192.168.1.9:37179/19659024  Once you enter the above command corresponding to the information on your device, you will be asked to enter the pairing code. Enter the device pairing code from step 3 and press enter to confirm your action. If everything checks out, there should be & # 39; Successfully linked to & # 39; are displayed, followed by the machine's IP address and port number. 

Step 6: Run the wireless ADB debugging command

From here go to the main wireless debug screen on your phone and check the numbers under the "IP address and port" section. The port number will likely be different from the previous step, so you need to make sure you use the correct one for this to work. Once you have the device information, type the following command in the platform tools command window and then hit enter.

  adb connect ipaddr: port 

Note: Mac, Linux and Windows PowerShell users may need to add a period and a slash (./) before entering certain commands. For example:

  ./ adb connect 192.168.1.9:40105%19659024,40 After entering the above command, you should see "Connected to" followed by your device's IP address and port number. At this point, you are successfully connected via Android 11's wireless debugging feature! You can now send an unlimited number of ADB commands to your device without having to be connected via a USB cable. Have fun modding! 

Final Note

The IP address and port number for your device is local to your network, which means a remote source can do not start sending ADB commands. Unless they have access to the device and are on the same Wi-Fi network, the chances of someone else trying to hijack your session are slim. The port number also changes every time you request a new pairing code, so that makes it even more secure.

Want Help Gadget Hacks and Get a Great Deal on Some Great New Technology? View all deals for the new Gadget Hacks Shop .

Cover image and screenshots of Stephen Perkins / Gadget Hacks

Source link