Taal

FactoryResetProtectionPolicy.Builder.SetFactoryResetProtectionAccounts Method

Definition

Sets which accounts can unlock a device that has been factory reset.

[Android.Runtime.Register("setFactoryResetProtectionAccounts", "(Ljava/util/List;)Landroid/app/admin/FactoryResetProtectionPolicy$Builder;", "GetSetFactoryResetProtectionAccounts_Ljava_util_List_Handler", ApiSince=30)]
public virtual Android.App.Admin.FactoryResetProtectionPolicy.Builder SetFactoryResetProtectionAccounts(System.Collections.Generic.IList<string> factoryResetProtectionAccounts);
[<Android.Runtime.Register("setFactoryResetProtectionAccounts", "(Ljava/util/List;)Landroid/app/admin/FactoryResetProtectionPolicy$Builder;", "GetSetFactoryResetProtectionAccounts_Ljava_util_List_Handler", ApiSince=30)>]
abstract member SetFactoryResetProtectionAccounts : System.Collections.Generic.IList<string> -> Android.App.Admin.FactoryResetProtectionPolicy.Builder
override this.SetFactoryResetProtectionAccounts : System.Collections.Generic.IList<string> -> Android.App.Admin.FactoryResetProtectionPolicy.Builder

Parameters

factoryResetProtectionAccounts
IList<String>

list of accounts. This value cannot be null.

Returns

the same Builder instance. This value cannot be null.

Attributes

Remarks

Sets which accounts can unlock a device that has been factory reset.

Once set, the consumer unlock flow will be disabled and only accounts in this list can unlock factory reset protection after untrusted factory reset.

It's up to the FRP management agent to interpret the String as account it supports. Please consult their relevant documentation for details.

Android reference for android.app.admin.FactoryResetProtectionPolicy.Builder.setFactoryResetProtectionAccounts.

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