forked from public/pysim
filesystem: define class byte and select control bytes in profile
The class byte and the select control bytes are different for SIM cards and UICC cards. Lets define those parameters in the card profile, so that we always get the correct parameters depending on which profile we use. Change-Id: I2d175e28bd748a4871b1373273b3a9be9ae8c4d0 Related: OS#5274
This commit is contained in:
@@ -976,7 +976,6 @@ def _decode_select_response(resp_hex):
|
||||
|
||||
class CardProfileSIM(CardProfile):
|
||||
def __init__(self):
|
||||
super().__init__('SIM', desc='GSM SIM Card', files_in_mf=[DF_TELECOM(), DF_GSM()])
|
||||
|
||||
super().__init__('SIM', desc='GSM SIM Card', cla="a0", sel_ctrl="0000", files_in_mf=[DF_TELECOM(), DF_GSM()])
|
||||
def decode_select_response(self, data_hex:str) -> Any:
|
||||
return _decode_select_response(data_hex)
|
||||
|
||||
Reference in New Issue
Block a user