AppOpsManager.CheckPackage(Int32, String) 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.
This member is deprecated.
[Android.Runtime.Register("checkPackage", "(ILjava/lang/String;)V", "GetCheckPackage_ILjava_lang_String_Handler")]
public virtual void CheckPackage (int uid, string packageName);
[<Android.Runtime.Register("checkPackage", "(ILjava/lang/String;)V", "GetCheckPackage_ILjava_lang_String_Handler")>]
abstract member CheckPackage : int * string -> unit
override this.CheckPackage : int * string -> unit
Parameters
- uid
- Int32
- packageName
- String
- Attributes
Exceptions
if the package name doesn't belong to the given UID, or if ownership cannot be verified.
Remarks
This member is deprecated. Use PackageManager#getPackageUid
instead
Java documentation for android.app.AppOpsManager.checkPackage(int, 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.