Share via


DevicePolicyManager.GetParentProfileInstance(ComponentName) Method

Definition

Called by the profile owner of a managed profile to obtain a DevicePolicyManager whose calls act on the parent profile.

[Android.Runtime.Register("getParentProfileInstance", "(Landroid/content/ComponentName;)Landroid/app/admin/DevicePolicyManager;", "GetGetParentProfileInstance_Landroid_content_ComponentName_Handler", ApiSince=24)]
public virtual Android.App.Admin.DevicePolicyManager GetParentProfileInstance (Android.Content.ComponentName admin);
[<Android.Runtime.Register("getParentProfileInstance", "(Landroid/content/ComponentName;)Landroid/app/admin/DevicePolicyManager;", "GetGetParentProfileInstance_Landroid_content_ComponentName_Handler", ApiSince=24)>]
abstract member GetParentProfileInstance : Android.Content.ComponentName -> Android.App.Admin.DevicePolicyManager
override this.GetParentProfileInstance : Android.Content.ComponentName -> Android.App.Admin.DevicePolicyManager

Parameters

Returns

a new instance of DevicePolicyManager that acts on the parent profile.

Attributes

Remarks

Called by the profile owner of a managed profile to obtain a DevicePolicyManager whose calls act on the parent profile.

The following methods are supported for the parent instance, all other methods will throw a SecurityException when called on the parent instance: <ul> <li>#getPasswordQuality</li> <li>#setPasswordQuality</li> <li>#getPasswordMinimumLength</li> <li>#setPasswordMinimumLength</li> <li>#getPasswordMinimumUpperCase</li> <li>#setPasswordMinimumUpperCase</li> <li>#getPasswordMinimumLowerCase</li> <li>#setPasswordMinimumLowerCase</li> <li>#getPasswordMinimumLetters</li> <li>#setPasswordMinimumLetters</li> <li>#getPasswordMinimumNumeric</li> <li>#setPasswordMinimumNumeric</li> <li>#getPasswordMinimumSymbols</li> <li>#setPasswordMinimumSymbols</li> <li>#getPasswordMinimumNonLetter</li> <li>#setPasswordMinimumNonLetter</li> <li>#getPasswordHistoryLength</li> <li>#setPasswordHistoryLength</li> <li>#getPasswordExpirationTimeout</li> <li>#setPasswordExpirationTimeout</li> <li>#getPasswordExpiration</li> <li>#getPasswordMaximumLength</li> <li>#isActivePasswordSufficient</li> <li>#getCurrentFailedPasswordAttempts</li> <li>#getMaximumFailedPasswordsForWipe</li> <li>#setMaximumFailedPasswordsForWipe</li> <li>#getMaximumTimeToLock</li> <li>#setMaximumTimeToLock</li> <li>#lockNow</li> <li>#getKeyguardDisabledFeatures</li> <li>#setKeyguardDisabledFeatures</li> <li>#getTrustAgentConfiguration</li> <li>#setTrustAgentConfiguration</li> <li>#getRequiredStrongAuthTimeout</li> <li>#setRequiredStrongAuthTimeout</li> <li>#getAccountTypesWithManagementDisabled</li> <li>#setRequiredPasswordComplexity(int)</li> <li>#getRequiredPasswordComplexity()</li> </ul>

The following methods are supported for the parent instance but can only be called by the profile owner of a managed profile that was created during the device provisioning flow: <ul> <li>#getPasswordComplexity</li> <li>#setCameraDisabled</li> <li>#getCameraDisabled</li> <li>#setAccountManagementDisabled(ComponentName, String, boolean)</li> <li>#setPermittedInputMethods</li> <li>#getPermittedInputMethods</li> </ul>

The following methods can be called by the profile owner of a managed profile on an organization-owned device: <ul> <li>#wipeData</li> </ul>

Java documentation for android.app.admin.DevicePolicyManager.getParentProfileInstance(android.content.ComponentName).

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