Android · 2026-11-25 · 9 min

Android INSTALL_FAILED Codes: Diagnostic Map

A diagnostic map for Android INSTALL_FAILED codes: what each one checks, the first command to run, and how signature, SDK, ABI and storage failures differ.

By Open Error Codes EditorialReviewed 2026-11-25

Android rejects a failed install with a single INSTALL_FAILED_* token, and that token is more specific than the sentence printed after it. The same code can come from a phone, an emulator, a CI runner or a managed work profile. This guide maps the codes you are most likely to meet to the check that failed, the command that proves it, and the fix that does not weaken the device.

What an INSTALL_FAILED code actually reports

These codes come from the package manager, not from the running app. adb install prints Failure [INSTALL_FAILED_ALREADY_EXISTS] after the package manager has rejected the transaction, and the app never starts. That distinction matters: a crash log will not contain the cause, and clearing the app's cache cannot fix an install that was refused before it began.

The checks run in a rough order. Is the package already present? Does the APK parse and verify? Does its signing certificate match the installed copy? Does the version code move forward? Does the device API level satisfy minSdkVersion? Do the native libraries match the device ABI? Is there enough storage? Does device policy allow the install? The code names the check that failed.

What the code is not

An install failure is not a runtime crash, so the app's own logs will be empty and its data directory may not exist yet. It is also not a store review decision: policy and eligibility rejections appear in the Play Console as their own messages, not as INSTALL_FAILED_*. And it is not a general verdict on device compatibility, because a single failed check, such as one missing ABI split or one older API level, produces the whole failure.

Code, likely cause and first check

CodeLikely causeFirst check
INSTALL_FAILED_ALREADY_EXISTSThe package is installed and the install is not a replacementRetry with adb install -r
INSTALL_FAILED_INVALID_APKTruncated, unsigned or malformed packageChecksum, signature, aapt dump badging
INSTALL_FAILED_INSUFFICIENT_STORAGEThe data partition cannot hold the installed footprintadb shell df -h /data
INSTALL_FAILED_UPDATE_INCOMPATIBLEThe signing key differs from the installed appCompare certificates, then uninstall or re-sign
INSTALL_FAILED_VERSION_DOWNGRADEThe new versionCode is lower than the installed onedumpsys package version code
INSTALL_FAILED_USER_RESTRICTEDDevice policy, work profile or install setting blocks itUser restrictions and target profile
INSTALL_FAILED_OLDER_SDKThe device API level is below minSdkVersiongetprop ro.build.version.sdk
INSTALL_FAILED_NO_MATCHING_ABISNo native library matches the device CPUgetprop ro.product.cpu.abilist
INSTALL_FAILED_TEST_ONLYThe manifest is marked android:testOnlyManifest inspection, then adb install -t

Already installed, or a different signature

INSTALL_FAILED_ALREADY_EXISTS means the package name is already present and the install was not a replacement. adb install -r replaces an existing package; a plain adb install does not. Two build variants that share an applicationId collide the same way, even when their code differs.

INSTALL_FAILED_UPDATE_INCOMPATIBLE means a package exists but the new APK is signed with a different key. Android will not replace a package with a build from another signing identity, which is why a debug build cannot go over a store build. adb install -r does not bypass this. Sign with the same key, or uninstall the old package and accept that its data is removed.

The APK itself is rejected

INSTALL_FAILED_INVALID_APK means the package could not be parsed or verified: a truncated download, a missing or malformed signature block, or a broken manifest or resource table. Compare the file size and checksum with the build output before reinstalling. An Android App Bundle is not an APK, so adb install cannot open an .aab; generate device-specific APKs from the bundle first.

INSTALL_FAILED_TEST_ONLY means the manifest carries android:testOnly="true". Debug builds and some CI artifacts set the flag, and the package manager refuses them on the normal path because they are meant for local testing. adb install -t allows a test-only package; a release build removes the flag for distribution.

Version code and API level

INSTALL_FAILED_VERSION_DOWNGRADE means the new versionCode is lower than the installed one. Android blocks downgrades by default because older code can meet newer data. Increment versionCode for the next build. adb install -d permits a deliberate test downgrade and does not belong in a release process.

