Eclipse Android Settings and modify the build apk signature file

Source: Internet
Author: User

http://hold-on.iteye.com/blog/2064642---Original eclipse android settings and modify the generated apk signature file Blog Category:
    • Android
Android Eclipse settings and modify the build apk signature file 1, issue: Usually when using Eclipse for Android project development, because each project group has its own signature, but the default eclipse The ADT Debug run uses a temporarily generated debug dedicated certificate, which defaults to C:\Users\XXX\.android\debug.keystore. So every time the debugger has to use ADT's export signed application package to play with the formally signed packages, or to write another re-signing script, it is more troublesome. ADT was later found to allow custom debugging with a certificate, in Window->preferences->android->build->custom debug KeyStore here, after trying to select the official certificate after the prompt: " Keystore was tampered with, or password was incorrect "In fact, this interface does not provide input Keystore password, choose aliases and so on, so it is very strange, check the official documents found, Even custom debug certificates require the same password, alias alias, and alias password as the default certificate. The default certificate information that is mentioned in the documentation is as follows:

Keystore Name: "Debug.keystore" Keystore Password: "Android" key alias: "Androiddebugkey" Key password: "Android" CN: "cn= Android debug,o=android,c=us "Follow this rule and you can use a custom debug certificate." But think about the feeling that this function is very chicken, I hope the future version of ADT will improve it. Reference: http://blog.k-res.net/archives/1229.html: Follow the Android default certificate specification to change the password, alias and alias password of the signed file for the project. Then set "Custom Debug KeyStore" to the modified signature file mode:

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

2. Modify the command for the KeyStore password (keytool is the command-line tool for the JDK):

Keytool-storepasswd-keystore My.keystore

Where My.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 the alias of KeyStore:

Keytool-changealias-keystore My.keystore-alias My_name-destalias Androiddebugkey

In this step, My_name is the certificate in the current Alias,-destalias specified is to be modified to the 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 Alias's password:

Keytool-keypasswd-keystore My.keystore-alias Androiddebugkey

After this step, you will be prompted to enter the KeyStore password, alias password, and then prompt for a new alias password, similarly, according to the rules, change to android!

Reference: http://blog.k-res.net/archives/1671.html

Eclipse Android Settings and modify the build apk 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.