aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-02-12 14:36:37 +0100
committerHarald Welte <laforge@osmocom.org>2022-02-14 00:51:27 +0100
commit3729c47651d83f0e9a287e6287a9791ae63e68a6 (patch)
tree6d8e875c12f9794fb57aed1b14ba387683e1fc6d
parenta630a3cd28f74bb995fadbb99aed6db393767265 (diff)
commands: Add method to select parent DF ("cd ..")
This is useful when walking around the filesystem tree. Change-Id: Ib256c1b7319f2b5f9a06200fb96854ecb2b7f6bb
-rw-r--r--pySim/commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pySim/commands.py b/pySim/commands.py
index 20b9c44..5e09eee 100644
--- a/pySim/commands.py
+++ b/pySim/commands.py
@@ -136,6 +136,10 @@ class SimCardCommands(object):
return self._tp.send_apdu_checksw(self.cla_byte + "a4" + self.sel_ctrl + "02" + fid)
+ def select_parent_df(self):
+ """Execute SELECT to switch to the parent DF """
+ return self._tp.send_apdu_checksw(self.cla_byte + "a4030400")
+
def select_adf(self, aid: str):
"""Execute SELECT a given Applicaiton ADF.