Other

ADB Install: Installing APK on Android via ADB

This guide explains how to install an APK file on an Android device using Android Debug Bridge (ADB). You'll learn to configure your device, perform installations via command line, and resolve common errors.

Updated at February 15, 2026
10-15 min
Easy
FixPedia Team
Применимо к:Android 5.0+ADB 1.0.41+Windows 10/11, macOS, Linux

Introduction / Why This Is Needed

Installing APK files via ADB (Android Debug Bridge) is a powerful and versatile method for deploying applications directly from a computer to Android devices. This approach is particularly useful for:

  • Developers and testers: Quickly install debug builds without needing to publish to Google Play.
  • Users: Install apps unavailable in your region's official store or beta versions.
  • Administrators: Mass-deploy corporate applications across multiple devices.
  • Rescue "frozen" devices: Install a file manager or browser via ADB when the device's graphical interface is unresponsive.

This guide will walk you through all necessary steps—from preparation to successful installation and resolving common issues.

Requirements / Preparation

Before you begin, ensure you have:

  1. A computer running Windows, macOS, or Linux.
  2. A USB cable (preferably original or a high-quality data-transfer-compatible alternative).
  3. An Android device (version 5.0 or higher).
  4. An application file in .apk format.
  5. Basic command-line/terminal skills.

What to Install on Your Computer

  • ADB (Android Debug Bridge): Part of Google's Platform-Tools package. Download the latest version from the official page for your OS.
    • Windows: Extract the archive to a convenient folder (e.g., C:\adb).
    • macOS/Linux: Extract and move adb to a directory in your PATH variable, or work from the extraction folder.
  • USB drivers (Windows only): For proper device recognition. Common options include the Google USB Driver (requires Android Studio) or universal drivers (e.g., from Samsung, Xiaomi, or generic ADB Driver Installer).

Step-by-Step Guide

Step 1: Configure Your Android Device for Debugging

This is the most critical step. Without it, your computer won't detect your phone.

  1. Enable Developer Options.
    • Open SettingsAbout phone (or SystemAbout phone).
    • Find Build Number. Tap it 7 times. You'll see a notification: "You are now a developer!".
  2. Enable USB Debugging.
    • Return to the main Settings menu. You now have access to Developer options.
    • Open it and find USB debugging. Toggle it ON.
    • It's also recommended to enable "Allow installation from unknown sources" in your security settings if the app isn't from the Play Store.

Step 2: Prepare Your Computer and Verify Connection

  1. Open a terminal/command prompt.
    • Windows: Open cmd or PowerShell. Navigate to the folder where you extracted Platform-Tools using cd C:\adb (or your path).
    • macOS/Linux: Open Terminal. Navigate to the adb folder or ensure the adb command is globally available.
  2. Connect your device to the computer via USB cable.
  3. Select the correct USB mode on your phone.
    • When connected, a USB notification appears in the status bar. Tap it and select "File transfer" (MTP) or "Use USB for...""File transfer". The "Charging only" mode often blocks ADB.
  4. Authorize debugging on the device.
    • A dialog should appear on your phone asking "Allow USB debugging?". Check "Always allow from this computer" and tap OK.
  5. Verify the connection.
    • In the terminal, run:
    adb devices
    
    • The output should include a line with your device's serial number and the status device. Example:
    List of devices attached
    0123456789ABCDEF    device
    
    • If the status is unauthorized—you didn't authorize debugging in step 4. If the list is empty—there's a driver issue (Windows) or cable/USB mode problem.

Step 3: Install the APK File

Now that the connection is established, installing the app takes seconds.

  1. Navigate to your APK file's folder.
    • Use the cd command in the terminal. For example: cd ~/Downloads or cd D:\APK.
  2. Run the install command.
    • Basic syntax:
    adb install filename.apk
    
    • Example:
    adb install my_app_v1.2.3.apk
    
    • Useful flags:
      • -r: Reinstall the app, preserving its data and cache (adb install -r app.apk).
      • -d: Allow a version with a lower version code (for test builds).
      • -s: Install on external storage (SD card), if supported.
  3. Wait for completion.
    • You'll see a progress bar in the terminal. A successful installation ends with Success.
    • If an error occurs, the process stops and you'll receive an error code (e.g., INSTALL_FAILED_ALREADY_EXISTS).

Verify the Result

  1. Graphical method: Unlock your device. The new app's icon should appear in the launcher (app menu). Simply tap it to launch.
  2. Via ADB (alternative): You can check if the package is installed by running:
    adb shell pm list packages | grep -i "part_of_your_app_name"
    
    For example, for WhatsApp: adb shell pm list packages | grep -i whatsapp. If the package appears in the list—installation was successful.

Potential Issues and Solutions

Issue: adb devices doesn't show the device or shows unauthorized

  • Cause: Drivers (Windows), incorrect USB mode, or debugging not authorized.
  • Solution:
    1. Reconnect the cable; try a different port/cable.
    2. On the device, in USB settings, select "File transfer/MTP" instead of "Charging only".
    3. Reboot both the device and computer.
    4. For Windows: Update or reinstall ADB drivers via Device Manager (update driver for "Android" or "ADB Interface").
    5. Ensure you tapped "OK" on the debugging authorization dialog on the device.

Issue: Error INSTALL_FAILED_UPDATE_INCOMPATIBLE or signatures do not match

  • Cause: You're trying to install an APK signed with a different certificate than the already installed version of the same app.
  • Solution: Fully uninstall the old version from the device before installing the new one.
    adb uninstall com.example.package  # Replace with the actual package name
    
    You can find the package name from the APK filename or via adb shell pm list packages | grep ....

Issue: Error INSTALL_FAILED_INSUFFICIENT_STORAGE

  • Cause: Insufficient free space on the device.
  • Solution: Free up storage on the device (delete unnecessary files/apps, clear cache).

Issue: Error device offline (in adb devices)

  • Cause: The connection was interrupted or the ADB server on the computer is stuck.
  • Solution:
    1. Restart the ADB server:
      adb kill-server
      adb start-server
      adb devices
      
    2. Reconnect the USB cable.
    3. Reboot the device.

Issue: Error error: device not found or no devices/emulators

  • Cause: The device is not recognized by the system.
  • Solution: Check all points from the first issue (drivers, cable, USB mode, debugging authorization). Ensure USB debugging is enabled on the phone at the time of connection.

F.A.Q.

Why doesn't ADB see my device (adb devices empty)?
Can I install APKs without USB debugging permission?
What should I do if I get the 'INSTALL_FAILED_UPDATE_INCOMPATIBLE' error when installing?
Can I install an app to an SD card via ADB?

Hints

Preparation: Install ADB and drivers
Configure your Android device
Connect the device and verify connection
Install the APK file
Verify installation
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community