Modify the keystore password, alias, and alias password of the Android signature certificate,

Source: Internet
Author: User

Modify the keystore password, alias, and alias password of the Android signature certificate,

Eclipse ADT Custom debug keystore Custom debugging certificate, Android Application Development access to various sdks will find, many sdks need to be identified by the package name and keystore fingerprint hash (Baidu map SDK, or SDK, Sina Weibo sdk ), in this way, if you use the default automatically generated debug keystore, it will cause some trouble for development and debugging. This is because the signature information generated by the signed apk is required for these open platforms, and then the last key is applied. In this case, you can modify the official release keystore to generate a temporary custom debugging certificate that complies with the rules for development, which is much more convenient. Otherwise, you will not be able to debug it in real time, apk is too troublesome every time. The specific method is as follows:

Use the cmd command to locate the C: \ Program Files (x86) \ Java \ jdk1.8.0 _ 25 \ bin> directory file:

It's right to find keytool.exe. It is used for operation.

1. First of all, of course, copy a formal certificate as a temporary debugging certificate to be modified.

2. Modify the keystore PASSWORD Command (keytool is the command line tool with JDK ):

Keytool-storepasswd-keystore my. keystore

My. keystore is a copied Certificate file. After the file is executed, a prompt is displayed, indicating that the current password of the certificate is entered, the new password, and the new password are confirmed again. The previously signed certificate password is definitely not android. In this step, you need to change the password to android.

3. Modify the alias (alias) of the keystore ):

Keytool-changealias-keystore my. keystore-alias my_name_key-destalias aliasdebugkey

In this step, my_nam_keye is the current alias (alias) in the certificate, and-destalias specifies the alias to be modified. Here we will change it to aliasdebugkey according to the rules! This command prompts you to enter the keystore password and the current alias password.

4. Modify the password of alias (alias:

Keytool-keypasswd-keystore my. keystore-alias aliasdebugkey

After performing this step, you will be prompted to enter the keystore password and the alias password, and then enter the new alias password. Similarly, follow the rules and change it to android!

After the preceding operations are executed. the keystore is the debug keystore that complies with the rules, and then select the custom debug keystore In the ADT settings of Eclipse, you can use this signature certificate to debug the apk.

 

The above is to change the signature certificate password (changed to android), then change the name of the signature alias, and finally change the signature certificate alias password (also changed to 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.