Android

APK Signing Guide

Build keytool, zipalign, apksigner, and jarsigner commands from your paths and options. Copy blocks individually or export a full script — nothing is uploaded.

Ad placement — top banner

Keystore

APK paths & method

Adjust the form to generate commands.
Ad placement — mid rectangle

Why APK signing matters

Google Play and Android install flows require that APKs and App Bundles are cryptographically signed. Your signing identity links updates to the same app listing and protects users from tampered installs. This guide helps you generate the exact CLI commands your team can run after a build.

Recommended modern workflow (apksigner)

  1. Build an unsigned release APK (or export one from your pipeline).
  2. Run zipalign to align uncompressed data on 4-byte boundaries (required before signing with apksigner in typical Play flows).
  3. Sign with apksigner from Android SDK build-tools (supports v1 + v2 / v3 schemes).
  4. Verify with apksigner verify before upload.

When jarsigner is still relevant

jarsigner is part of the JDK and signs JAR-style APKs using v1 signing. Many teams still document it for legacy pipelines, but for Google Play you should prefer apksigner with v2 enabled for install performance and integrity guarantees on modern Android.

Google Play App Signing

Play can manage your app signing key while you keep an upload key. Store your upload keystore safely — loss of the upload key requires Play support processes to recover. Never commit keystores or passwords to git.

Security best practices

  • Use a strong keystore password and key password; prefer a hardware-backed or team-managed secret store.
  • Back up the keystore file and document alias + algorithms in a secure vault.
  • Rotate upload keys only via Play Console workflows when required.
  • Do not paste real passwords into this page if others can see your screen; use env vars or CI secrets.

Frequently Asked Questions

Does this tool sign my APK or create a real keystore?

No. It only generates command lines. You run them on your machine with JDK and Android SDK tools installed.

Where do I get apksigner and zipalign?

They ship with Android SDK build-tools. Point your PATH to …/Android/Sdk/build-tools/<version>/.

Should I use apksigner or jarsigner for Play uploads?

Prefer apksigner with v2 signing enabled. jarsigner alone is legacy for many Play workflows.

Why zipalign before apksigner?

Alignment reduces RAM use at install time. For release builds, align first (or ensure your build pipeline does), then sign.

Can I use EC keys?

Yes for new keystores if your toolchain supports it; many teams still use RSA 2048/3072. Confirm compatibility with your CI and Play upload key policy.

Does DroidXP upload my keystore paths or secrets?

No. All strings are built in your browser. Password prompts appear only when you run the generated commands locally.

What if my paths contain spaces?

The generator wraps paths in single quotes for POSIX and quotes for Windows where needed.