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”
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
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
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
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