diff options
author | Rubin Xu <rubinxu@google.com> | 2019-08-16 13:19:56 +0100 |
---|---|---|
committer | Rubin Xu <rubinxu@google.com> | 2019-09-03 12:13:33 +0100 |
commit | 6a7303d03c4ec086b08e83afb44335c8395e5cc2 (patch) | |
tree | 6903599f6f47a6bcf8efd1e2a4aa505756ef9259 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 366fbdc3d43416225288992f98917828a1a19c12 (diff) |
Do not suppress severe exception when password change fails
Redefine the return condition of LPU.saveLock{Password,Pattern}:
1. When password change fails due to the caller providing an
incorrect existing password (or password throttling is still
being enforced), treat this as a normal failure mode and return
false.
2. For all other exceptions thrown during password change,
throw it to the caller so it fails fast, instead of relying
on the caller to check the return value.
Bug: 62410009
Test: atest com.android.server.locksettings
Change-Id: I8fa6320b7134d18ed5dae1af7f6f05002100d291
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions