This page explains how the tools on XAPK to APK converter work, how we test them, and which sources each rule comes from. Every tool follows Android's own published rules, and we check its output with Google's own Android tools, not with other converters.
How the converter decides what to build
Each file goes through the same three checks before anything is built:
- What format is it? The tool reads the first bytes and the list of files inside. An XAPK has a manifest.json, an APKM has an info.json, an APK set from bundletool has a toc.pb, and an APK has AndroidManifest.xml at the top level. The file name's extension is only a hint.
- What's inside? Every APK is read and sorted: the base APK, CPU splits, screen splits, language splits and feature modules. OBB files are matched to their package name.
- Which route fits? There are three:
- Extract, when the file holds one complete APK. The APK comes out unchanged, with the developer's signature.
- Merge, when the file holds a base APK and config splits. The parts are joined into one APK and signed with a new key.
- Split install, when the file holds feature modules or parts that can't be merged safely. The parts are installed together in one session instead.
The report shows which route was picked and why, before you download anything.
How a merge works
A merge rebuilds the base APK so it no longer needs its splits:
- Native libraries from the CPU splits are copied into the base, in their
lib/<abi>/folders. - Resources from the screen and language splits are added to the base's resource table, and their files are copied in.
- The manifest is cleaned. The attributes and meta-data that tell Android the app needs splits are removed, as is the list of splits.
- Old signatures are removed, since they no longer match the files.
- Files are aligned. Uncompressed files start on 4-byte boundaries, and uncompressed native libraries start on 16 KB boundaries, which suits phones with 16 KB memory pages.
- The APK is signed with schemes v1, v2 and v3, or v2 and v3 when the app needs Android 7.0 or later, or v3 alone when it needs Android 9 or later.
Because the developer's private key isn't in the file, a merged APK always carries a new signature. It installs as a fresh app, but it can't update a copy installed from a store. Every tool that changes an APK says so in its report.
How we test it
The test suite runs with Google's Android build tools: bundletool 1.18.3, build-tools 37 (aapt2, zipalign, apksigner), Android platform 36 and JDK 21.
The merge against Google's universal APK. We built a test app as an Android App Bundle, then had bundletool make two things from it: the split APKs a store would send, and Google's own universal APK. Our tool merged the splits, and the result was compared with Google's:
| Build | Parts | Alignment | Signature check | Resource table | Files |
|---|---|---|---|---|---|
| App needing Android 6.0 | 15 APKs: 3 CPU types, 7 screen sizes, 4 languages | Pass | Pass, v1 + v2 + v3 | Same as Google's | Same as Google's |
| Same app, needing Android 12L | 15 APKs | Pass | Pass, v3 | Same | Same |
| Styled text, emoji and CJK, Android 8.0 | 15 APKs | Pass | Pass, v2 + v3 | Same | Same |
| Same app, needing Android 12L | 15 APKs | Pass | Pass, v3 | Same | Same |
The only file that differs from Google's is res/xml/splits0.xml, which lists the split names and is expected to differ. We also checked that resource tables using sparse and compact encodings come through unchanged.
The other tools against Android's tools:
- Certificate details (owner, issuer, serial, dates, SHA-1 and SHA-256 fingerprints) match keytool and apksigner.
- Decoded manifests show every element and value that aapt2 dump shows, and permission lists match aapt2.
- ZIP files we write, including XAPK files from the creator, are read back by Python's zipfile module with every checksum checked.
- Signing with your own key: keys made by openssl in PKCS#1 and PKCS#8 form sign APKs that apksigner accepts, and a key that doesn't match its certificate is refused.
- APK sets with several variants from bundletool are read through their toc.pb index, and the variant for the oldest Android version is used.
- Format detection is tested on every format, on renamed files, and on OBB files in ZIP, FAT and Unity form.
- Picking splits for one phone: the screen densities and languages read from each split's resource table match what aapt2 reports for the same split.
- AAB to APK: four app bundles converted here match bundletool's universal APK in
aapt2 dumpoutput (files, XML, resources, type flags and badging). The one exception is a bundle for Android 4.4, where bundletool merges the dex files and we number them instead.
All 63 tests pass on the current version. The numbers in each page's worked example come from the same test app, computed by a script, so they can be reproduced.
What we haven't tested
We'd rather say what's missing than imply it's covered:
- Installs on a phone or emulator. The tests stop at apksigner's check and Android's parsing tools. We haven't timed or watched an install on a device, so no page claims install results.
- Real files from download sites. The test files are built by us from a test app, laid out the way XAPK, APKM and APKS files are. Real files can differ, and an APKM's encryption is not covered until we test a real one.
- Files over 4 GB. A merged APK that large isn't built; those files go to the split install route.
- Malware. No tool here scans for it.
Where the rules come from
Every rule the tools follow comes from Google's documentation, Android's source documentation, or the file format specification. We don't use other converter sites as sources. Each tool page lists the sources it relies on in its own Sources box, and they include:
- Android developer documentation: app bundle format, split APK install sessions (PackageInstaller), APK expansion files (OBB), 16 KB page sizes, the Android 11 and Android 14 behavior changes, and the manifest reference.
- Android source documentation: APK signature schemes v1, v2 and v3.
- Google's tool manuals: bundletool, apksigner, zipalign, aapt2 and adb.
- The ZIP specification (PKWARE APPNOTE), including ZIP64.
- OWASP's mobile testing guide on split APKs and XAPK.
Updates and corrections
When Android changes a rule, or a test finds a problem, we fix the tool and the page and update its review date. If you find a mistake, email hello@xapktoapkconverter.com with the page and the sentence (what to include is on the contact page), and we'll check it against the source. You can read more about who we are on the about page.