Re-signing the Android APK

Source: Internet
Author: User

Note: How to do the Android APK signature, not the main content of this article, if you need to understand the signing of the first step, you can refer to my following this article.

Address: http://www.cnblogs.com/LuQingshang/p/3926009.html

Requirement Description: In the case of using Intellij idea, do not want to create a signed apk with the function provided by the editor, because it is troublesome to fill in the name of the APK every time.

Solution: After each compilation, idea will generate two apk files in the Out directory, and the two apk files can be installed and executed, so choose one and re-sign the operation. I chose this apk with no unaligned. You also need to manually invoke the Zipalign tool to perform the APK optimization process because of the choice of xxx.unaligned.apk. But our rel.sh script has been optimized for the function, but I am too lazy to change.

1. The apk in the Out directory is as shown:

2. Using the compression tool to open myapp.apk, you will see a Meta-inf folder inside, which is the signature related information, as shown in:

3. Delete the Meta-inf folder, then re-sign, after the signature succeeds, run the compression alignment, perform the rel.sh script processing, as follows:

4. Complete the release release.

This blog is OK, there is no nonsense, hehe. The TV show is going to be updated again, watch television.

Re-signing the Android 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.