DevicePolicyManager.IsCallerApplicationRestrictionsManagingPackage Property

Definition

Called by any application to find out whether it has been granted permission via #setApplicationRestrictionsManagingPackage to manage application restrictions for the calling user.

public virtual bool IsCallerApplicationRestrictionsManagingPackage { [Android.Runtime.Register("isCallerApplicationRestrictionsManagingPackage", "()Z", "GetIsCallerApplicationRestrictionsManagingPackageHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isCallerApplicationRestrictionsManagingPackage", "()Z", "GetIsCallerApplicationRestrictionsManagingPackageHandler", ApiSince=24)>]
member this.IsCallerApplicationRestrictionsManagingPackage : bool

Property Value

Attributes

Remarks

Called by any application to find out whether it has been granted permission via #setApplicationRestrictionsManagingPackage to manage application restrictions for the calling user.

This is done by comparing the calling Linux uid with the uid of the package specified by that method.

This member is deprecated. From android.os.Build.VERSION_CODES#O. Use #getDelegatedScopes instead.

Java documentation for android.app.admin.DevicePolicyManager.isCallerApplicationRestrictionsManagingPackage().

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