Is this possible to debug android from a mac over Wifi? I am using visual studio version 7.4.2. I know how to do this using windows but on mac it is challenging for me.
Answering this question for posterity since it's a link answer
connect usb to device and check for adb connection
adb devices
set tcpip port mode in adb, any number above 1000 is usually safe, change selection if there is an error
adb tcpip 5555
find local IP address of device, you can usually see this in wifi settings, for eg on galaxy s5 i long pressed my wifi connection and clicked modify wifi connection to see it. this is device specific unfortunately
connect to the IP address listed via adb, in my case it was 192.168.1.21, it will probably be different for you,5555 is the port we entered earlier
adb connect 192.168.1.21:5555
type adb devices again and you will see the device attached as the IP name. to verify that it is your device use
adb devices -l
which will show the model of the device as well.
Now switch over to your studio (xamarin/visual) and you'll see the device as an option to deploy to.
Google just enabled this from Android 11 onwards. Follow these steps to setup your device to build and debug wirelessly using your wifi connection:
There’s a lot more details in this article Including limitations and a comparison with the iphone wireless debug feature
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