DevicePolicyManager.GetParentProfileInstance(ComponentName) 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.
Called by the profile owner of a managed profile or other apps in 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)]
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.DevicePolicyManagerParameters
- admin
- ComponentName
Which DeviceAdminReceiver this request is associated with or
null if the caller is not a profile owner.
Returns
a new instance of DevicePolicyManager that acts on the parent profile.
- Attributes
Remarks
Called by the profile owner of a managed profile or other apps in 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 on an organization owned managed profile: <ul> <li>#getPasswordComplexity</li> <li>#setCameraDisabled</li> <li>#getCameraDisabled</li> <li>#setAccountManagementDisabled(ComponentName, String, boolean)</li> <li>#setPermittedInputMethods</li> <li>#getPermittedInputMethods</li> <li>#wipeData</li> </ul>
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.