diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-19 12:42:10 +0100 |
---|---|---|
committer | Supreeth Herle <herlesupreeth@gmail.com> | 2020-04-01 09:35:52 +0200 |
commit | 140844052aa6d76d4d316f6f4d0e24d526cce8f4 (patch) | |
tree | a1a00300779f8e5a893c675f1f8916695a509f07 /pySim | |
parent | 9efd8ef81240ff953b376afdb5b15f48fb035346 (diff) |
Move parsing of PLMNwAcT to generic Card class
Change-Id: I14d7c2dc51fac6d5cf4a708a77ad23d252ba6094
Diffstat (limited to 'pySim')
-rw-r--r-- | pySim/cards.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pySim/cards.py b/pySim/cards.py index d3b6262..16f6881 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -96,6 +96,13 @@ class Card(object): data, sw = self._scc.update_binary(EF['OPLMNwAcT'], content + 'ffffff0000' * (size // 5 - 1)) return sw + def read_plmn_act(self): + (res, sw) = self._scc.read_binary(EF['PLMNwAcT']) + if sw == '9000': + return (format_xplmn_w_act(res), sw) + else: + return (None, sw) + def update_plmn_act(self, mcc, mnc, access_tech='FFFF'): """ See note in update_hplmn_act() |