Android-generated system signature KeyStore

Source: Internet
Author: User

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

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.