adb connect wifi android studio code example
Example: adb wifi connect
# Connect device via USB and enable USB-debugging in developer options
adb devices
# to get device id
adb -s <device id> tcpip 5555
# Find out the local IP address of the Android device.
# You can find this information by pressing/long-pressing the WiFi icon in the quick
# settings drop-down and then clicking the WiFi network you are connected to.
adb connect <IP address>:5555
# done!