mirror of https://gerrit.osmocom.org/pysim
ts_31_102: do not add empty ShellCommands class.
The class ShellCommands defined in ADF_USIM overloads useful CommandSet classes defined in the superclass, making their commands inaccessible. Also ts_31_102 does not have such a class definition in the ADF_ISIM class, so lets remove this class. Change-Id: I0e67c570fc4f17641d990a9cd239632ecf622de3 Related: OS#4963
This commit is contained in:
parent
63f572df42
commit
ad073e834a
|
@ -486,7 +486,6 @@ class ADF_USIM(CardADF):
|
||||||
def __init__(self, aid='a0000000871002', name='ADF.USIM', fid=None, sfid=None,
|
def __init__(self, aid='a0000000871002', name='ADF.USIM', fid=None, sfid=None,
|
||||||
desc='USIM Application'):
|
desc='USIM Application'):
|
||||||
super().__init__(aid=aid, fid=fid, sfid=sfid, name=name, desc=desc)
|
super().__init__(aid=aid, fid=fid, sfid=sfid, name=name, desc=desc)
|
||||||
self.shell_commands = [self.ShellCommands()]
|
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
EF_LI(sfid=0x02),
|
EF_LI(sfid=0x02),
|
||||||
|
@ -518,12 +517,6 @@ class ADF_USIM(CardADF):
|
||||||
def decode_select_response(self, data_hex):
|
def decode_select_response(self, data_hex):
|
||||||
return pySim.ts_102_221.decode_select_response(data_hex)
|
return pySim.ts_102_221.decode_select_response(data_hex)
|
||||||
|
|
||||||
@with_default_category('File-Specific Commands')
|
|
||||||
class ShellCommands(CommandSet):
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__()
|
|
||||||
|
|
||||||
|
|
||||||
# TS 31.102 Section 7.3
|
# TS 31.102 Section 7.3
|
||||||
sw_usim = {
|
sw_usim = {
|
||||||
'Security management': {
|
'Security management': {
|
||||||
|
|
Loading…
Reference in New Issue