Loading page

Enable wireless debugging

Android Debug Bridge (adb) lets you communicate with an Android device over USB or Wi-Fi. You’ll use adb to deploy applications and collect telemetry from the device. An advantage of wireless connection is that it avoids USB charging, which can distort power measurements during performance monitoring.

Before connecting your Android device, disable mDNS auto-connect on the host. This prevents adb from creating duplicate wireless connections:

    

        
        
export ADB_MDNS_AUTO_CONNECT=0
adb kill-server
adb start-server

    

On the target device, navigate to Developer options and enable Wireless debugging.

Image Alt Text:Screenshot of the Developer options page with highlighted Wireless debugging enable switchWireless debugging option in Developer options

Note

Use the search bar in the Settings application to find the Developer options page. If Developer options isn’t available, enable developer mode .

After you enable wireless debugging, the device will request to connect to a Wi-Fi network if it isn’t already connected. Connect the device to the same Wi-Fi network as your host machine.

When the Wi-Fi connection is established, you can pair your host machine. Select Pair device with pairing code: Image Alt Text:Screenshot of device pairing pop-up with highlighted Connection and Pairing IP addressesDevice pairing pop-up

Note the pairing IP address, pairing port, and pairing code shown on the device, then pair:

    

        
        adb pair PAIRING_IP_ADDRESS:PAIRING_PORT
__output__Enter pairing code: PAIRING_CODE
__output__Successfully paired to PAIRING_IP_ADDRESS:PAIRING_PORT [guid=<device GUID>]

        
    
Note

VPNs can cause connection issues with wireless pairing. Ensure that both devices have direct peer-to-peer network access.

Connect to the target device

Return to the main Wireless debugging screen and note the IP address and port shown there. The connection port is usually different from the pairing port.

Connect to the target device by using the connection address:

    

        
        adb connect DEVICE_IP_ADDRESS:CONNECTION_PORT
__output__connected to DEVICE_IP_ADDRESS:CONNECTION_PORT

        
    

Successful connection is indicated by the device IP, followed by an expected device state.

Verify the connection:

    

        
        adb devices
__output__List of devices attached
__output__DEVICE_IP_ADDRESS:CONNECTION_PORT    device

        
    

What you’ve accomplished and what’s next

You’ve established and verified a wireless connection to an Android device by using Android Debug Bridge.

Next, you’ll install a modified reference application and a LiteRT-LM model over this wireless connection.