简体   繁体   English

如何在 Android 管理 API 中禁用公司拥有设备的出厂重置按钮?

[英]How to disable factory reset button for Company owned Device in Android Management API?

I am setting Factory Reset Protection (FRP) for COMPANY-OWNED device with WORK PROFILE.我正在使用 WORK PROFILE 为 COMPANY-OWNED 设备设置出厂重置保护 (FRP)。 Such that, user can only bypass using FRP email.这样,用户只能使用 FRP email 绕过。

Though It works well when the device is hard reset but when the user does the same through虽然当设备被硬重置时它工作得很好但是当用户通过

Settings -> Backup & Reset -> Erase All Data设置 -> 备份和重置 -> 清除所有数据

, it doesn't ask for FRP on startup. ,它不会在启动时要求 FRP。

So, What I'm trying to achieve is disable the factory reset button in settings for COMPANY-OWNED WORK PROFILE devices, so that the user doesn't bypass the FRP.因此,我想要实现的是在 COMPANY-OWNED WORK PROFILE 设备的设置中禁用出厂重置按钮,这样用户就不会绕过 FRP。

I have tried to patch the device with the policy with我试图用策略修补设备

"factoryResetDisabled": true,

source 来源

but it doesn't reflect in the device.但它不会反映在设备中。

Kindly suggest me other ways, for Work Profile in Android Management API. Is any workaround available to disable the Factory Reset Button?请建议我其他方式,对于 Android 管理中的工作配置文件 API。是否有任何解决方法可以禁用出厂重置按钮?

我想禁用“擦除所有数据”按钮

Factory Reset Prevention (factoryResetDisabled) api does not work on COMPANY-OWNED devices with WORK PROFILE as of android 11 onwards.自 android 11 起,出厂重置预防 (factoryResetDisabled) api 不适用于具有 WORK PROFILE 的 COMPANY-OWNED 设备。 Since factory resetting is the only reliable way to remove all user data from COPE devices or COMPANY-OWNED devices with WORK PROFILE.由于恢复出厂设置是从 COPE 设备或具有 WORK PROFILE 的 COMPANY-OWNED 设备中删除所有用户数据的唯一可靠方法。

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

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