Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ae403a0 authored by Eric Biggers's avatar Eric Biggers
Browse files

Cleanly handle unknown response codes in setLockCredentialInternal()

Instead of throwing an exception when getting an unknown
VerifyCredentialResponse code, just treat RESPONSE_ERROR and unknown
codes the same way.  This is needed to prevent the exception case from
being reached when RESPONSE_ERROR is split up.

A later CL could introduce different behavior for different response
codes, such as logging different messages.  For now I'd simply like to
make this call site consistent with all other non-test code, which does
not differentiate between RESPONSE_ERROR and unknown errors.

Test: atest FrameworksServicesTests:com.android.server.locksettings
Bug: 395976735
Flag: EXEMPT only changes behavior in case that isn't reachable yet
Change-Id: I55c7f841fa15027209de4ae9f46f2cd725e167d0
parent 121ac926
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment