laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/43975?usp=email )
Change subject: esim.saip: the 4F60..4F67 phonebook template rows are EF.PBC
......................................................................
esim.saip: the 4F60..4F67 phonebook template rows are EF.PBC
The phonebook template lists the FID range 4F60..4F67 as a second set
of EF.ADN rows, so a decoded phonebook PE carrying ef-pbc fails with
"ValueError: Cannot add File(ef-pbc) of unknown file_type None to
tree". The range is EF.PBC: linear fixed, record length 2, default
00...00, with the file size and SFI supplied by the instance.
Rename the rows and list 'size' and 'sfi' as the instance parameters.
The folder osmocom-pysim-saip-implicit-template-ppath of
hampushellsberg-dev/PySIM-upstream-patches on GitHub has the analysis
and a repro.
Change-Id: Ifcbff1ad05e951cabfdb1958bab4f8777f645c6d
---
M pySim/esim/saip/templates.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/75/43975/1
diff --git a/pySim/esim/saip/templates.py b/pySim/esim/saip/templates.py
index 5103219..72ad26c 100644
--- a/pySim/esim/saip/templates.py
+++ b/pySim/esim/saip/templates.py
@@ -271,7 +271,7 @@
for i in range(0x58, 0x60):
df_pb_files.append(FileTemplate(0x4f00+i, 'EF.ADN', 'LF', None, None, 5,
None, 'FF...FF', False, ['nb_rec','size','sfi'], ppath=[0x5f3a]))
for i in range(0x60, 0x68):
- df_pb_files.append(FileTemplate(0x4f00+i, 'EF.ADN', 'LF', None, 2, 5,
None, '00...00', False, ['nb_rec','sfi'], ppath=[0x5f3a]))
+ df_pb_files.append(FileTemplate(0x4f00+i, 'EF.PBC', 'LF', None, 2, 5,
None, '00...00', False, ['size','sfi'], ppath=[0x5f3a]))
for i in range(0x68, 0x70):
df_pb_files.append(FileTemplate(0x4f00+i, 'EF.ANR', 'LF', None, None, 5,
None, 'FF...FF', False, ['nb_rec','size','sfi'], ppath=[0x5f3a]))
for i in range(0x70, 0x78):
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/43975?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbff1ad05e951cabfdb1958bab4f8777f645c6d
Gerrit-Change-Number: 43975
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-CC: hampushellsberg <[email protected]>