FactoryResetProtectionPolicy.Builder.SetFactoryResetProtectionEnabled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定是否啟用出廠重置保護。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。