The expected version of the Android OS is more focused on security than its predecessor as we mentioned earlier.
As the API to change the password in the Android Nougat has undergone significant changes.
so that invoke this method, the calling software must be a equipment administrator.

However, users should be sure to set a password on their own.
Backward compatibility would have allowed malware to reset the lock screen password even on newer Android versions.

