Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair ipaddr:port
Where ipaddr:port is taken from the menu shown after clicking from
Developer options > Wireless debugging > Pair device with pairing code
. Use splitscreen to show theWireless debugging
setting below the Termux app when pairing.
After pairing successfully, run the following commands to either connect or disconnect:
adb connect ipaddr:port
adb disconnect
Where ipaddr:port is shown in the
Wireless debugging
menu asIP address & Port
.