Featured image of post Connecting Your Phone via ADB Both Wirelessly and Wired for App Installation and Uninstallation

Connecting Your Phone via ADB Both Wirelessly and Wired for App Installation and Uninstallation

ADB (Android Debug Bridge) is a versatile tool for collaboration between Android devices, allowing developers to manage and debug Android devices through wired connections or local networks.

ADB (Android Debug Bridge) is a versatile tool that facilitates communication between Android devices, enabling developers to manage and debug them through either wired connections or local networks. Connecting Your Phone via ADB Both Wirelessly and Wired for App Installation and Uninstallation Below are the steps for connecting your Android phone using wired and wireless methods:

Wired Connection

  1. Install ADB on Your Computer
    First, ensure that you have Android SDK Platform-Tools installed on your computer. If you haven’t installed this tool yet, follow these steps:

    • Visit the Android Developer website to download and extract Android SDK Platform-Tools.
    • Add the extracted platform-tools folder to your system’s environment variables, so you can execute adb commands from any location.
  2. Enable USB Debugging Mode
    On your Android phone, go to “Settings -> Developer Options,” find and enable the “USB Debugging” option. If “Developer Options” is not visible in your phone’s settings, head to the “About Phone” menu and tap on “Build Number” seven times to activate the Developer Options.

  3. Connect Your Phone to the Computer
    Now, connect your phone to your computer via USB. If this is your first time connecting the device, you will need to authorize the connection on your device.

  4. Verify Device Connection
    Open a terminal or command prompt window and enter the following command to check if your device has been successfully connected:

1
adb devices

If the connection was successful, you should see the device name and status displayed in the terminal.

Wireless Connection via Local Network

If you wish to connect your Android device wirelessly over a local network, ensure that both your Android device and computer are connected to the same local network. Here are the steps to connect using a local network:

  1. Enable Wireless Debugging Mode
    On your Android phone, go to “Settings -> Developer Options,” find and enable the “Wireless Debugging” option.

  2. Obtain the Device’s IP Address
    For your phone to communicate with your computer, it needs to be discoverable on the local network. You can find the IP address on your phone by using the ip command or by navigating to “Settings > About Phone > Status.”

  3. Connect to the Device
    Open a terminal or command prompt window and enter the following command to connect to your device:

1
adb connect <device-ip-address>

Replace <device-ip-address> with the IP address you obtained in the previous step. If everything is functioning correctly, you should see output similar to: connected to <device-ip-address>:5555 in the terminal.

  1. Verify Device Connection
    Similarly, enter the following command in the terminal or command prompt window to ensure the device is connected:
1
adb devices

If the connection is successful, the device name and status should appear in the terminal.

I hope this information helps you connect your Android phone either via wired or wireless methods.

Installing and Uninstalling Applications

  1. adb install <path_to_apk>: Install an APK file on the device. Replace <path_to_apk> with the local path to the APK, such as d:\file\uc.apk.

  2. adb uninstall [-k] <package_name>: Uninstall the specified application. Using the -k option will retain the application’s data and cache.

Licensed under CC BY-NC-SA 4.0