PackageManager.GetVerifiedSigningInfo(String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies and returns the app signing information of the file at the given path.
[Android.Runtime.Register("getVerifiedSigningInfo", "(Ljava/lang/String;I)Landroid/content/pm/SigningInfo;", "", ApiSince=36)]
public static Android.Content.PM.SigningInfo GetVerifiedSigningInfo(string path, int minAppSigningSchemeVersion);
[<Android.Runtime.Register("getVerifiedSigningInfo", "(Ljava/lang/String;I)Landroid/content/pm/SigningInfo;", "", ApiSince=36)>]
static member GetVerifiedSigningInfo : string * int -> Android.Content.PM.SigningInfo
Parameters
- path
- String
The filesystem path of the file whose signing information is verified.
- minAppSigningSchemeVersion
- Int32
Value is one of the following: SigningInfo.VERSION_JAR; SigningInfo.VERSION_SIGNING_BLOCK_V2; SigningInfo.VERSION_SIGNING_BLOCK_V3; SigningInfo.VERSION_SIGNING_BLOCK_V4
Returns
The signing-information record created from the verified signing details.
- Attributes
Remarks
Verifies and returns the app signing information of the file at the given path. This operation takes a few milliseconds.
Unlike #getPackageArchiveInfo(String, PackageInfoFlags) with #GET_SIGNING_CERTIFICATES, this method does not require the file to be a package archive file.
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.