0%

应用重签名工具re-sign.jar使用

下载 re-sign.jar

下载地址

应用 re-sign.jar

把 re-sign.jar 放到 .android 文件夹下

1
2
3
4
➜  .android ll
total 216
-rw-r--r-- 1 taoyi staff 2.1K 7 5 2016 debug.keystore
-rw-r--r--@ 1 taoyi staff 47K 3 4 22:35 re-sign.jar

运行 re-sign.jar

1
2
cd .android
java -jar re-sign.jar

把应用拖放到窗口进行重签名

重签名成功

1
2
3
4
5
6
7
8
9
10
11
➜  .android java -jar re-sign.jar                   
Running jarsigner
Command line: /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/jarsigner -keystore /Users/taoyi/.android/debug.keystore -storepass android -keypass android /var/folders/6c/t0zm0zy90p12fjr77h9qtktr0000gp/T/resigner3271202971406261445.apk androiddebugkey
jarsigner finished with following output:
jar 已签名。

警告:
未提供 -tsa 或 -tsacert, 此 jar 没有时间戳。如果没有时间戳, 则在签名者证书的到期日期 (2046-06-28) 或以后的任何撤销日期之后, 用户可能无法验证此 jar。
Running zipalign
Command line: /opt/android-sdk-macosx/tools/zipalign -f 4 /var/folders/6c/t0zm0zy90p12fjr77h9qtktr0000gp/T/resigner3271202971406261445.apk /Users/taoyi/git_projects/dfcAppium/res/app/android/fengche_debug.apk
zipalign finished with following output: