wireless adb
# Wireless ADB
$ adb tcpip 5555
$ adb shell netcfg #to get device IP
$ adb connect <device_ip>
# DETAILS
# 1. Connect your Android device and adb host computer to a common Wi-Fi network.
# 2. Connect the device to the host computer via USB.
# 3. Set the target device to listen for a TCP/IP connection on port 5555.
$ adb tcpip 5555
# 4. Get the IP of the target device
$ adb shell netcfg
# Example Output:
# wlan0 UP 10.0.0.8/24 0x00001043 d4:12:43:d2:c4:18
# we want the "10.0.0.8"
# 5. Disconnect the USB cable from the target device.
# 6. Connect to the device by its IP address.
$ adb connect 10.0.0.8
# 7. Confirm that your host computer is connected to the target device:
$ adb devices
# Example Output:
# List of devices attached
# 10.0.0.8:5555 device
# if there are multiple devices attached
# specify which device to communicate with using the -s option
$ adb -s 10.0.0.8 shell