if the parser found inconsistent certificates on the files in the .apk.104
當靜默安裝提示104時,是說升級的APK 和本地已經安裝的APK 簽名不一致,所以無法升級。
經百度,找到知乎同學@陳子騰的回答,找到了問題所在。
?
可以比對apk簽名的fingerprint。
假定安裝了JDK,如果想查HelloWorld.apk所使用的簽名的fingerprint,可以這樣做:
1. 查找apk里的rsa文件
(Windows)
> jar tf HelloWorld.apk |findstr RSA
(Linux)
$ jar tf HelloWorld.apk |grep RSA
META-INF/CERT.RSA
2. 從apk中解壓rsa文件
jar xf HelloWorld.apk META-INF/CERT.RSA
3. 獲取簽名的fingerprints
keytool -printcert -file META-INF/CERT.RSA
...
Certificate fingerprints:
MD5: BC:6D:BD:6E:49:69:2A:57:A8:B8:28:89:04:3B:93:A8
SHA1: 0D:DF:76:F4:85:96:DF:17:C2:68:1D:3D:FF:9B:0F:D2:A1:CF:14:60
Signature algorithm name: SHA1withRSA
Version: 3
...
4. 清理工作,刪除rsa文件
(Windows)
rmdir /S /Q META-INF
(Linux)
rm -rf META-INF
如果你想知道兩個apk是不是用的同一個簽名,那比一下它們簽名的MD5碼(或SHA1碼)是不是一樣就行了。
?
http://www.zhihu.com/question/20749413/answer/16645210
轉載于:https://www.cnblogs.com/jiuzhexingfu/p/4147199.html
總結
以上是生活随笔為你收集整理的if the parser found inconsistent certificates on the files in the .apk.104的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [Spring MVC] - JSP +
- 下一篇: 网络打印机的配置