Installing Applications Using Wireless ADB

Installing Applications Using Wireless ADB

Use the Android Debug Bridge (ADB) to install an application over a Wi-Fi network, without needing a USB cable connection.
Before you begin, complete these prerequisite steps:
  • Install the Android SDK Platform-Tools on your host computer.
  • Save the application's
    .apk
    file to your host computer.
  • Connect the device and the host computer to the same Wi-Fi network.
  • Enable Developer options on the device.
  1. On the device, go to
    Settings
    System
    Developer options
    .
  2. Scroll down and touch the
    Wireless debugging
    toggle to enable it.
  3. In the
    Allow wireless debugging on this network?
    dialog box, touch
    Allow
    .
  4. Touch the
    Wireless debugging
    text to open its settings screen and note the IP address and port number under
    IP address & Port
    .
  5. On the same screen, touch
    Pair device with pairing code
    and note the new IP address, port, and Wi-Fi pairing code that display.
  6. On the host computer, open a terminal window and execute the
    adb pair
    command with the IP address and port from the
    Pair with device
    dialog:
    adb pair 192.168.1.100:41235
  7. When the terminal prompts you, enter the pairing code from the device and press Enter.
    The terminal confirms
    Successfully paired
    .
  8. Execute the
    adb connect
    command with the IP address and original port number from the main
    Wireless debugging
    screen:
    adb connect 192.168.1.100:37899
    The terminal confirms the connection.
  9. Execute
    adb devices
    to confirm the connection. The output lists your device's IP address.
  10. Execute the
    adb install
    command with the path to your
    .apk
    file:
    adb install
    C:\path\to\your\app.apk
    A
    Success
    message displays, and the application icon now displays in the device's app drawer.
  11. When you finish, disconnect the session with the
    adb disconnect
    command.