File names: the DF-scoped spec dictionary + refreshed EF/SFI tables (v2.5.0)
- the file/DF/SFI dictionaries move to simtrace_analyser/ef_tables.py and are extracted from the pinned specs: TS 102 221 (MF, Annex H.1), TS 31.102 (ADF USIM 4.2 and the child DFs 4.3/4.4/4.6, the H.1-H.12 SFI annexes, the Annex L.6 Relay Node/certificate files; Annex A/E as the ADF/DF file completeness cross-check), TS 31.103 and TS 51.011 - 20 DF tables (~370 entries) and 14 SFI tables, up from ~180 flat names and 3 SFI tables - names are DF-scoped: a FID reused across DFs resolves to the file its DF context names - 4F09 is EF_SUPI_NAI under DF_5GS but EF_PROSE_GC under DF_ProSe, 6F07 is EF_IMSI in the USIM/SIM but EF_IST in the ISIM, 6F4E is EF_EXT4 in DF_TELECOM but EF_EXT5 in the USIM ADF; the flat table keeps only names that are identical everywhere and is the fallback when no DF is known (the two names the old table had wrong there are fixed: 6F0A is EF_AC_GBAUAPI, 6F53 EF_LOCIGPRS) - the SELECT-path decoder resolves the 7FFF children against the USIM ADF table, and the Files view names files DF-first - including files first seen only via their FCP (a select-only file used to keep the bare FID, e.g. ADF/6F3C is now ADF/EF_SMS (6F3C)) - tests/data/spec_files.json pins the extracted tables; tests/test_decode.py asserts the DF/ADF tables cover them, the SFI tables match them exactly and every flat name is a spec name for that FID; tests/extract_spec_tables.py regenerates the fixture from the PDFs and --check re-verifies the tables - README/README_RUS document the dictionary and its sources; PWA_VERSION and pyproject/version.py 2.5.0, SW cache simtrace-analyser-v71
This commit is contained in:
1 parent
bd0c9a2c4a
commit
cbeeed3608
14 files changed
+1820
-350
No files matched your search
@@ -39,8 +39,8 @@ keeps counting).
|
||||
"""
|
||||
|
||||
from .database import _SUCCESS_SW1
|
||||
from .decode import (DF_CHILDREN, KNOWN_FIDS, _is_df_fid, select_target_fid,
|
||||
selected_df_fid, sfi_table)
|
||||
from .decode import (DF_CHILDREN, KNOWN_FIDS, _file_name, _is_df_fid,
|
||||
select_target_fid, selected_df_fid, sfi_table)
|
||||
|
||||
IMAGE_CAP = 64 * 1024 # observed bytes kept per file
|
||||
EVENTS_CAP = 1000 # change events kept per file
|
||||
@@ -266,8 +266,10 @@ class FileTracker:
|
||||
key = (df, fid)
|
||||
entry = self.files.get(key)
|
||||
if entry is None:
|
||||
# A file first seen via its FCP (or an operation whose decode had
|
||||
# no name) still gets its DF-scoped dictionary name.
|
||||
entry = _FileEntry(key, df, fid,
|
||||
name or (fid.upper() if fid else '?'),
|
||||
(name or _file_name(fid, df)) if fid else '?',
|
||||
image_cap=self._image_cap)
|
||||
self.files[key] = entry
|
||||
elif name:
|
||||
@@ -321,6 +323,8 @@ class FileTracker:
|
||||
provisional.key = (df, fid)
|
||||
provisional.fid = fid
|
||||
provisional.sfi = sfi
|
||||
if provisional.name == f'SFI:{sfi}':
|
||||
provisional.name = _file_name(fid, df)
|
||||
self.files[(df, fid)] = provisional
|
||||
target = provisional
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user