android - DevicePolicyManager.resetPassword and DevicePolicyManager.ACTION_START_ENCRYPTION -
i have 1 strange problem resetpassword on samsung s4. want clear password, result cannot login phone , has factory reset before can use it. thing did listed below:
1: call devicepolicymanager.action_start_encryption
start storage encryption on phone
2: accept action , finish storage encryption on phone , set password
3: clear password in app calling devicepolicymanager.resetpassword("")
after above steps, cannot login phone password set , screen still locked prompt password, until factory reset.
i tried find out lock-screen password after resetpassword. , find out quite complex password string hash stored in password.key , salt. maybe not feasible way solve that.
this happened in galaxy s4, 1 has idea that?
after investigation, found problem caused clear password while device still in "encrypted" state. if decrypt device first , reset password works ok now.
so current work find out: api used decrypt device?
Comments
Post a Comment