commit | eb3e2b3b109d1c0279776fd4844090d06405f03b | [log] [tgz] |
---|---|---|
author | Jonathan Scott <scottjonathan@google.com> | Tue Feb 02 14:10:18 2021 +0000 |
committer | Jonathan Scott <scottjonathan@google.com> | Tue Feb 02 14:11:48 2021 +0000 |
tree | 79887a9a126c8237ac3d2fe25391d57504446015 | |
parent | 6ac99deae2afc3c479248f32b4537fafe87bf5ca [diff] |
Throw IllegalArgumentException when calling LockPatternUtils#getCredentialTypeForUser with invalid ID. Currently, using e.g. USER_CURRENT results in returning that the user requires no credentials - which can lead to un-noticed bugs such as b/176801033 Test: atest com.android.internal.widget.LockPatternUtilsTest Change-Id: I09be7f8f32e67ad039d9cd1d1710ef34ec198773