How to Sideload Android APKs Using ADB from Your Computer

2026-10-01

Why Use ADB Instead of the Built-In Installer?

Sideloading apps from a desktop computer with Android Debug Bridge (ADB) bypasses Android's on-device package installer altogether. When an installation fails, ADB prints the exact diagnostic error code rather than a vague failure message. It also installs multi-APK split bundles natively without extra helper apps and remains the most dependable way to sideload onto Android TV boxes that lack a file manager.

Preparing Your Computer and Device

  1. Install SDK Platform-Tools: On macOS, run brew install --cask android-platform-tools. On Debian or Ubuntu, run sudo apt install adb. On Windows, download Google's official SDK Platform-Tools archive and extract it to a convenient folder.
  2. Enable USB Debugging on Android: Open Settings > About phone, tap Build number seven times to unlock Developer options, then switch on USB debugging.
  3. Authorize the Connection: Plug your phone into your computer, run adb devices in your terminal, and tap Allow on the phone's RSA prompt. Verify the output shows device rather than unauthorized.

Connecting Over Wi-Fi: Devices running Android 11 or newer support Wireless debugging inside Developer options. Enable it to view a pairing code, then execute adb pair <ip:port> followed by adb connect <ip:port>.

Essential ADB Install Commands

  • Install a standard APK: adb install app.apk
  • Update or reinstall while preserving app data: adb install -r app.apk
  • Install a split-APK bundle: adb install-multiple base.apk split_config.arm64_v8a.apk split_config.en.apk
  • Install an XAPK or APKS archive: Unzip the archive first (both formats are standard ZIP containers), then pass all extracted APKs to adb install-multiple.
  • Target a specific Android user profile: adb install --user 0 app.apk
  • Remove an installed package: adb uninstall <package name>
  • Inspect the currently installed version: adb shell dumpsys package <package name> | grep version

Handling Version Downgrades

Although adb install -r -d app.apk includes the downgrade flag, Android honors -d strictly on debuggable builds. On standard release apps, the flag is ignored and ADB halts with INSTALL_FAILED_VERSION_DOWNGRADE. To roll back a regular release app, uninstall the newer version first before installing the older build.

Decoding Common ADB Errors

Unlike on-device prompts, ADB tells you precisely why a package was rejected:

  • INSTALL_FAILED_UPDATE_INCOMPATIBLE — The new APK's signing certificate does not match the version currently installed.
  • INSTALL_FAILED_NO_MATCHING_ABIS — The package lacks native libraries compiled for your phone's CPU architecture.
  • INSTALL_FAILED_OLDER_SDK — The app requires a newer Android OS version than your device runs.
  • INSTALL_FAILED_MISSING_SPLIT — You attempted to install only the base APK from a split bundle without its required configuration APKs.

Copying OBB Expansion Files

ADB does not automatically move OBB data files during installation. Push them manually to the package's expansion directory with: adb push main.1234.com.example.obb /sdcard/Android/obb/com.example/.

‹ Voltar aos guias