Teaches you how to use the platform key to sign the APK _android

Source: Internet
Author: User

1. Enter <android_source_path>/build/target/product/security to locate the "platform.pk8" and "Platform.x509.pem" system keys.

2. Enter <android_source_path>/build/tools/signapk to find Signapk.java, run Javac compiled into Signapk.class

3. Execute command Java com.android.signapk.SignApk platform.x509.pem platform.pk8 input.apk output.apk

OK, you have completed the INPUT.APK signature and the output file is output.apk.

In addition, command Java COM.ANDROID.SIGNAPK.SIGNAPK platform.x509.pem platform.pk8 input.apk output.apk

Not only can the APK file be re-signed, but all zip files can be re-signed, including ROM files.

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.