Generate a signed digital certificate by yourself
I. Reasons
1. If the apk is published online, the default debug. keystore signature has security issues. Therefore, you must write your own signature.
Ii. Functions of signatures
Make sure that this apk is mine. Other applications with the same package name cannot be replaced if the signatures are different.
Iii. Methods
Method 1: Use the keytool.exe tool in JDK.
Use keytool.exe in JDK
My directory is:
E: \ JAVA \ jdk \ bin \ keytool.exe
Procedure
1. Run keytool on the windows Command Line, provided that jdk has been configured
2. View production key pair help
3. Generate digital signatures and certificates
4. OK. production is ready.
Method 2: Use eclipse's Project Export Function
Procedure
1. Right-click the blank area of the project and click "export ".
2. Export the android Project
3. Select a project
4. Create a New keystore
5. Enter key creation
6. Sign the android Project
7. OK. The signature file and the signed apk are ready.
Using jarsigner.exe in JDK to sign unsigned APK
My directory:
E: \ JAVA \ jdk \ bin \ jarsigner.exe
Steps:
1. generate an unsigned APK
2. Unsigned APK
3rd use jarsigner.exe in JDK to sign unsigned APK
4. Signature successful