diff options
author | Rubin Xu <rubinxu@google.com> | 2019-03-25 11:44:41 +0000 |
---|---|---|
committer | Rubin Xu <rubinxu@google.com> | 2019-04-25 17:17:40 +0100 |
commit | ca7007be4bc5a51f8307919c47c7f8c87a075a50 (patch) | |
tree | a6b7148793d9e2b23d4a815d836005f1af1e9f80 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 23e88129dfd7ebe11199b8074bbe63031285dc79 (diff) |
Fix clearing password with DPM.resetPasswordWithToken()
Using resetPasswordWithToken() to clear password does not function
correctly before user unlock for the following two reasons:
1. it tries to remove keys from vold & keystore before they are unlocked,
resulting in execution failure and data loss.
2. once lockscreen is cleared, it does not progress user unlock so
the user is stuck in USER_LOCKED state.
This change fixes both of these issues.
Also make a small change to LockSettingsShellCommand so it no longer accepts
arbitray password if the device is not secured.
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testClearPasswordWithTokenBeforeUnlock
Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testResetPasswordWithTokenBeforeUnlock
Fix: 123514964
Bug: 124094969
Bug: 129669035
Change-Id: I38af4842b3cccea37f9e3e61d30bd3d2939e8ab8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions