aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-03-11 12:32:44 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2020-03-11 12:34:59 +0100
commitb3e11ea19625789041e75740ad42823923f0048f (patch)
tree55733e2d8e95876522887388381a3f5b16237b65
parent9664b2e7fc7e9cd73e57c58eabf55219d98f287d (diff)
sysmiISIM-SJA2: add support for new card model / os version
There is a new card version with a different ATR, lets add the ATR for this card to support it as well. Change-Id: I222faea89c1df58c36a19b28449dffb84a956e74 Related: SYS#4817
-rw-r--r--pySim/cards.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pySim/cards.py b/pySim/cards.py
index ec2724c..0f84834 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -984,6 +984,11 @@ class SysmoISIMSJA2(Card):
atr = "3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2"
if scc.get_atr() == toBytes(atr):
return kls(scc)
+
+ # Try card model #3
+ atr = "3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 52 75 31 04 51 D5"
+ if scc.get_atr() == toBytes(atr):
+ return kls(scc)
except:
return None
return None