Signing & App Identity

Android Keystore Password vs Key Password vs Alias

An Android signing setup can involve a keystore password, a key-entry password and an alias. These values are related but not interchangeable. The alias selects an entry; the store password opens or protects the container; the key password protects the selected private-key entry where the format supports that distinction.

By Updated 2 min read

Identify the field that actually failed

Read the error message before changing credentials. “Keystore was tampered with, or password was incorrect” is not the same problem as “alias does not exist” or “cannot recover key.” The file path and keystore format can also be wrong.

Do not repeatedly rewrite the release configuration without preserving the original. First confirm that the file belongs to the intended app and release system. Signing configuration.

Inspect aliases with a read-only operation

Use:

BASH · REFERENCE EXAMPLE
keytool -list -v -keystore release-keystore.jks

The tool prompts for the store password. Listing the expected alias and certificate demonstrates that you can read the store, but it does not necessarily prove that the build can unlock the private key using its configured entry password.

Keystore formats and tooling can impose different password behavior. Do not assume that two fields must always differ simply because a UI exposes both.

Map the credentials to build settings

Build setting Meaning
storeFile Location of the keystore container
storePassword Credential used for that container
keyAlias Name selecting the intended entry
keyPassword Credential for the private-key entry when applicable

In CI, inspect whether an environment variable is missing, includes an accidental newline or refers to an older secret version. Log only whether a value is present, never the value itself.

Avoid destructive “fixes”

Creating a new keystore with the same alias does not recreate the old key. Changing a file extension does not convert its format. Uploading a private keystore to an unknown recovery service exposes a credential that can affect future releases.

For a lost upload credential under Play App Signing, investigate the official reset path. For a self-managed signing key, recovery possibilities depend on backups and the established distribution arrangement.

Verify after a legitimate correction

Build the intended release variant and compare the output certificate with the expected fingerprint. Then test the real upload or update path. A successful local Gradle task is not enough if it silently used another signing configuration.

APKLint's certificate tools inspect public package metadata. They neither require nor recover the keystore password. Keep credential troubleshooting in your controlled local or CI environment.

Sources and further reading

  1. Android Developers: Sign your app

Reference review: 22 September 2026. Examples illustrate the workflow; check your installed versions, release artifact and account-specific Console requirements before applying them. This guide is not a claim that APKLint executed your project or verified your private account.

APKLint

Android inspection tools and practical release guides. About APKLint · Report a correction