-->

How to Enable and Use Wireless Debugging in Samsung F41 (Android 11)?



 Step 1

Download The Latest SDK Platform-Tools

Wireless debugging is a new feature in Android 11, So here You will need to make sure that your Platform-Tools package is at least version 30.0.0 because only the latest version supports for the feature. After downloading save and extract the platform-tools folder to your desktop or the folder in which you are working on , so that you can easily locate the folder.

Step 2

 Step 2

Enable Wireless Debugging

Most of the devices have similar steps. For Samsung F41 Phones, users need to go to "About Phone" in Settings, 


Then head to "Software information"



and tap "Build Number" seven times to activate Developer Options.



 Now the Developers options have been activated on your Phone.  From there, Go back to the main settings 

And at the bottom of the list below "About phone" (or  Settings –> System –> Advanced)


Go in the Developer Options, Now below Debugging Tab Tap the "Wireless debugging" option, check "Always allow on this network," then press "Allow."



  




 Step 3

Setup and Pair your Phone with your system

Now Click on the wireless debugging to open the pairing setting. From the main wireless debugging screen, tap "Pair device with pairing code," which will reveal what you'll need for connecting to your computer over Wi-Fi. The pairing code, IP address, and port number are all things required for use in the next steps, so leave the screen just like this and continue with the next part below. Every time you open the pairing code will change so don't close the window otherwise the pairing code will change for security reasons.


                                             

 Step 4


Open The Terminal of your corresponding Operating System and Head to the location of the Platform-Tools Folder(eg: cd Downloads/platform-tools)

Now on your computer, you need to open the terminal and head towards the platform-tools folder that you downloaded.

If you're a Windows user, you can open the platform-tools folder, then right-click on the window and click on open with cmd.


If you're running Linux or Mac, you'll have to open the Terminal app, type in the "cd" command or Drag and drop the platform-tools folder onto the command window itself to get its location instantly entered for you. You could do this on Windows if you wanted to as well 



 Step 5

Enter the Wireless ADB Command for Pairing your phone

Find your Phone's IP address and what port it's currently using as well that we have seen in step 3(don't close your mobile phone's window which shows pairing code and IP address with port) Based on that information from Step 3, type the following command in the platform-tools command window, then press enter.

adb pair ipaddress:port

Replace the ipaddress:port with your mobile's ipaddress and port { ex: 192.168.1.17:2334(in my case but will be different in your case)}

Note: Some users might have to add a period before a slash ( ./ ) before entering certain commands. For example:

./adb pair 192.168.1.17:23346

Once you enter the above command that corresponds to your device's information, you'll be asked to enter the pairing code. Type in the device pairing code from Step 3 then press enter to confirm your input. If everything is correct, it should show "Successfully paired to " your device's IP address and port number.



Step 6

 Step 6

Enter the Wireless ADB⁸ Command for Debugging Options

From here, Open the main wireless debugging screen on your phone and check the numbers under the "IP address & Port" section. The port number will be different from the previous step, so you need to make sure that you have entered the right one for this time to work. Once you have the phone's info, type the following command in the platform-tools terminal window, and press enter.

adb connect ipaddress:port


Or if any error comes you have to proceed with a period(.) and backslash(/)

./adb connect 192.168.1.17:44554



After you have entered the above command, you should see the output "Connected to" device's IP address and port number. At this point, you're successfully connected via the Android 11 wireless debugging feature! You can now send any number of ADB commands or develop android applications over to your device without having to be connected by a USB cable. 




If you get any kind of error while doing above steps , feel free to comment it down