Android decompilation and packaging Signature

Source: Internet
Author: User

Manual packaging process:

1. decompile APK

Apktool D qq.apk qq2. You can modify the image file information in the QQ folder and package it into an APK file. apktool B QQ qq.apk 3. Sign the file (you need to create a certificate by yourself, you can use the built-in JDK keytool) apktool. jar apksigner. bat apktool. bat jarsigner.exe
Apksigner. BAT file content:

@ REM ### apksigner. bat

@ REM http://www.cnblogs.com/qianxudetianxia/archive/2011/04/09/2010468.html Android Learning Series (1) -- sign the app (for APK signature)

@ REM http://www.blogjava.net/zhaojianhua/archive/2011/06/23/352887.html Android APK Signature


@ Set jks = Android. keystore

@ Set Pwd = 123456

@ Set APP = QQ

@ Set apk0=%app%_unsigner.apk

@ Set out1=%app%_signed.apk

@ Set out2=%app%_signed_final.apk


@ REM type apksigner.input.txt | keytool-genkey-alias % jks %-keystore % jks %-storepass % PWD %-keypass % PWD %-keyalg RSA-validity 20000


@ If exist % out1 % del % out1 %

@ If exist % out2 % del % out2 %

@ Echo ##########################

@ Echo ### signer.0 ### paiapkapps.apk

@ Echo ##########################

@ Jarsigner.exe-verbose-keystore % jks %-storepass % PWD %-keypass % PWD %-signedjar % out1 % apk0 % jks %

@ Jarsigner.exe-verify % out1 %

@ Echo ##########################

@ Echo ### signer.1 ### % out1 %

@ Echo ##########################

@ D: \ Android-SDK-Windows \ tools \ zipalign.exe-V 4% out1 % out2 %

@ Jarsigner.exe-verify % out2 %

@ Echo ##########################

@ Echo ### signer.2 ### % out2 %

@ Echo ###########################@ pause
Use auto-sign tool to Package 1. Use apktool to unpackage, modify the items in the tool, apktool D qq.apk QQ 2. Repackage (unsigned) apktool. B QQ qq.apk 3. Use the auto-sign tool to sign the file (only the ZIP file is identified, and the file generated after the signature is also in ZIP format, which can be changed to APK directly)
Related Article

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.