<p>herlesupreeth has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/20096">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Remove redundant function read_aid()<br><br>Change-Id: I46c4ac0b994db7fb5c3113175009175ec5c154e3<br>---<br>M pySim/cards.py<br>1 file changed, 0 insertions(+), 24 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/96/20096/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/cards.py b/pySim/cards.py</span><br><span>index d1b449a..eeeae82 100644</span><br><span>--- a/pySim/cards.py</span><br><span>+++ b/pySim/cards.py</span><br><span>@@ -204,30 +204,6 @@</span><br><span>                 else:</span><br><span>                        return (None, sw)</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   # Read the (full) AID for either ISIM or USIM or ISIM application</span><br><span style="color: hsl(0, 100%, 40%);">-       def read_aid(self, isim = False):</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-               # First (known) halves of the AID</span><br><span style="color: hsl(0, 100%, 40%);">-               aid_usim = "a0000000871002"</span><br><span style="color: hsl(0, 100%, 40%);">-           aid_isim = "a0000000871004"</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-           # Select which one to look for</span><br><span style="color: hsl(0, 100%, 40%);">-          if isim:</span><br><span style="color: hsl(0, 100%, 40%);">-                        aid = aid_isim</span><br><span style="color: hsl(0, 100%, 40%);">-          else:</span><br><span style="color: hsl(0, 100%, 40%);">-                   aid = aid_usim</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-          # Find out how many records the EF.DIR has, then go through</span><br><span style="color: hsl(0, 100%, 40%);">-             # all records and try to find the AID we are looking for</span><br><span style="color: hsl(0, 100%, 40%);">-                aid_record_count = self._scc.record_count(['2F00'])</span><br><span style="color: hsl(0, 100%, 40%);">-             for i in range(0, aid_record_count):</span><br><span style="color: hsl(0, 100%, 40%);">-                    record = self._scc.read_record(['2F00'], i + 1)</span><br><span style="color: hsl(0, 100%, 40%);">-                 if aid in record[0]:</span><br><span style="color: hsl(0, 100%, 40%);">-                            aid_len = int(record[0][6:8], 16)</span><br><span style="color: hsl(0, 100%, 40%);">-                               return record[0][8:8 + aid_len * 2]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-             return None</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>  # Fetch all the AIDs present on UICC</span><br><span>         def read_aids(self):</span><br><span>                 try:</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/20096">change 20096</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/+/20096"/><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: I46c4ac0b994db7fb5c3113175009175ec5c154e3 </div>
<div style="display:none"> Gerrit-Change-Number: 20096 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: herlesupreeth <herlesupreeth@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>