diff options
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() |