Android6 min readUpdated 2026-12-01

Android .apk vs. .aab for QA Testing: Generating Universal APKs with Bundletool

Why Android App Bundles (.aab) cannot be sideloaded directly onto phones and how background workers extract a universal installable .apk via Google bundletool.

Key Takeaway

Android devices cannot install .aab archives directly because .aab is a Google Play publishing container. Running bundletool build-apks --mode=universal generates a self-contained signed .apk that QA testers can sideload immediately.

Why Google Play App Bundles cannot be sideloaded

Google Play requires release submissions in Android App Bundle (.aab) format so Play Store servers can dynamically split density, language, and CPU ABI resources per device. However, Android's local PackageInstaller only understands APK files with a compiled AndroidManifest.xml and valid APK Signature Scheme v2/v3 blocks.

Sending a raw .aab file to a QA tester in Slack forces them to install Java and bundletool locally on a laptop—breaking mobile-only QA testing.

Universal APK generation inside isolated worker queues

When you upload an .aab to ShipBuild, the background worker isolates conversion from the web server:

  • Streams the .aab archive from S3 storage into an ephemeral sandboxed workspace.
  • Applies your signing strategy: either an ephemeral debug/test keystore generated per conversion job or a provided signing keystore passed securely via encrypted queue job memory (never written to PostgreSQL).
  • Executes bundletool build-apks --mode=universal to produce universal.apk containing compatible ABIs and resources.
  • Extracts Android metadata (package name, versionName, versionCode, minSdk, targetSdk, permissions) via aapt2 and pure-TS binary AXML decoding, then stores both the source .aab and installable .apk.

Signing key consistency for upgrade installs

Android enforces matching signing certificates when installing an updated version over an existing app on a phone. Using an ephemeral test keystore is convenient for first-time QA installs, while passing your team's dedicated QA keystore preserves seamless in-place upgrades across sprints.

Frequently Asked Questions

Why did Android show 'App not installed as package appears to be invalid'?
This usually occurs when a tester already has a version installed with the same applicationId signed by a different keystore (e.g., Play Store release vs. debug key), or when minSdkVersion exceeds the device's Android OS level.
Are custom Android signing keystores stored in the database?
No. When custom .aab signing options are submitted, credentials are encrypted only inside the short-lived BullMQ processing payload and discarded immediately after universal.apk generation completes.

Related Guides

Ready to distribute a build?

Upload an .ipa, .apk, or .aab archive or inspect your iPhone UDID directly in Safari.