Can't change current password in android 7

My app has the power of device administration. When I tried to update the current password in android 7, this is "java.lang.SecurityException: Admin cannot change current password". It works in android 6. Please tell me how can I reset my password to nougat.

+3


source to share


1 answer


Looks like Google has changed the capabilities of device administration apps. I don't really understand why. I know it can be used by hackers, but why is screen lock a separate set of permissions that you have to enable.

Weve reduced the options for device administration apps so that they can no longer modify your lockscreen if you have a lockscreen installed and the device admin will no longer be notified of an impending shutdown via onDisableRequested (). These were the tactics used by some ransomware to gain control of the device.



Here's the full link https://blog.google/topics/connected-workspaces/keeping-android-safe-security-enhancements-nougat/

0


source







All Articles