From 686581985921a5b754d75ec33e90e5f122a3114b Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 22 Apr 2022 00:29:10 +0300 Subject: [PATCH] SimCardCommands.run_gsm(): use send_apdu_checksw() Change-Id: Ib713cf8154a3aba72bc5776a8d99ec47631ade28 --- pySim/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/commands.py b/pySim/commands.py index 868918b5..e7cfeec2 100644 --- a/pySim/commands.py +++ b/pySim/commands.py @@ -402,7 +402,7 @@ class SimCardCommands(object): if len(rand) != 32: raise ValueError('Invalid rand') self.select_path(['3f00', '7f20']) - return self._tp.send_apdu('a0' + '88000010' + rand) + return self._tp.send_apdu_checksw('a0' + '88000010' + rand, sw='9000') def authenticate(self, rand: str, autn: str, context='3g'): """Execute AUTHENTICATE (USIM/ISIM).