Updated 29 November 2021
In this blog, We are going to learn how to debug the android app wirelessly (Wireless Debugging in Android).
It is a very useful blog. We all know it is very difficult when your cable is broken or connection is lost frequently via cable connection. It is so frustrating So I thought to write a blog on this topic.
So let’s get started.
Firstly you have to connect your device and your system to the same internet connection. If you are using a different internet connection you won’t be able to debug your app.
For the very first time, you have to connect your device with your system to complete the configuration.
In this step, you have run an adb command.
1 |
adb devices |
The above command is just to verify whether adb command is working or not. If it is not working you can go for Step 4 else you can skip it.
If the ADB command is not working globally that means that PATH is not set.
1 |
export PATH="/Users/{user_name}/Library/Android/sdk/platform-tools":$PATH |
If you don’t want to edit your PATH variable then you can use the ADB command by using this prefix ./ in your platform-tools folder.
Set the target device to listen for a TCP/IP connection on port 5555 by using the below-mentioned command.
1 |
./adb tcpip 5555 // In case adb command is not working. |
1 |
adb tcpip 5555 // In case adb command is working. |
Find the IP that your device is using.
Connect your device by IP.
1 |
adb connect device_ip_address |
1 |
./adb connect 192.168.25.66 // In case adb command is not working. |
1 |
adb connect 192.168.25.66 // In case adb command is working. |
Here we have done. Now you can remove your cable and enjoy the wireless debugging experience.
Hope this blog will help you.
Refrence link –> https://developer.android.com/studio/command-line/adb
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.