我正在尝试使用下面给出的代码设置密码时,正在开发 android 5.0 中的托管配置文件应用程序。
manager.resetPassword("123456",DevicePolicyManager.RESET_PASSWORD_REQUIRE_ENTRY);
但它引发了一个异常,如Caused by: java.lang.SecurityException: You can't reset the password for a managed profile。 是否有任何解决方法可以使用托管配置文件所有者设置密码。提前致谢。