Sometimes its required to do the testing without using usb cable. That means we don't have to keep the device in charging mode but we want to run our scripts. In this case we can use adb over Wi-Fi. Lets see in detail, what is adb over Wi-Fi?
Step 1:
Connect device to system using usb
Step 2:
adb device
This will give you the list of devices connected to system
Result - List of devices attached
######## device
Step 3:
adb tcpip 5555
Result - restarting in TCP mode port: 5555
Step 4:
Find out the IP address of the device. Settings -> About -> Status -> IP address
Step 5:
adb connect #.#.#.#
Result - connected to #.#.#.#:5555
Step 6:
Now remove the usb cable and run below command to confirm whether the device is still connected or not
adb devices
Result - List of devices attached
#.#.#.#:5555 device
Step 1:
Connect device to system using usb
Step 2:
adb device
This will give you the list of devices connected to system
Result - List of devices attached
######## device
Step 3:
adb tcpip 5555
Result - restarting in TCP mode port: 5555
Step 4:
Find out the IP address of the device. Settings -> About -> Status -> IP address
Step 5:
adb connect #.#.#.#
Result - connected to #.#.#.#:5555
Step 6:
Now remove the usb cable and run below command to confirm whether the device is still connected or not
adb devices
Result - List of devices attached
#.#.#.#:5555 device
No comments:
Post a Comment