标签:rm -rf 命令 window inf win space nts and lin
一. keytool -list -printcert -jarfile "%filename%"
二. 非常low方法:下载的应用安装能成功覆盖原应用则签名一致
三.
四.
FILE="yourapp.apk"
cert_XSA=`jar tf $FILE | grep SA`
jar xf $FILE $cert_XSA
keytool -printcert -file $cert_XSA | grep MD5 > "$FILE.certMD5"
FILE1="yourapp1.apk"
FILE2="yourapp2.apk"
# ...
# ... 经过上述步骤得到$FILE1.certMD5和$FILE2.certMD5
# ...
certMD5_diff=`diff $FILE1.certMD5 $FILE2.certMD5`
if [ "$certMD5_diff" = "" ]; then
echo "$FILE1.certMD5 == $FILE2.certMD5"
fi
标签:rm -rf 命令 window inf win space nts and lin
原文地址:http://www.cnblogs.com/wxmdevelop/p/6135287.html