banner



What Is Key Align In Android App Sign

APK Signer is deprecated. The tutorial will be still available, however the download is no longer possible. Please use Android Studio instead.

About

The APK Signer Tool v2 allows you to sign and align your Android application using the "apksigner" included in the Android Build Tools, managing your keystore files and certificates and so on.

Info

The tool uses the .Net runtime by Microsoft. Make sure that you have the runtime installed on your computer.

Download

APK Signer Tool (v2)

Download is no longer available, please use Android Studio instead…

Android Studio

Android Studio offers all tools needed to sign and align your next Android project. Please find the download link below.

JDK

Also to get some features working, you need to install the Java Developement Kit (JDK) on your local machine. Please find the download link below.

Documentation

Thank you for downloading our APK Signer Tool v2! Please read the following documentaton carefully. If you got any errors, please check the Error Handling section below. If your error is not covered there, please submit a support request either via our Ticket center or our forum.

[creativ_button url="https://shatter-box.com/submit-ticket/" icon="edit" label="Submit a Ticket" colour="green" colour_custom="" size="medium" edge="rounded" target="_blank"] or  [creativ_button url="https://shatter-box.com/forums/forum/94-support-bugs/" icon="user" label="Visit our Forum" colour="dark-gray" colour_custom="" size="medium" edge="rounded" target="_blank"]

Select Pathes

To be able to use all functions of the APK Signer Tool you need to specify the path to your your Java JDK installation and to your Android Build Tools installation.

To do so, just click the corresponding button to browse the installation folder.

If the path is valid, the input form will be set to green.

Important

Please make sure that you have installed the Android Build Tools (via Android Studio) and the Java Developement Kit (JDK) on your local machine first.

Create a KeyStore File

The tool allows you to create your own Keystore file (.jks / .keystore) if you have none. To do so, please select the Keyfile Generator (JDK) tab first.

Select the export path for your KeyStore file with the Browse button. Give it a proper name and click Save.

KeyStoreType

You either can save the key as .jks or .keystore file. Both are working.

Then, please enter all needed information into the input forms. If your input is valid, the input form becomes green.

Please note...

The password must be at least 6 chars long!

When you feel ready, click the "Generate Key File" button below. When the key has been created successfully, you will get a notification.

Align & Sign

If you want to sign or / and align an application, select the Align & Sign tab first.

Here you either can sign or align your application, or do both in one step.

Important

Due to the fact that our tool is using the "apksigner.exe", you have to align your APK before you sign it!

To align and sign your application, please select your APK file first. To do so, use the Browse button.

Please make sure to select an unsigned and un-aligned APK file!

In the next step, select your keystore file. To do so, please click the Browse button.

My Keys

This tool allows you to save your keys on your local machine. So you only need to select your key at the dropdown to use it. Learn more at the "My Keys" section of this guide.

Please note...

The tool automatically checks the key password. If it's valid, the alias gets fetched automatically. Otherwise you will get a notification.

If all information are provided, click the Align and Sign button. Then, your APK will be aligned and signed automatically.

When all went good, you will get a notification. You also can check the consol on the right hand side.

My Keys

Save Key

The tool allows you to save your keys in a collection. To do so, just click the "Save to List" button at the Align and Sign tab.

Important

You must enter all information for your key before you can save it to your list!

Manage Keys

To use a saved key, just select it at the dropdown menu at the Align and Sign tab. All needed information will be fetched from the saved key, like the alias, the password and the path.

Important

The key path must be valid! Do not move or delete your key on the saved location!

You find an overview of all your saved keys at the My Keys tab. You easily can delete a key entry from the list by performing a right mouse click on it and select Delete…

Important

This will not delete your keystore file on your local drive. Only the entry in the tool will be removed.

Event Monitor

The event monitor shows the application log. If you have any troubles, please check the event monitor first.

You can clear the log by clicking the Clear Logs button.

Error Handling

The tool has some defined error codes. Those  codes make it easier to find the problem. Please, see the following error codes and their description.

0x0001 – Android Build Tools Path

If you get the error code 0x0001 you have selected an invalid path for the Android Build Tools. Please make sure to select the "build-tools" directory. The application will fetch automatically the highest available version of it.

