1. Home
  2. Android
  3. Keystore & Signing
  4. Android APK Signing Tool (APK Signer)
  1. Home
  2. Android
  3. Android APK Signing Tool (APK Signer)

Android APK Signing Tool (APK Signer)

About

In order to upload your compiled Android file (apk) you need to sign and algin it. There are several ways to do that, but the easiest is to use the tool APK Signer from Hai Bison.

Requirements

  • JDK 1.6+
  • JRE 1.6+
  • ADT (including zipalgin file, can be additionally downloaded here)

You can download the needed Java JDK’s and JRE here.

Just to let you know...

It’s recommended to create the keystore file wiht JDK6 (1.6). If you face any installation issues, try to use JDK6.

  Download Java JDK 8 (0.0 B)
6264 Downloads so far

Download APK Signer

  Download Apk-signer (729.1 KiB)
29281 Downloads so far

Unzip the archiv and run the java file.

APK Signer

Create a keystore file

The tool makes it very easy to create your keystore file. This file can be used for all your games. There is no need to create a new one for each app/game.

Just to let you know...

Note: Save the information used to create the file! Especially the alias and the two passwords! Also save the keystore file and make backups of it!

apk_signer_create_keystore

  • (1) – Locate your Java JDK 1.6 installation path (Java/bin/…)
  • (2) – Update the information for the keystore file (save your password, you’ll need it every time you want to sign your app!)
  • (3) – Click ‘Save as …’ and save the path you want to create the keystore file

apk_signer_set_target

  • (4) – Click ‘Generate Keyfile’

If you have added all information and the generation was successfully you will get this notification.

apk_signer_done

Sign your App

Here you find a simple video showing the steps below.

Switch to the ‘Signer’ tab and make sure the path to your JDK 1.6 installation is set.

apk_signer_sign

  • (1) – Load your keyfile and enter your two passwords (Hint: if you enter the ‘Password’ press the tabulator key. If you password was right the Alias will be set automatically)

apk_signer_load_keyfile

  • (2) – Load your app you want to sign (make sure that you have unchecked ‘Sign’ at Intel XDK, otherwise the apk is debug-signed already)

apk_signer_load_app

Press ‘sign’ to sign your app. You will get a file named ‘…SINGED_UNALIGNED.apk’

Align your app

Now go to the ‘APK Alignment’ tab and load the apk you got after the signing.

apk_signer_align

  • (1) – Load your signed app file

apk_signer_load_app_algin

Press ‘align’ and you will get a file named ‘…SIGNED_ALIGNED.apk’. This file is ready to be uploaded to the Google Play Store.

Issues

Got any problem? Please visit our support forum.

  Support

Thank you!

Updated on May 6, 2017

Was this article helpful?

Related Articles

Comments

    1. Hi,
      You need to set the alias and password when creating the new keystore file. This can be anything. Basically the alias is your brand.

      Regards
      Andy

  1. When I try “APK Alignment” I get “Verification FAILED” error.
    1. Have you signed the apk first? I never have got this issue on my end. Can you tell the steps you did?

      Regards
      Andy

  2. Thank you so much for this tool Andy !
    No more awful command lines to remember 🙂

    Cheers,

    Julien

    1. Thank you 🙂 but’s actually not my tool. I just made a Tutorial for it. The author is mentioned above on the guide.

      Regards
      Andy

      1. Thanks Hai Bison for the tool and thanks you for the tutorial then : )
  3. hi
    i am unable to sign my apk file
    when i click sign it gives the error “unable to open jar file”
  4. hi
    what error?
    Error while signing file. Details:
    jarsigner: unable to sign jar: java.util.ZipException: invalid intry compressed size (expected 3696 but got 3762 bytes)
      1. Hi Matt,

        have you tried to install the “debug” signed apk? Does this version work on your phone?

        Regards
        Andy

    1. i have same error then i realize my app has debug signed by android studio. deleting cert.rsa, cert.sf, manifest.mf files in the apk solved my problem. i hope it helps
  5. hi , when i try Create a keystore file i get an error ” java IOEXEPTION :error keytool filenotfoundexeption c:\program file\test.keystore (accés refusé)
    1. Hi,

      It seems that you have no access to the path. Try to run the tool as admin or try another path.

      Regards
      Andy

  6. Hi,

    After sign and align the built, we get the following error message, when we try to upload the apk file into the google play store:

    “Failed to run aapt dump badging:
    W/ResourceType(292349): Bad resource table: header size 0x2 or total size 0x104c is not on an integer boundary
    ERROR: dump failed because the resource table is invalid/corrupt.”

  7. when I click create keystore, it got error message java.lang 6
    please help, thanks
  8. Hi
    signed and aligned suceessfully .installed in the device also sucess . when open the app it says the app unfortunately stopped pls help
    1. Hi,
      This has basically nothing do to with the signing process. If your app crashes on startup, it might be an issue in your code / project.

      Regards
      Andy

  9. hi when i want sign my apk with my new keystore it shows me this error
    jarsigner : key associated with apk not a private key
  10. Hii I’m Deepak
    After sign and align the built, we get the following error message, when we try to upload the apk file into the google play store:

    Failed to run aapt dump badging:
    W/ResourceType(211608): Bad resource table: header size 0x116f or total size 0xa54087d2 is larger than data size 0xe1040
    ERROR: dump failed because the resource table is invalid/corrupt

  11. Please solition ????
    jarsigner error: java.lang.RuntimeException : Keystore load : keystore was tampered with , or Password was incorrect
    1. Hi,

      The error message says exactly what your issue is. You have entered an incorrect password for your keystore file.

      Regards
      Andy

  12. Hello i have a poblem , when i download the file i dont find the File jar i find alot of files like asstes and group and Meta-INF ! please i need a slove to my problem ! i have all the java files !
  13. I am having exactly the same problema tan Alex. Any help please?
  14. Hi,
    Can I used certificate which is store in HSM to sign my APK?
  15. Hello, I need help. I signed and aligned successfully, but when I verify i got an “VERIFICATION ERROR” also when I try it on phone, i got “PARSE ERROR, There is a problem parsing the package” Please help. Thankyou

Add A Comment