Share via


DevicePolicyManager.IsOrganizationOwnedDeviceWithManagedProfile Property

Definition

Apps can use this method to find out if the device was provisioned as organization-owend device with a managed profile.

public virtual bool IsOrganizationOwnedDeviceWithManagedProfile { [Android.Runtime.Register("isOrganizationOwnedDeviceWithManagedProfile", "()Z", "GetIsOrganizationOwnedDeviceWithManagedProfileHandler", ApiSince=30)] get; }
[<get: Android.Runtime.Register("isOrganizationOwnedDeviceWithManagedProfile", "()Z", "GetIsOrganizationOwnedDeviceWithManagedProfileHandler", ApiSince=30)>]
member this.IsOrganizationOwnedDeviceWithManagedProfile : bool

Property Value

true if the device was provisioned as organization-owned device, false otherwise.

Attributes

Remarks

Apps can use this method to find out if the device was provisioned as organization-owend device with a managed profile.

This, together with checking whether the device has a device owner (by calling #isDeviceOwnerApp), could be used to learn whether the device is owned by an organization or an individual: If this method returns true OR #isDeviceOwnerApp returns true (for any package), then the device is owned by an organization. Otherwise, it's owned by an individual.

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

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