I am working on managed profile application in android 5.0 while trying to set password using code given below.
manager.resetPassword("123456",DevicePolicyManager.RESET_PASSWORD_REQUIRE_ENTRY);
But it's throwing an exception like Caused by: java.lang.SecurityException: You can not reset the password for a managed profile. is there any work around to set the password using managed profile owner. Thanks in advance.