19.Eclipse Modifying the default KeyStore signature file

Source: Internet
Author: User
Tags aliases

Android Development in the APK run need to sign, even if the phone directly run debugging, the APK is signed, the development tool will have the default Debug_keystore

The Eclipse ADT Debug run uses a temporarily generated debug dedicated certificate, which defaults to C:\Users\XXX.android\debug.keystore.

In development, it is inevitable that some features need to be signed before they can be called correctly, but it is obviously impractical and time-consuming to pack the APK for each test.

Eclipse Custom Debug Certificate

Modify the default signature file for Eclipse. Click on the Menu "window", "Preferences" to open the Preferences dialog box.

Select the developer 's official signing certificate in the custom signing certificate and run the project with an error

Keystore was tampered with, or password was incorrect

Cause: Custom Debug certificate, also need to guarantee the same password as the default certificate, aliases alias and alias Password

Default certificate information:

Debug,O=Android,C=US”
    • 1
    • 2
    • 3
    • 4
    • 5

So now we need to modify the official signing certificate , the password of the certificate,alias (aliases) and alias password are changed to the same as the default certificate . Yes, but there's no way I can do this.

1. Copy the official certificate
2. Modify the certificate password
3. Modify aliases (alias)
4. Modify the alias password

1. Copy the official certificate:

Copy an official certificate as a temporary debug certificate to be modified

2. Modify the certificate password

Use CMD to navigate to the folder where the certificate is located, modify the command for the KeyStore password (keytool is the command-line tool for the JDK)

-storepasswd -keystore xx_keystore
    • 1

WhereXx_keystore is a copy of the certificate file, you will be prompted to enter the certificate's current password, and the new password and repeat the new password confirmation. This step requires changing the password to android

3. Modify aliases (alias)

Modify KeyStore alias, command

-changealias -keystore xx_keystore -alias xx_alias -destalias androiddebugkey
    • 1

Wherein,Xx_alias is the certificate in the current Alias,-destalias specified is to be modified as alias, here according to the rules, instead of Androiddebugkey! This command will prompt you to enter the KeyStore password and the current alias password .

4. Modify the alias password

Command

-keypasswd -keystore xx.keystore -alias androiddebugkey
    • 1

After this step, you will be prompted to enter the keystore password ,alias password , and then prompt to enter the new alias password , similarly, according to the rules, instead of Android!

After 4 steps have been completed, the official signature file (copy) has been modified to be the same as the Eclipse default certificate, which can be used as a custom certificate

19.Eclipse Modifying the default KeyStore signature file

Related Article

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.