From 2d5959bf47d82e8f394a0ccb54a1e1d8e89456fa Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 12 Jul 2023 21:57:47 +0200 Subject: [PATCH] ts_102_221: Remove CardProfileUICCSIM This profile has always been a hack/work-around for the situation that a classic GSM SIM is not a UICC, and we didn't yet have the concept of CardProfileAddons yet, so there was no way to probe and add something to an UICC which was not an application with its own AID/ADF. Since now we have CardProfileAddons (including one for GSM SIM), and pySim-trace (the other user of CardProfileUICCSIM) has also switched over to using CardProfileUICC + addons, we can remove this work-around. Change-Id: I45cec68d72f2003123da4c3f86ed6a5a90988bd8 --- pySim/ts_102_221.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pySim/ts_102_221.py b/pySim/ts_102_221.py index df8b8421..ac0dc84c 100644 --- a/pySim/ts_102_221.py +++ b/pySim/ts_102_221.py @@ -886,21 +886,3 @@ class CardProfileUICC(CardProfile): of the card is required between SUSPEND and RESUME, and only very few non-RESUME commands are permitted between SUSPEND and RESUME. See TS 102 221 Section 11.1.22.""" self._cmd.card._scc.resume_uicc(opts.token) - - -class CardProfileUICCSIM(CardProfileUICC): - """Same as above, but including 2G SIM support""" - - ORDER = 0 - - def __init__(self): - super().__init__('UICC-SIM') - - # Add GSM specific files - self.files_in_mf.append(DF_TELECOM()) - self.files_in_mf.append(DF_GSM()) - - @staticmethod - def match_with_card(scc: SimCardCommands) -> bool: - # don't ever select this profile, we only use this from pySim-trace - return False