Android Program Packaging and signing

Source: Internet
Author: User

Why do you want to sign???

With so many people developing Android, it's entirely possible that we all put the class name, the package name, in the same name, how do you differentiate it? Signature is a distinguishing function.

Since the developer may be confused by using the same package name to replace the installed program, the signature can guarantee a considerable name, but the signature of different packages is not replaced.

APK If you use a key signature, a file signed by another key when it is published will not install or overwrite the old version, preventing your installed app from being overwritten or replaced by a malicious third party.

This signature is actually a developer's identity. When something happens in a transaction, a signature can prevent it from happening.

Signature Considerations
    • All Android apps must have digital signatures, no applications that do not have digital signatures, including those running on the emulator. Android does not install apps without a digital certificate.

    • Signed digital certificates do not require authority to authenticate, is the developer's own production of digital certificates, known as self-signed.

    • When you publish an Android app, you must use a digital certificate generated by a suitable private key to sign the program and not be published using the ADT plugin or the debug certificate generated by the Ant tool.

    • Digital certificates are valid, and Android only checks the validity of the certificate when the application is installed. If the program is already installed on the system, it does not affect the normal functionality of the program, even if the certificate expires.

method of Signing

1: Open eclipse-> Select the item you want to sign, right-click->android tools->export signed application package pops up the following window

650) this.width=650; "title=" image "src=" http://images.cnblogs.com/cnblogs_com/timeng/201202/201202171134346227. PNG "alt=" image "Width=" 456 "height=" 310 "border=" 0 "style=" margin:0px;padding:0px;border:0px; "/>

2: Select the item you want to sign, then next,

650) this.width=650; "title=" image "src=" http://images.cnblogs.com/cnblogs_com/timeng/201202/201202171134343261. PNG "alt=" image "Width=" 460 "height=" 284 "border=" 0 "style=" margin:0px;padding:0px;border:0px; "/>

Because we are the first signature, there is no signature certificate, so first create new KeyStore, and then no longer created, directly select the existing certificate.

Select the location where the certificate is saved, fill in the password, and then next,

3:

650) this.width=650; "title=" image "src=" http://images.cnblogs.com/cnblogs_com/timeng/201202/201202171134357472. PNG "alt=" image "Width=" 459 "height=" 275 "border=" 0 "style=" margin:0px;padding:0px;border:0px; "/>

Fill in the Visa information, including: Alias, password, expiration date, name, organization, organization name, city, province, country, etc., then finish.

4: Finally pop up a window and select the location where you want to save the APK package.

After clicking Finish, wait a moment to build your own Android installation package.


Android Program Packaging and signing

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.