如何知道文件 .apk 用于密钥库进行签名? [英] How to know file .apk use to the keystore to sign?
问题描述
我有一个密钥库和一个 apk.是否有工具或方法来检查从此密钥库签名的文件 apk?我使用 Eclipse.请有人帮助我.非常感谢
I have a keystore and a apk. is there a tool or a method to check file apk, signed from this keystore? I use Eclipse. Someome help me please. Thanks so much
推荐答案
使用 jarsigner 工具:
Use jarsigner tool:
jarsigner -verify -verbose -keystore keystore_file apk_file.apk
这个命令给出如下输出:
This command gives output like this:
smk 22401 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/about_cover.png
smk 1206 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/add_normal.png
smk 1430 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/app_icon.png
smk 133 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/background_next_section.png
smk 22401 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/about_cover.png
smk 1206 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/add_normal.png
smk 1430 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/app_icon.png
smk 133 Tue Aug 30 10:20:52 SAMST 2011 res/drawable/background_next_section.png
s = 签名已验证
m = 条目在清单中列出
k = 在密钥库中至少找到一个证书
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
这篇关于如何知道文件 .apk 用于密钥库进行签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!