Android Combat Tips 13: APK signature

Source: Internet
Author: User

The Android program must have a signature to run. Usually we use the debug version is the debug signature, without our concern. When we publish the program ourselves, we need our own signature. In fact, no matter which IDE is used, the Keytool and Jarsigner are the only two Java tools to complete the signature task (in the Bin directory of the JDK). Where Keytool is used to generate KeyStore (certificates), Jarsigner is used to make signatures.
Keytool usage examples are as follows:

-genkey-alias-keyalg-keysize1024-keypass-validity365-keystore lincapp.-storepass android

Jarsigner usage examples are as follows:

jarsigner -keystore lincapp.keystore -signedjar lincapp_signed.apk lincapp.apk lincapp

In fact, it is more convenient for us to directly use the signature features provided by the IDE.
Eclipse:
Project Right-click->android tools->export singed application package, simply fill in the information. Note to remember the password.

Android Studio:
Build->generate signed APK, the process is similar to eclipse.

Reference:
Http://www.cnblogs.com/ok-lanyan/archive/2013/04/02/2995462.html

Android Combat Tips 13: APK signature

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.