1、反編譯apk
apktool d qq.apk qq2、可以修改qq檔案夾中的圖片檔案資訊,重新打包成apk檔案 apktool b qq qq.apk3、進行簽名(需要自己打一個認證,可以利用jdk內建的keytool工具) apktool.jar apksigner.bat apktool.bat jarsigner.exe
apksigner.bat檔案內容:
@rem ### apksigner.bat
@rem http://www.cnblogs.com/qianxudetianxia/archive/2011/04/09/2010468.html Android學習系列(1)--為App簽名(為apk簽名)
@rem http://www.blogjava.net/zhaojianhua/archive/2011/06/23/352887.html Android APK 簽名
@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 ### %APK%.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%