Install android-tools if you haven't already:
$ pkg update ; pkg upgrade
$ pkg install android-tools
Pair with remote or local ADB
$ adb pair ipaddr:port pin-code
Where ipaddr:port and pin-code are taken from the menu shown when clicked from Developer options > Wireless debugging > Pair device with pairing code. You may use localhost when connecting to the same device. Pay attention to port, the one for pairing differs from another one used for typical ADB communication.
Use splitscreen to show the Wireless debugging setting side by side with 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 as IP address & Port. You may use localhost when connecting to the same device.




Uh oh!
There was an error while loading. Please reload this page.