开发者

What does PackageInfo.signatures return?

开发者 https://www.devze.com 2023-02-22 16:14 出处:网络
Why there are multiple signatures in this value? Are these values the public key of the package? Can I uniquely i开发者_StackOverflowdentify a package using this signature instead of reading the file

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

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


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

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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号