forked from public/pysim
commands: Add method to select parent DF ("cd ..")
This is useful when walking around the filesystem tree. Change-Id: Ib256c1b7319f2b5f9a06200fb96854ecb2b7f6bb
This commit is contained in:
@@ -136,6 +136,10 @@ class SimCardCommands(object):
|
|||||||
|
|
||||||
return self._tp.send_apdu_checksw(self.cla_byte + "a4" + self.sel_ctrl + "02" + fid)
|
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):
|
def select_adf(self, aid: str):
|
||||||
"""Execute SELECT a given Applicaiton ADF.
|
"""Execute SELECT a given Applicaiton ADF.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user