mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-29 07:34:39 +03:00
pySim-trace: Also consider SW 91xx as successful
Change-Id: I9e4170721be30342bdce7fb4beeefd1927263ca6
This commit is contained in:
@@ -135,7 +135,12 @@ class Apdu(Tpdu):
|
|||||||
if callable(method):
|
if callable(method):
|
||||||
return method()
|
return method()
|
||||||
# default case: only 9000 is success
|
# default case: only 9000 is success
|
||||||
return self.sw == b'\x90\x00'
|
if self.sw == b'\x90\x00':
|
||||||
|
return True
|
||||||
|
# This is not really a generic positive APDU SW but specific to UICC/SIM
|
||||||
|
if self.sw[0] == 0x91:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class ApduCommand(Apdu, metaclass=ApduCommandMeta):
|
class ApduCommand(Apdu, metaclass=ApduCommandMeta):
|
||||||
|
|||||||
Reference in New Issue
Block a user