How Android Re-signs apk

Source: Internet
Author: User
1. Open the APK file with the compression software, delete the cert.sf and cert.rsa two files in the Meta-inf directory.

2. Use the target system's platform key to re-sign the apk file.

2.1 Key file, the location in the code directory is build\target\product\security under PLATFORM.PK8 and Platform.x509.pem two files.

2.2 Using the system-provided signapk tool to sign, signapk source code is under "build\tools\signapk", in the Out\host\linux-x86\framework directory to obtain the generated Signapk.jar

3. Usage is "Java-jar signapk.jar platform.x509.pem platform.pk8 xxxx.apk outxxxx.apk", it is best to use absolute path to prevent the file name from being found.

How Android Re-signs apk

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.