简体   繁体   English

在企业的设备所有者应用中,标志。DISALLOW_FACTORY_RESET是否还会阻止硬重置恢复?

[英]in device owner app for enterprise, does the flag.DISALLOW_FACTORY_RESET also prevent hard reset from recovery?

对于企业的设备所有者应用程序, flag.DISALLOW_FACTORY_RESET还会阻止恢复硬重置?

DevicePolicyManager.addUserRestriction(ComponentName, DISALLOW_FACTORY_RESET)

No, the DISALLOW_FACTORY_RESET restriction does not prevent a user from executing "Wipe data/factory reset" from recovery. 否,DISALLOW_FACTORY_RESET限制不会阻止用户恢复执行“擦除数据/恢复出厂设置”。 But recovery's factory reset is untrusted, so the FRP (factory reset protection) partition is not cleared. 但是恢复的出厂重置是不可信的,因此不会清除FRP(出厂重置保护)分区。 If you had a google account on the device, it will be required to sign in during the setup wizard. 如果您在设备上拥有一个Google帐户,则需要在安装向导期间登录。 The FRP partition is cleared when doing a trusted factory reset from the settings menu in Android. 从Android的“设置”菜单中进行可信的出厂重置后,FRP分区将被清除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM