ADB install XAPK

adb can't install an .xapk file directly, because it only takes APK files. To adb install XAPK files, unzip the XAPK, then install all of its APKs together in one command with adb install-multiple, and push any OBB files to /sdcard/Android/obb/<package name>/. This keeps the developer's signature, so the app can still take updates from its store.

What you need

  • adb on your computer. It's in Google's SDK Platform Tools, a small download for Windows, Mac and Linux. Unzip it and open a terminal in that folder, or add it to your PATH.
  • USB debugging on the phone. Go to Settings, About phone, tap Build number seven times to show Developer options, then turn on USB debugging there.
  • A USB cable that carries data, and not only power.

Plug the phone in and run:

adb devices

The phone shows a prompt asking to allow USB debugging from this computer. Tap Allow. Run adb devices again, and it should list your phone with the word "device" next to it. "unauthorized" means the prompt is still waiting on the phone.

Why adb install app.xapk fails

adb install hands one APK to Android's package manager. An XAPK is a ZIP archive with several APKs inside, so adb either refuses it or Android rejects it as not being an APK. The fix is to give Android the APKs themselves.

If the XAPK holds just one complete APK, that's easy: unzip it and use adb install on that APK. If it holds split APKs, they have to go in together, in one install session. That's what adb install-multiple does.

ADB install XAPK: the commands

Windows (PowerShell)

Copy-Item app.xapk app.zip
Expand-Archive app.zip app
adb install-multiple (Get-ChildItem app\*.apk).FullName
adb shell mkdir -p /sdcard/Android/obb/com.example.game/
adb push app\Android\obb\com.example.game\main.12.com.example.game.obb /sdcard/Android/obb/com.example.game/

PowerShell only expands files that end in .zip, hence the copy. If adb isn't on your PATH, write .\adb instead of adb and run the commands from the platform-tools folder.

Mac and Linux (Terminal)

unzip app.xapk -d app
adb install-multiple app/*.apk
adb shell mkdir -p /sdcard/Android/obb/com.example.game/
adb push app/Android/obb/com.example.game/main.12.com.example.game.obb /sdcard/Android/obb/com.example.game/

Swap in your app's package name and OBB file name. Skip the last two lines if the XAPK has no Android/obb/ folder. When the install works, adb prints Success.

Worked example: our test app

Our test app, com.example.splittest, comes as an XAPK with 15 APKs. Unzipped, the full command is:

adb install-multiple base.apk config.arm64_v8a.apk config.armeabi_v7a.apk config.de.apk config.fr.apk config.hdpi.apk config.ja.apk config.ldpi.apk config.mdpi.apk config.pt.apk config.tvdpi.apk config.x86_64.apk config.xhdpi.apk config.xxhdpi.apk config.xxxhdpi.apk

That sends 195,045 bytes in 15 parts. Android keeps the parts that fit and ignores the rest, but you can send fewer, as the next section shows. We didn't have a phone connected while writing, so this shows the command, not a timed install.

Install only the splits your phone needs

Sending every split works, but you can be precise. A phone needs the base APK, one CPU split, one screen-density split and its language splits. Ask the phone which ones:

adb shell getprop ro.product.cpu.abilist
adb shell wm density
adb shell getprop persist.sys.locale

The first line lists CPU types in order of preference, such as arm64-v8a,armeabi-v7a,armeabi. The second gives the screen density as a number. The third gives the language. Map the density number to a split:

Density numberSplit
up to 120ldpi
160mdpi
213tvdpi
240hdpi
320xhdpi
480xxhdpi
640xxxhdpi

Pick the nearest bucket at or above your number. A phone reporting 420 uses xxhdpi.

For an arm64 phone with an xxhdpi screen, the test app's install shrinks to:

adb install-multiple base.apk config.arm64_v8a.apk config.xxhdpi.apk config.de.apk config.fr.apk config.ja.apk config.pt.apk

That's 7 parts and 84,697 bytes, less than half the full set. English text lives in the test app's base APK, so the language splits here are optional, and you can drop the ones you'll never use.

A single-APK XAPK

Older XAPK files, mostly games, hold one complete APK plus OBB data. For those:

adb install -r com.example.game.apk
adb shell mkdir -p /sdcard/Android/obb/com.example.game/
adb push main.12.com.example.game.obb /sdcard/Android/obb/com.example.game/

-r replaces an existing copy if it's signed with the same key, keeping its data.

Errors from adb and what they mean

adb saysMeaningFix
INSTALL_FAILED_MISSING_SPLITA required split wasn't in the sessionAdd the missing CPU or density split
INSTALL_FAILED_UPDATE_INCOMPATIBLEThe installed app has a different signatureUninstall it first, or use a matching copy
INSTALL_FAILED_NO_MATCHING_ABISNo split for the phone's CPU typeGet a package that includes your CPU type
INSTALL_FAILED_VERSION_DOWNGRADEOlder version than the installed oneUninstall the newer version
INSTALL_FAILED_OLDER_SDKThe phone's Android is too oldUse an older version of the app
INSTALL_FAILED_DEPRECATED_SDK_VERSIONAndroid 14+ and an app that targets API 22 or lowerUse a newer version of the app
device unauthorizedThe phone hasn't allowed this computerTap Allow on the phone

Each code is explained in full in our guide to "App not installed" errors.

Without typing commands

Two easier routes do the same work:

To install the app on the computer itself instead, in an emulator, read our guide to running XAPK apps on a PC. For the other phone-only routes, see every way to install an XAPK.

ADB and 2026 developer verification

Google's developer verification started on September 30, 2026, for participating app stores in Brazil, Indonesia, Singapore and Thailand, and it's due to expand worldwide in 2027. Google's FAQ says apps installed with ADB don't require verification, so the commands above keep working.

ADB install XAPK FAQ

How do I manually install an XAPK?

Unzip it, then install all its APKs together with adb install-multiple, or with a split APK installer app on the phone. Copy any OBB file into /sdcard/Android/obb/<package name>/.

How do I install an APK file via ADB?

Turn on USB debugging, connect the phone, allow the computer, and run adb install -r app.apk. Use install-multiple with every part when the app is split into several APKs.

Why isn't my XAPK installing with adb?

adb only accepts APK files, not the XAPK archive. Unzip it first. If install-multiple fails, read the error code: a missing split, a signature clash with an installed copy, or an unsupported phone are the usual causes.

Can I convert XAPK to APK instead?

Yes. Converting merges split APKs into one APK you can install with plain adb install, or by tapping it. The merged APK has a new signature, so it won't update a store copy. For more on the parts, read how split APKs fit together.