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).
Debugging over WiFioption from the developer options on your smartphone.
Under the menu, select
Pair device with pairing codeand leave the modal window open.
Navigate through the terminal to the
<android-sdk>/platform-toolsfolder (standard SDK path:
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:
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.