Edit

Code signing process for AAB file

This article explains how to manually code sign an AAB file.

Prerequisite

  1. Set up Android Studio.

  2. Install bundletool for converting AAB file to APK file. You can download the latest version from the official site.

  3. Install jarsigner for signing in the AAB file. You can install jarsigner by downloading and setting up the Java Development Kit (JDK).

Signing process for AAB file

Note

You need to sign the AAB file even if you select the automatic signing process in the wrap wizard.

To sign an AAB file, follow these steps:

  1. Open a terminal or command prompt.
  2. Go to the directory where jarsigner is installed.
  3. Run the commands shown in the image. Screenshot of command prompt showing jarsigner usage for AAB file. Replace the placeholders: - <path-to-your-keystore>.jks – Path to your .jks keystore file - <output-signed-aab-file>.aab – Output file name. - <input-unsigned-aab-file>.aab – Unsigned .aab file. - <bundleid> – Bundle ID used while wrapping.

Convert AAB to APK file for manual debugging

To convert an AAB file to an APK file, follow these steps:

  1. Open a terminal or command prompt.
  2. Run the commands shown in the screenshot. Screenshot of command prompt showing java code for AAB file. Replace the placeholders: - <path-to-signed-aab-file>.aab – Path to the signed AAB file. - <output-directory> – Output directory for the .apks file.

See also