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

Commit e0f7674c authored by Meng Wang's avatar Meng Wang
Browse files

Always close channel after apdu sending fails

Once in a EuiccSession, previous design depends on specific error codes
to detect channel closing and only re-open channel if specific error
codes returned by apdu sending.

Problem is there is always some new error codes because of timing &
vendor behavior. In such cases, apdu sending will be attempted without
opening a new channel and hence will fail.

New design will close and re-open channel when apdu sending fails,
without checking the error code. This design is safer as it is same as
the behavior as if not in EuiccSession.

Bug: 335257880
Test: unit test, atest <path>/ApduSenderTest.java
Test: manual, see b/335257880#comment53
Flag: com.android.internal.telephony.flags.optimization_apdu_sender
Change-Id: I87b73bf848cd8a70cfe3ed32fd3b5df1ad3a5080
parent ceb9a695
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