When it comes to developing Android products, it is often necessary to use system signatures (such as when using uid,apk upgrades), so Android provides us with tools to customize signature files. The process is documented here:
1, enter the/android_src/development/tools directory.
2, use the Make_key tool to generate signature files (do not add passwords, otherwise compile the source of the time is very troublesome).
sh make_key xxxkey '/c=cn/st=zhejiang/l=hangzhou/o=ronbell/ou=srd/cn=derrick/[email protected] '
3, Android source directory Development/tools take xxxkey.pk8 Xxxkey.x509.pem into a directory.
4, converts the private key in PKCS8 format to PKCS12 format.
openssl pkcs8-in xxxkey.pk8-inform der-outform pem-out xxxkey.priv.pem-nocrypt
&nb sp; 5, convert X509.PEM public key to PKCS12 format, enter create password xxxxxx.
openssl pkcs12-export-in xxxkey.x509.pem-inkey xxxkey.priv.pem-out xxxkey.pk12-name ronbe Llkeystory
6, generate. KeyStore.
keytool-importkeystore-deststorepass xxxxxx-destkeypass xxxxxx-destkeystore Ronbell.keystore-srckeystore xxxkey.pk12-srcstoretype pkcs12-srcstorepass android-alias xxxkeystory
Android System Signature