Setting up a physical Android device

Ensure that you have configured your Android device to accept from Appium server (see Basic-configuration).

To set up an Android device via USB cable, perform the following steps:

  1. Connect the device using USB cable
  2. Make sure in android “Developer Options”, “USB Debugging” and “Install via USB” options are enabled.
  3. Verify adb devices command is showing the connected device name

To set up an Android device via Wi-Fi, perform the following steps:

  1. Connect Android phone and host machine to same WiFi network
  2. Connect Android phone to host machine using USB cable (to start with)
  3. Run adb tcpip 5555 from a command prompt
  4. Run adb shell "ip addr show wlan0 | grep -e wlan0$ | cut -d\" \" -f 6 | cut -d/ -f 1" to obtain the phone’s IP address
  5. Disconnect USB cable and run adb connect <your_ip_address>:5555
  6. Verify adb devices command is showing the connected device name

Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400