INSTALL_FAILED_OLDER_SDK means the device API level is below the APK's minSdkVersion. Check the device level with getprop ro.build.version.sdk and the APK's declared level with aapt dump badging. Lower minSdkVersion only if the code genuinely supports the older APIs; otherwise ship a variant for that device or test on a newer one.

Storage and CPU architecture

INSTALL_FAILED_INSUFFICIENT_STORAGE means the data partition could not hold the APK plus its extracted native libraries and optimized dex files, so the space needed is larger than the download. Check adb shell df -h /data, clear cached data, and reduce the footprint with ABI and density splits from an app bundle rather than deleting system apps.

INSTALL_FAILED_NO_MATCHING_ABIS means the APK contains native libraries, but none match the device. An x86-64 emulator cannot load an arm64-v8a-only library without ARM translation, and an ARM device cannot load an x86 library. Compare the device's ro.product.cpu.abilist with the APK's native-code list.

Split APKs change what “the app” means

Modern Android apps are usually shipped as an app bundle, and the store or bundletool turns that bundle into a base APK plus configuration splits: one per ABI, one per screen density, and one per language. The device installs the base and only the splits it needs. This is why a build that works from the store can fail from a hand-copied APK: the base alone may contain no native libraries, or the ABI split that matches the device was never copied.

Install the whole set in one transaction. adb install-multiple takes the base first and the splits after it, and mixing splits from two different builds fails signature or version checks. When a bundle is the only artifact you have, generate a device-specific set with bundletool build-apks --connected-device rather than guessing which splits to copy.

Device policy

INSTALL_FAILED_USER_RESTRICTED means a user or device policy blocked the install. On a managed device this is usually an MDM restriction or a work-profile rule; on a personal device it can be a disabled install source, a parental control or a security setting. Do not try to defeat the policy. Confirm the target profile with adb shell pm list users, install into the profile that policy allows, and otherwise use the organisation's approved distribution channel.

Commands that produce evidence

# Replace an existing package and keep its data
adb install -r app-release.apk

# Install a base APK with its config splits in one transaction
adb install-multiple base.apk split_config.arm64_v8a.apk split_config.xxhdpi.apk

# Find the installed package, its version and its signature
adb shell pm list packages | grep com.example.app
adb shell dumpsys package com.example.app | grep -E 'versionCode|versionName|signatures'

# Device ABI list and API level
adb shell getprop ro.product.cpu.abi
adb shell getprop ro.product.cpu.abilist
adb shell getprop ro.build.version.sdk

# Which user profiles exist, when a policy is suspected
adb shell pm list users

# Inspect the APK before installing it
aapt dump badging app-release.apk | grep -E 'package:|sdkVersion|native-code'
aapt dump xmltree app-release.apk AndroidManifest.xml | grep -i testOnly
apkanalyzer manifest print app-release.apk

# Storage on the data partition, and the package manager log
adb shell df -h /data
adb logcat -d | grep -iE 'PackageManager|PackageInstaller|install'

Use one device at a time when several are attached, or pass -s SERIAL to every command. The logcat output confirms which check failed, which matters when the printed message is shorter than the code.

A decision path

  1. Read the exact token. The trailing sentence is often generic.
  2. Already installed? Retry with -r; if the result is UPDATE_INCOMPATIBLE, treat it as a signature problem.
  3. Signature mismatch? Compare signing certificates, then re-sign with the release key or uninstall the old package.
  4. Version complaint? Raise versionCode for a downgrade; check the device API level against minSdkVersion for OLDER_SDK.
  5. ABI complaint? Compare the device ABI list with the APK's native-code list and install every required split.
  6. Storage complaint? Read df /data, then remove caches and unused apps instead of system components.
  7. Policy complaint? Identify the profile and its restrictions; route the install through the approved channel.
  8. Parse or test-only complaint? Verify the file and its signing, and decide whether this build is meant for testers or for release.

Related pages

Each code above has a dedicated page: ALREADY_EXISTS, INVALID_APK, INSUFFICIENT_STORAGE, UPDATE_INCOMPATIBLE, VERSION_DOWNGRADE, USER_RESTRICTED, OLDER_SDK, NO_MATCHING_ABIS and TEST_ONLY. For the full list, start at the Android product hub.

Sources

Search the code you are seeing

Every page links the official source and the date it was last checked.

Search codes