On Wed, Nov 04, 2015 at 03:36:17PM +0100, Sipos Csaba wrote:
RuntimeError: SW match failed ! Expected 9000 and got 6a86.
According to ISO 7816-4, this 6a86 means 'incorrect P1 or P2 parameter'.
At this point I don't have any more ideas what to try, if anyone would have any suggestions I would apreciate it.
Please activate (or hack some code for) tracing the actual APDUs that pySim excahnges with the card. IIRC, pySim already has that option.
Once you see the raw APDUs, you can compare their encoding (particularly P1/P2) with those described in the relevant ETSI/3GPP (U)SIM specifications.