PackageInfo.signatures返回什么? [英] What does PackageInfo.signatures return?

查看:807
本文介绍了PackageInfo.signatures返回什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么此值中有多个签名?这些值是程序包的公钥吗?

Why there are multiple signatures in this value? Are these values the public key of the package?

我可以使用此签名来唯一标识一个软件包,而不是读取META-INF下的文件,或者在整个APK文件上计算MD5吗?

Can I uniquely identify a package using this signature instead of reading the files under META-INF, or calculating an MD5 on the whole APK file?

推荐答案

根据@hackbod,这是APK签署的所有公共密钥

According to @hackbod, this is all the public keys the APK was signed with

PackageInfo.signatures的名称尽管是它的名称,但是它是与您的应用程序签名的公共密钥.这绝对不会在构建之间发生积极变化.这是该应用程序开发人员的纯粹身份.

Despite its name, the contents of PackageInfo.signatures is the public keys your app is signed with. This absolutely, positively does not change between builds. This is the pure identify of the developer of the app.

参考: https://groups.google.com/d/msg/android-developers/fPtdt6zDzns/MDqie6k7qo0J

这篇关于PackageInfo.signatures返回什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