Android R Beta 2
Fix eSE dev node bug

There can be a situation where the eSE dev node opens successfully, but
the driver fails to read the ATP length correctly. In those cases, the
driver will fail to close the dev node due to incorrect error handling.
This situation may manifest when the eSE fails to respond to ATP read
requests. This situation can also happen if the eSE is physically
disconnected.

Bug: 157762429
Test: Tested locally with eSE disconnected.
Change-Id: Ib912b3655517c4c9abf6396479437ee7fd318229
1 file changed