mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
shell: Add 'status' command to issue STATUS APDU
This can be used to get the FCP of the currently selected file. Change-Id: I65c97adadd831ca2daa5a0dbb52a37999f8514fd
This commit is contained in:
@@ -1145,6 +1145,11 @@ class RuntimeState(object):
|
||||
|
||||
return select_resp
|
||||
|
||||
def status(self):
|
||||
"""Request STATUS (current selected file FCP) from card."""
|
||||
(data, sw) = self.card._scc.status()
|
||||
return self.selected_file.decode_select_response(data)
|
||||
|
||||
def read_binary(self, length:int=None, offset:int=0):
|
||||
"""Read [part of] a transparent EF binary data.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user