android sign签名

主要是解决汉化(反编译)最后一步签名的问题,网上的sign.bat 不是很好用,没有解释清楚

汉化方法参考: http://www.7xz.com/topic/3065

 

下载 sign包,解压后内容如下:

libhgl.so
README
Sign.bat
signapk.jar
testkey.pk8
testkey.x509.pem

修改 sign.bat 文件,内容如下,只要2行即可,多的删除掉.测试OK

@ECHO OFF

java -jar signapk.jar testkey.x509.pem testkey.pk8 %1 %2

 

1.把未签名的apk 复制到 sign.bat 目录下。

2.打开cmd, 进入到 sign.bat 目录下, 输入命令:

sign out.apk out_signed.apk

   out.apk 即为没签名的apk,    out_signed.apk 为签名的

 

 

@ECHO OFF
Echo Auto-sign Created By Dave Da illest 1
Echo out.apk is now being signed and will be renamed to out_signed.apk
Echo Please prepare out.apk to this directory ...
Echo Press Enter to next step...
pause > nul
rem java -jar signapk.jar testkey.x509.pem testkey.pk8 out.apk out_signed.apk
java -jar signapk.jar testkey.x509.pem testkey.pk8 %1 %2 
Echo Signing Complete 
Pause > nul

你可能感兴趣的:(android)