aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-04-10 18:17:55 +0200
committerHarald Welte <laforge@osmocom.org>2021-04-11 12:20:29 +0200
commita463161ae22bb111dcc8c9fc8a9b17a78f6a3121 (patch)
tree4e2158ed94a91d42e3f940d72062609a9f9000d1 /pySim-shell.py
parent15fae98d2eb18fd27fc12de4df7a28897c9188c8 (diff)
pySim-shell: Adds support for DEACTIVATE FILE + ACTIVATE FILE
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index cfba73f..b2ccb9a 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -403,6 +403,15 @@ class Iso7816Commands(CommandSet):
(data, sw) = self._cmd.card._scc.enable_chv(opts.pin_nr, h2b(pin))
self._cmd.poutput("CHV enable successful")
+ def do_deactivate_file(self, opts):
+ """Deactivate the current EF"""
+ fid = self._cmd.rs.selected_file.fid
+ (data, sw) = self._cmd.card._scc.deactivate_file(fid)
+
+ def do_activate_file(self, opts):
+ """Activate the current EF"""
+ fid = self._cmd.rs.selected_file.fid
+ (data, sw) = self._cmd.card._scc.activate_file(fid)
def parse_options():