The application wants to obtain the system permission, must have the system signature, but when develops a system, for the system security, often will change the system signature. We all know through PLATFORM.PK8 Platform.x509.pem and Signapk.jar can sign the app, but it's cumbersome, and there's no way to use debugging in Eclipse, and the simplest way is to generate keystore and put it in eclipse so that every time the build APK is automatically signed Name, convenient many.
The following is a brief talk about how to generate a system signature for a corresponding system:
1.android Source directory build\target\product\security take platform.pk8 Platform.x509.pem into a directory
2 OpenSSL pkcs8-in platform.pk8-inform der-outform pem-out shared.priv.pem-nocrypt//Generate SHARED.PRIV.PEM
3 OpenSSL pkcs12-export-in platform.x509.pem-inkey shared.priv.pem-out shared.pk12-name androiddebugkey//Generate PKCS12
Enter Export Password: (Enter password Android, default is Android, as the key you made, enter the corresponding password)
Verifying-enter Export Password: (Enter password Android)
4 Generating Debug.keystore
Keytool-importkeystore-deststorepass Android-destkeypass Android-destkeystore Debug.keystore-srckeystore Shared.pk12-srcstoretype Pkcs12-srcstorepass Android-alias Androiddebugkey
5.eclipse windows/preferences/android/build Set "Custom debug KeyStore" for the KeyStore just generated can be directly used Apk,run debugging can be, There is no need to use Signapk.jar, such as Java-jar Signapk.jar Platform.x509.pem platform.pk8 *.apk **.apk
Android-generated system signature KeyStore