語言

FactoryResetProtectionPolicy.Builder.SetFactoryResetProtectionEnabled 方法

定義

設定是否啟用出廠重置保護。

[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

參數

factoryResetProtectionEnabled
Boolean

是否啟用原則。

傳回

同一個建造者實例。 這個值不可能為零值。

屬性

備註

設定是否啟用出廠重置保護。

一旦停用,當裝置經歷不可信的出廠重置時,恢復出廠設定保護就不會完全生效。 這同時適用於消費者解鎖流程以及透過 setFactoryResetProtectionAccounts(List) 覆寫的管理員帳號。 預設情況下,恢復出廠設定保護是啟用的。

Android 參考資料。android.app.admin.FactoryResetProtectionPolicy.Builder.setFactoryResetProtectionEnabled

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於