Freigeben über


PackageInfo.Signatures Property

Definition

Array of all signatures read from the package file.

[Android.Runtime.Register("signatures")]
public System.Collections.Generic.IList<Android.Content.PM.Signature>? Signatures { get; set; }
[<Android.Runtime.Register("signatures")>]
member this.Signatures : System.Collections.Generic.IList<Android.Content.PM.Signature> with get, set

Property Value

Attributes

Remarks

Array of all signatures read from the package file. This is only filled in if the flag PackageManager#GET_SIGNATURES was set. A package must be signed with at least one certificate which is at position zero. The package can be signed with additional certificates which appear as subsequent entries.

<strong>Note:</strong> Signature ordering is not guaranteed to be stable which means that a package signed with certificates A and B is equivalent to being signed with certificates B and A. This means that in case multiple signatures are reported you cannot assume the one at the first position to be the same across updates.

<strong>Deprecated</strong> This has been replaced by the PackageInfo#signingInfo field, which takes into account signing certificate rotation. For backwards compatibility in the event of signing certificate rotation, this will return the oldest reported signing certificate, so that an application will appear to callers as though no rotation occurred.

This member is deprecated. use signingInfo instead

Java documentation for android.content.pm.PackageInfo.signatures.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to