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)