Sign Android App

Source: Internet
Author: User

Android requires signing the app as a product release (with the same package name, the post-install app overwrites the previously installed app)

Signature function: 1, determine the identity of the publisher. 2, ensure the integrity of the application.

Note: During the development and commissioning phase of the app, Eclipse's ADT plugin or ant tool automatically generates a debug certificate to sign the Android app, and if an Android app is officially released, the application must be signed with the appropriate digital certificate, You cannot publish using the ADT plugin or the debug certificate generated by the ANT tool.!!!!!?

1. Sign an Android app in eclipse

A. Right click on Android project, Android Tools->export signed application package ...

b, go to the next window, select Next, if there is no digital certificate, select Create New KeyStore, and then choose Storage Path strength and password.

C, fill in the details of the digital certificate. Click Next to specify the storage path for the APK installation package after the signature is generated. Finish Eclipse generates a signed APK installation package under the specified path.

Use existing digital certificates in the following ways

A, select Use existing KeyStore, select the path to the digital certificate, and enter the password at the time of creation.

b, Next, select the signature created by the alias named Gary Key, and enter the password that can be next,finish.

To sign an APK package with a command

A, create a keystore library. The Keytool.exe tool to generate digital certificates is available under the bin subdirectory under the installation directory of the JDK. In the Command Line window, enter:

Keytool-genkeypair-alias gary.keystore-keyalg rsa-validity 400-keystore gary.keystore

Description

-genkeypair specifying the generation of digital certificates

-ALIAS Specifies the alias that generates the digital certificate

-KEYALG Specifies the algorithm that generates the digital certificate, using the RSA algorithm

-validity Specifies the validity period of the generated digital certificate.

-keystore: Specifies the storage path of the generated digital certificate.

Sign Android App

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.