<p>dexter <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/26161">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">filesystem: fix decode_select_response<br><br>There are some problems with the usage of decode_select_response. At the<br>moment the ADF files overload the related method to provide decoding of<br>the select responses as per 3gpp TS 102 221. However, this also means<br>that the decoder is only available under ADF.USIM and ADF.ISIM. DF.GSM<br>and DF.TELECOM also overload the decoder method, just like an ADF would<br>do. This decoding method is then implemented as per 3gpp TS 51 011.<br>Since this a a problem on UICCs, the method detects the magic byte 0x62<br>that can be found at the beginning on every select response of an UICC<br>to defer to the TS 102 221 decoding method. TS 51 011 defines the first<br>two bytes of the select response as RFU. This at least problematic.<br><br>To solve this there should be a default method for<br>decode_select_response in the profile, which can be used if no file<br>overloads it with a specific decoder. ADFs use specific decoders, but<br>everything else should use the default decoder. When we deal with an<br>UICC, we expect the select response to be consistantly conform to TS<br>102 221, if we deal with a clasic sim we expect responses as per TS 51<br>011 only.<br><br>Since it is still possible to replace the select response decoder we<br>still have the opportunity to have custom select response in cartain<br>DFs and ADFs should we need them.<br><br>Change-Id: I95e33ec1755727dc9bbbc6016ce2d99a9e66f214<br>Related: OS#5274<br>---<br>M pySim/filesystem.py<br>M pySim/ts_102_221.py<br>M pySim/ts_51_011.py<br>3 files changed, 62 insertions(+), 15 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/61/26161/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/26161">change 26161</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/26161"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I95e33ec1755727dc9bbbc6016ce2d99a9e66f214 </div>
<div style="display:none"> Gerrit-Change-Number: 26161 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>