使用adb 命令行对app进行重新签名

时间:2021-04-25 15:25:17

对app进行从新签名.

jarsigner -verbose -keystore keystore.jks -signedjar signed.apk unsigned.apk alias_name

keystore.jks: key的路径及名称.

signed.apk : 未签名文件路径及.

unsigned.apk: 签名以后生成的app名称.

alias_name :签名的别称.

如果出现警告

jarsigner -verbose  -digestalg SHA1 -sigalg MD5withRSA -tsa https://timestamp.geotrust.com/tsa  -keysto
re keystore.jks -signedjar C:\Users\Mr_yang\Desktop\ceshi\tap_sign.apk C:\Users\Mr_yang\Desktop\ceshi\tap_unsign.apk alias_name

查看是否签名成功

C:\Users\Mr_yang>jarsigner -verify C:\Users\Mr_yang\Desktop\tap_unsign.apk