Skip to content
Success

Changes

Summary

  1. pySim.app: Properly reset card state after reading EID (details)
  2. pySim.transport: Add support for generic stdout apdu tracer (details)
Commit bf0689a48e774919c97f12e24cc9ae6a88169f58 by laforge
pySim.app: Properly reset card state after reading EID

The code had two problems:

* the RESET was only performed in the successful case, but not if
  some exceptio was raised

* the RESET was a low-level reset bypassing the RuntimeState,
  so the lchan.selected_file was stale afterwards

Fixes: Change-Id Idc2ea1d9263f39b3dff403e1535a5e6c4e88b26f

Change-Id: Ib23d3d5b58b456a25157a622c1010c81cd8b2213
The file was modifiedpySim/app.py
Commit 241d65db126ea3c9e22415ef65c9055261331b26 by laforge
pySim.transport: Add support for generic stdout apdu tracer

Any program using argparse_add_reader_args() will get a new
long-opt '--apdu-trace' which enables a raw APDU trace to the console.

Change-Id: I4bc3d2e023ba360f07f024d7b661a93322f87530
The file was modifiedpySim/transport/__init__.py