Skip to content

Android Devices

Introduction

This module provides instructions on how to connect different Android devices to the developer machine, enabling application debugging and automated testing in both Windows and MacOS environments.

Prerequisites

Example 1: DWT765MM

In this example we will learn how to connect an AgileTV Technicolor DWT765MM set-top box to the developer computer.

Generic device

SpecificationDetail
ModelTechnicolor DWT765MM
AndroidAndroid TV 9
RAM2 GB

Enabling USB debug

  1. At Home screen, click on "AJUSTES" button. Ajustes
  2. Click "Ajustes de sistema". Ajustes de sistema
  3. Click "Preferencias del dispositivo": Preferencias del dispositivo
  4. Click "Información".
  5. Click 8 times on "Compilación": Compilacion
  6. At Home screen, click on "AJUSTES" -> "Ajustes de sistema" -> "Preferencias del dispositivo" -> "Opciones de desarrollo". Desarrollo
  7. Enable "Habilitar opciones de desarrollarores" and "Depuración por USB". Habilitar opciones de desarrollarores

Wireless connection

  1. Check if the device is connected at the same network as the computer. Get the IP address of the device: Device Agile IP
  2. Open the terminal and type:
    shell
    adb connect 192.168.0.11
  3. On the device, accept the confirmation dialog box: Device Agile accept
  4. Open the terminal and type:
    shell
    adb devices
  5. The following message should be displayed:
    text
    List of devices attached
    192.168.0.11:5555       device

Example 2: PROSB-3000/16GB

In this example we will learn how to connect a generic Android TV Box to the developer computer.

Generic device

SpecificationDetail
ModelPROSB-3000/16GB
AndroidV.10 OASP
RAM2 GB

USB Cable:

  • USB type A male to male cable

Enabling USB debug

  1. At Home screen, click on "Configurations" button (the gear button).
  2. Click "Preferences" -> "About".
  3. Click 8 times on "Version number": Version Number
  4. At Home screen, click on "Configurations" button (the gear button).
  5. Click "Preferences" -> "Developer Options". Developer options
  6. Click on "Enable Developer Options".
  7. Click on "Enable USB Debug".
  8. Click on "Enable USB0 device debug.

USB connection (Windows)

  1. Use the "USB Type A male to male" cable to connect the set-top-box to the computer.
  2. Press Win + R to open the Run dialog.
  3. Type devmgmt.msc and press Enter to open the Device Manager window.
  4. Confirm that the device PROSB3000/16GB is displayed on "Portable Devices" node: Developer options
  5. Open the terminal and type:
    shell
    adb devices
  6. The following message should be displayed:
    text
    List of devices attached
    PRO23APR007940  device

USB connection (Mac)

  1. Use the "USB Type A male to male" cable to connect the set-top-box to the computer.
  2. Open the terminal and type:
    shell
    adb devices
  3. The following message should be displayed:
    text
    List of devices attached
    PRO23APR007940  device

Wireless connection

  1. First, follow the steps as described here for USB connection.
  2. Open the terminal and type:
    shell
    adb tcpip 5555
    This command will enable wireless debugging and it should be executed only at once.
  3. If running windows, securely disconnect the device and remove the USB Cable.
  4. Check if the device is connected at the same network as the computer. Get the IP address of the device: Device IP
  5. Open the terminal and type:
    shell
    adb connect 192.168.0.10
  6. The following message should be displayed:
    text
    connected to 192.168.0.10:5555

Example 3: SAMSUNG Galaxy S23 FE

In this example, we will learn how to connect a SAMSUNG Galaxy S3 FE smartphone to the developer computer.

Galaxy S3 FE device

SpecificationDetail
ModelSAMSUNG Galaxy S23 FE
AndroidAndroid 14
RAM6 GB

Enabling USB debug

  1. At the Home screen, click on "Configurações" (Settings).
  2. Scroll down and click on "Sobre o telefone" (About phone), then click on "Informações do software".
  3. Click 7 times on "Número de compilação" (Build number) to enable developer mode. Numero de compilacao
  4. Return to the "Configurações" (Settings) menu.
  5. Click on "Opções do desenvolvedor" (Developer options).
  6. Enable "Opções do desenvolvedor" (Developer options). Enable "Depuração USB" (USB Debugging)

USB connection (Windows)

  1. Use an USB Type-C cable to connect the smartphone to the computer.
  2. On the smartphone, choose the option "Carregar somente" (Charge only). Carregar somente
  3. On the smartphone, accept the "Permitir Depuração USB" (Allow USB debugging) message dialog box. Permitir depuracao USB
  4. On the Windows computer, press Win + R to open the Run dialog.
  5. Type devmgmt.msc and press Enter to open the Device Manager window.
  6. Confirm that the device Galaxy S3 FE is displayed under the "Portable Devices" node. Device Manager Galaxy S3 FE
  7. Open the terminal and type:
    shell
    adb devices
  8. The following message should be displayed:
    text
    List of devices attached
    RQCX2029BAE     device

USB connection (Mac)

  1. Use an USB Type-C cable to connect the smartphone to the computer.
  2. On the smartphone, choose the option "Carregar somente" (Charge only). Carregar somente
  3. On the smartphone, accept the "Permitir Depuração USB" (Allow USB debugging) message dialog box. Permitir depuracao USB
  4. Open the terminal and type:
    shell
    adb devices
  5. The following message should be displayed:
    text
    List of devices attached
    RQCX2029BAE     device

Wireless connection

  1. First, follow the steps as described here for USB connection.
  2. Open the terminal and type:
    shell
    adb tcpip 5555
    This command will enable wireless debugging and it should be executed only once.
  3. If running Windows, securely disconnect the device and remove the USB cable.
  4. Check if the device is connected to the same network as the computer. Get the IP address of the device from "Configurações" -> "Conexões" -> "Wi-Fi" -> Click on the connected network -> "Endereço IP" (IP Address). Galaxy S3 FE IP Address
  5. Open the terminal and type:
    shell
    adb connect 192.168.0.6
  6. On the smartphone, accept the "Permitir Depuração WIFI" (Allow WIFI debugging) message dialog box. Allow wifi
  7. Open the terminal and type:
    shell
    adb devices
  8. The following message should be displayed:
    text
    List of devices attached
    192.168.0.6:5555       device