https://projects.osmocom.org/https://projects.osmocom.org/favicon.ico?16647414092022-06-24T08:50:36ZOpen Source Mobile CommunicationspySim - Bug #5550: EF.ARR file decoding would need to be context dependenthttps://projects.osmocom.org/issues/5550?journal_id=242432022-06-24T08:50:36Zlaforge
<ul><li><strong>Assignee</strong> set to <i>chrysn</i></li></ul><p>chrysn wrote:</p>
<blockquote>
<p>Potential solutions, probably in increasing complexity:<br />1. Do nothing; document that we're always assuming an EF type (and expect the user to do the necessary adjustments).</p>
</blockquote>
<p>this should be done right now, to at least make the cautious user aware. The other steps below are more optional, while this one is mandatory.</p>
<blockquote>
<p>3. Use more general terms in output, but accept the type specific terms in input.</p>
</blockquote>
<p>One could probably also add some EF-specific commands for decoding, so the user on the shell can state which of the two decode flavors should be used for decoding of a single record, like:</p>
<pre><code>decode_ef_arr_record_for_df 1<br /> decode_ef_arr_record_for_ef 1</code></pre>
<p>Still a kludge, but at least for interactive usage that would be useful</p>
<p>Once those two decoders exists, we can als add a shell function that would decode the EF.ARR record for the curretly selected file. So you select ADF.USIM/EF.IMSI and then form there call a <code>decode_ef_arr</code> without any arguments. The code then knows it is an EF, and calls the EF-specific decoder and outputs the decoded access rules.</p>
<blockquote>
<p>4. Accept input from the user in `read_record[s]_decoded` on how to interpret the record; using "bit1"-style output in absence of such input.</p>
</blockquote>
<p>accepting both as input would also be useful.</p>
<blockquote>
<p>5. Keep tabs on which of the previously seen files refer to which record in an EF.ARR, and use that as default decoding style. (And warn/err if the type specific terms are used on a record that is referenced by a different type).</p>
</blockquote>
<p>doesn't look appealing to me.</p>