MacOS X / Linux

Setting up

To be able to sign an APK you will need Java’s Software Development Kit. If you have it already installed skip to the second step.

  1. Download the Java Software Development Kit (Java SDK) at Oracle’s official website
  2. Open the Terminal using Spotlight or the LaunchPad, on MacOS, or by pressing Ctrl+Alt+T on the majority of Linux distros
  3. Type in the following command “jarsigner”
    • If the Terminal returns a “command not found” error, please try to re-install the SDK
    • If the Terminal returns a list of arguments for jarsigner, you have successfully installed Java’s SDK

Signing the unsigned APK

  1. While in the Terminal, type in the following command, but with the following arguments:
    • jarsigner -keystore
    • Example: jarsigner -keystore /Users/Aptoide/Signature.jks /Users/Aptoide/Downloads/Unsigned_Test.apk Signature
  2. You will be asked to insert the password for your Keystore file, type it down and press enter. Your password is being inserted even if no text is shown!
  3. If everything went right, the unsigned APK will be signed and you can now submit it
    • If something did go wrong however, jarsigner will let you know what went wrong, carefully read the information it returns so you can successfully complete the process.