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 ).