JDK 1.8 to APK signature (Android)

Source: Internet
Author: User

One, generate the. KeyStore signature File

DOS access to the JDK Bin directory

Run the following command:

Keytool-genkey-alias android-keyalg rsa-validity 20000-keystore android.keystore

Process, is there any certainty? Fill in Y, enter
(-validity 20000 represents the number of days of validity), and when the command is completed, the Android.keystore is generated in the bin directory

To view information about a signature:

Keytool-list-keystore "Android.keystore"  Enter the KeyStore password you set

Second, use the. KeyStore to sign the APK

"Prerequisite" DOS entry into the JDK's Bin directory

JDK1.8 command: (JDK1.8 algorithm has changed, need to specify-SIGALG and-digestalg)

Jarsigner-verbose-sigalg sha1withrsa-digestalg sha1-keystore android.keystore my_apk_sign.apk my_apk_unsign.apk Alias_name

JDK1.6 command:

Jarsigner-verbose-keystore Android.keystore my_apk_sign.apk my_apk_unsign.apk alias_name

You can also specify some of the remaining options, such as-storepass ...

Such as:

Jarsigner.exe-verbose-keystore d:\aa\debug.keystore-storepass Android-signedjar d:\aa\gblnn_signed.apk d:\aa\gblnn _unsign.apk Androiddebugkey

JDK 1.8 to APK signature (Android)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.