Android System Signature

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.