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