Information

You need to install "Android Studio" to get the build tools.

Please keep in mind that you need to install Android Studio to get the build tools installed on your computer. Afterwards you can find the build tools here.

[code]C:\Users\USER_NAME\AppData\Local\Android\Sdk\build-tools\[/code]

0x0002 – Outdated Build Tools

If you get this error, please go to Android Studio and update your build tools SDK to the latest version.

To do this, please proceed following steps:

  • Open Android Studio (open a project, if you have none, make a new one)
  • Go to "Tools" -> "SDK Manager"

  • Then select the "SDK Tools" tab, select the latest version of the "Android SDK Build-Tools" and click "Apply" to install / update it

0x0003 – Wrong JDK path

If you get this error code, you have selected the wrong JDK installation (maybe the JRE or a subfolder). Please make sure that you select the root folder.

0x0004 – Application not found

If you get this error, please check your pathes for your JDK and Android Build Tools installation. This error says, that either the "apksigner.exe" (Android Build Tools) or the "keytool.exe" (JDK) cannot be found.

0x0005 – Probelms to clear log

If you get this error code, the tool has problems to clear the log file. This can be caused if you have the log file open with another application. Try to close it and try again to clear the log.

Translation

With the latest update the tool has become localised. For now, it's available in following languages.

  • English (default)
  • German

If you want to provide any further translation, please let me know in the forum!

Known Issues

Please find a list of the known issues below. Those issues will be fixed with the next update.

Space in path

Thanks to Martin for reporting this issue. It seems that the tool has issues when a space is in the path / folder name. Till this is fixed, please replace the space with another char. Should be fixed in version 2.0.2-beta.

Bugs & Problems

Please, if you are facing any issues, open either a ticket or a forum post. If you just leave a bad feedback to this article, I have no chance to contact you for further details!

[creativ_button url="https://shatter-box.com/submit-ticket/" icon="edit" label="Submit a Ticket" colour="green" colour_custom="" size="medium" edge="rounded" target="_blank"] or  [creativ_button url="https://shatter-box.com/forums/forum/94-support-bugs/" icon="user" label="Visit our Forum" colour="dark-gray" colour_custom="" size="medium" edge="rounded" target="_blank"]

Changelog

v2.0.6-beta – 2020-03-24

  • Fix: Updated build-tool version checker to also work with the new version strings including "-rc1" and so on.

v2.0.5-beta – 2019-09-15

  • Fix: Changed "apksinger.exe" to "apksinger.bat" in error dialog.
  • Fix: Field validation for the Country has been set down from 3 to 2 chars minimum.

v2.0.4-beta – 2018-12-25

  • Fix: Fixed auto detection of the alias name while using a ".jks" keystore file instead of a ".keystore" file.

v2.0.3-beta – 2018-07-01

  • Improvement: Minior visual adjustments
  • Improvement: Now if you align and sign the APK separately the APK path will be updated automatically to the aligned APK.
  • Fix: Fixed issue that the log file couldn't be written (was blocked by an unclosed reader of the tool).
  • New: Localisation added. For now the tool is available in English and German. If you want to help translating the tool, please let me know in the forum! Thank you.

v2.0.2-beta – 2018-05-06

  • Improvement: Dialog asking to select your JDK & Android Build Tools Path now will be shown after the Tool has been loaded completely
  • Improvement: Adjusted some error logs to be more specific
  • Fix: Typos fixed
  • Fix: Tool didn't work if a space was in the APK or Keystore path
  • New: Added EventLog viewer (shows logs from the log file directly in the tool)
  • New: Added button to clear log

v2.0.1-beta – 2018-04-18

  • Hotfix: Avast thought file includes male ware. Added some publisher information to the tool. Now it looks good.

v2.0.0-beta – 2018-04-18

  • First relase

What Is Key Align In Android App Sign

Source: https://shatter-box.com/knowledgebase/android-apk-signing-tool-v2-apksigner/

Posted by: hibbittsnuthat.blogspot.com

0 Response to "What Is Key Align In Android App Sign"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel