mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-28 00:08:36 +03:00
pySim.profile: Further refactor card <-> profile matching
The new architecture avoids sim/ruim/uicc specific methods in pySim.profile and instead moves the profile-specific code into the profile; it also solves everything within the class hierarchy, no need for global methods. Change-Id: I3b6c44d2f5cce2513c3ec8a3ce939a242f3e4901
This commit is contained in:
@@ -41,7 +41,6 @@ from osmocom.construct import *
|
||||
|
||||
from pySim.utils import dec_iccid, enc_iccid, dec_imsi, enc_imsi, dec_plmn, enc_plmn, dec_xplmn_w_act
|
||||
from pySim.utils import dec_msisdn, enc_msisdn
|
||||
from pySim.profile import match_sim
|
||||
from pySim.profile import CardProfile, CardProfileAddon
|
||||
from pySim.filesystem import *
|
||||
from pySim.ts_31_102_telecom import DF_PHONEBOOK, DF_MULTIMEDIA, DF_MCS, DF_V2X
|
||||
@@ -1193,8 +1192,8 @@ class CardProfileSIM(CardProfile):
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
def match_with_card(cls, scc: SimCardCommands) -> bool:
|
||||
return match_sim(scc)
|
||||
def _try_match_card(cls, scc: SimCardCommands) -> None:
|
||||
cls._mf_select_test(scc, "a0", "0000", ["3f00"])
|
||||
|
||||
|
||||
class AddonSIM(CardProfileAddon):
|
||||
|
||||
Reference in New Issue
Block a user