次の方法で共有


PackageManager.CheckSignatures Method

Definition

Overloads

CheckSignatures(Int32, Int32)

Like #checkSignatures(String, String), but takes UIDs of the two packages to be checked.

CheckSignatures(String, String)

Compare the signatures of two packages to determine if the same signature appears in both of them.

CheckSignatures(Int32, Int32)

Like #checkSignatures(String, String), but takes UIDs of the two packages to be checked.

[Android.Runtime.Register("checkSignatures", "(II)I", "GetCheckSignatures_IIHandler")]
public abstract Android.Content.PM.SignatureResult CheckSignatures (int uid1, int uid2);
[<Android.Runtime.Register("checkSignatures", "(II)I", "GetCheckSignatures_IIHandler")>]
abstract member CheckSignatures : int * int -> Android.Content.PM.SignatureResult

Parameters

uid1
Int32

First UID whose signature will be compared.

uid2
Int32

Second UID whose signature will be compared.

Returns

Returns an integer indicating whether all signatures on the two packages match. The value is >= 0 (#SIGNATURE_MATCH) if all signatures match or < 0 if there is not a match (#SIGNATURE_NO_MATCH or #SIGNATURE_UNKNOWN_PACKAGE).

Attributes

Remarks

Like #checkSignatures(String, String), but takes UIDs of the two packages to be checked. This can be useful, for example, when doing the check in an IPC, where the UID is the only identity available. It is functionally identical to determining the package associated with the UIDs and checking their signatures.

Java documentation for android.content.pm.PackageManager.checkSignatures(int, int).

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.

See also

  • <xref:Android.Content.PM.PackageManager.CheckSignatures(System.String%2c+System.String)>

Applies to

CheckSignatures(String, String)

Compare the signatures of two packages to determine if the same signature appears in both of them.

[Android.Runtime.Register("checkSignatures", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCheckSignatures_Ljava_lang_String_Ljava_lang_String_Handler")]
public abstract Android.Content.PM.SignatureResult CheckSignatures (string packageName1, string packageName2);
[<Android.Runtime.Register("checkSignatures", "(Ljava/lang/String;Ljava/lang/String;)I", "GetCheckSignatures_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member CheckSignatures : string * string -> Android.Content.PM.SignatureResult

Parameters

packageName1
String

First package name whose signature will be compared.

packageName2
String

Second package name whose signature will be compared.

Returns

Returns an integer indicating whether all signatures on the two packages match. The value is >= 0 (#SIGNATURE_MATCH) if all signatures match or < 0 if there is not a match (#SIGNATURE_NO_MATCH or #SIGNATURE_UNKNOWN_PACKAGE).

Attributes

Remarks

Compare the signatures of two packages to determine if the same signature appears in both of them. If they do contain the same signature, then they are allowed special privileges when working with each other: they can share the same user-id, run instrumentation against each other, etc.

Java documentation for android.content.pm.PackageManager.checkSignatures(java.lang.String, java.lang.String).

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.

See also

  • <xref:Android.Content.PM.PackageManager.CheckSignatures(System.Int32%2c+System.Int32)>

Applies to