Reputation: 379
In Android Device Administration, I know resetPassword(String password, int flags)
can reset the password. But, my wish is that I will hold old password before reseting it. In this way, I can, if user wants, rescue the password. Are there a way to hold the password ? Moreover, how can I get password from system ?
NOTE: My application is system app.
Upvotes: 0
Views: 93
Reputation: 52936
No, you cannot get the password. It is indeed hashed, and the device technically doesn't 'know' it. Additionally, since pretty much any app can become a system administrator (if the user confirms), any app would be able to retrieve the password, which is a bad idea.
Upvotes: 1