Hello i want to connect my android in debugging mode with android studio
without usb cable
i am using mac os
On your Mac, quit all open apps. Try to join the Wi-Fi network you're having problems with (if you're not already connected). Press and hold the Option key, click the Wi-Fi status icon in the menu bar, then choose Open Wireless Diagnostics. Follow the onscreen instructions to analyse your network connection.
If you are using Android 11 click on the build version many times to activate the developer option then go to Settings>Advanced>Developer options. Scroll to debugging and turn on the "Wireless debugging" checkbox. Then open the menu debugging by touching the "Wireless debugging".
Android 11 and higher supports deploying and debugging your app wirelessly from your workstation using Android Debug Bridge (adb). For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB.
1- connect your PC and Mobile to same network (WIFI)
now find IP
-open setting > WIFI >info of connected wireless network and then get STATIC IP from there
2- Now open teminal and then goto PATH paltform-tools in SDK then fire below command
-Connect the device via USB and make sure debugging is working. -go to developer options from settings and follow below snap shots
3 - now in terminal ./adb connect <DEVICE_IP_ADDRESS>
:5555 (if your using windows then remove ./)
you show this output - connected to 192.168.1.109:5555
now Disconnect USB . and perform below command to start wireless debugging
adb -s <DEVICE_IP_ADDRESS>
:5555 usb
4- for disconnect device follow below commands
adb disconnect <DEVICE_IP_ADDRESS>
:5555
Almost same steps as the Dharmik Ghori's answer
Just that in step 3 you do:
./adb tcpip 5555
instead of ./adb connect <DEVICE_IP_ADDRESS>:5555
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With