Android smartphones offer wireless debugging capabilities through developer options. This feature requires the Android Debug Bridge (adb) and a smartphone with Android 11+. The adb tool is included in the Android SDK, so no additional installation is necessary. Follow the steps below to establish the connection:
Your Mac and smartphone should be on the same network.
Your smartphone should be in Developer Mode (Guide on how to enable Developer Mode).
Enable the
Debugging over WiFi
option from the developer options on your smartphone.
Under the menu, select
Pair device with pairing code
and leave the modal window open.
Navigate through the terminal to the
<android-sdk>/platform-tools
folder (standard SDK path:/Users/<user>/Library/Android/sdk
).Execute pairing with
adb pair ipaddr:port
(Example:adb pair 192.168.0.4:37861
). Note! The pairing port changes with each attempt!Enter the pairing code (Example:
519446
).Execute the connection with
adb connect ipaddr:port
(Example:192.168.0.4:40051
). Note! The port used here is different from the pairing port!
If you encounter issues while pairing or if the connection fails, try forgetting the WiFi on both devices and reconnect again.
Enjoy a clutter-free desk with one less cable.