FactoryResetProtectionPolicy.Builder.SetFactoryResetProtectionEnabled 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.
Sets whether factory reset protection is enabled or not.
[Android.Runtime.Register("setFactoryResetProtectionEnabled", "(Z)Landroid/app/admin/FactoryResetProtectionPolicy$Builder;", "GetSetFactoryResetProtectionEnabled_ZHandler", ApiSince=30)]
public virtual Android.App.Admin.FactoryResetProtectionPolicy.Builder SetFactoryResetProtectionEnabled(bool factoryResetProtectionEnabled);
[<Android.Runtime.Register("setFactoryResetProtectionEnabled", "(Z)Landroid/app/admin/FactoryResetProtectionPolicy$Builder;", "GetSetFactoryResetProtectionEnabled_ZHandler", ApiSince=30)>]
abstract member SetFactoryResetProtectionEnabled : bool -> Android.App.Admin.FactoryResetProtectionPolicy.Builder
override this.SetFactoryResetProtectionEnabled : bool -> Android.App.Admin.FactoryResetProtectionPolicy.Builder
Parameters
- factoryResetProtectionEnabled
- Boolean
Whether the policy is enabled or not.
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Sets whether factory reset protection is enabled or not.
Once disabled, factory reset protection will not kick in all together when the device goes through untrusted factory reset. This applies to both the consumer unlock flow and the admin account overrides via setFactoryResetProtectionAccounts(List). By default, factory reset protection is enabled.
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.