Simple way to install an APK using ADB

We can install an APK onto an Android device by connecting the device to a PC with a USB cord and then connecting to the device using the Android Debug Bridge (ADB).

Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components: A client, which runs on your development machine.

  1. Enabled usb debuginh on your device
  2. Connect the device to the developer desktop environment with a USB cable.
  3. Open a Cygwin bash shell or Windows Command Line and execute:adb devicesThe output should show the attached device:
    adb devices
    List of devices attached
    HT012P123456 device
  4. To install the application, navigate to the folder containing the downloaded APK. In our exampleC:\TempĀ and install APK using adb.
    cd D:/folder_apk/
    adb install thisIsTheAPKName.apk
  5. If the device list is empty, or a given device is not listed, kill the ADB server by executing:
    adb kill-server
  6. Execute adb devices again to restart the server, re-detect devices, and try again.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.