Table of contents
TOC
Collapse the table of content
Expand the table of content

Change the default SIM name to match the SPN or operator name

Last Updated: 12/12/2016

By default, the OS displays SIM 1 or SIM 2 as the default friendly name for the SIM in slot 1 or slot 2 if the service provider name (SPN) or mobile operator name has not been set. Partners can use this customization to change the default name read from the SIM to define the SPN for SIM cards that do not contain this information or to generate the default friendly name for the SIM.

The OS uses the default value as the display name for the SIM or SPN in the Start screen and other parts of the UI including the SIM settings screen. For dual SIM phones that contain SIMs from the same mobile operator, the names that appear in the UI may be similar.

Constraints: None
This customization supports: per-IMSI value

Instructions:

  1. Create a customization answer file using the contents shown in the following code sample.

    <?xml version="1.0" encoding="utf-8" ?>  
    <ImageCustomizations xmlns="http://schemas.microsoft.com/embedded/2004/10/ImageUpdate"  
                         Name="MultivariantProvisionedSPN"  
                         Description="Use to define the SPN for SIM cards that don't contain this information or use to
                                      generate the default friendly name for the SIM."  
                         Owner=""  
                         OwnerType="OEM"> 
    
      <!-- Define the Targets --> 
      <Targets>
         <Target Id="">
            <TargetState>
               <Condition Name="" Value="" />
               <Condition Name="" Value="" />
            </TargetState>
         </Target>
      </Targets>
    
      <Static>
        <Settings Path="Multivariant">
          <Setting Name="Enable" Value="1" />
        </Settings>
        <Settings Path="AutoDataConfig">
          <Setting Name="Enable" Value="0" />
        </Settings>
      </Static>
    
      <!-- Specify the Variant -->
      <Variant Name=""> 
        <TargetRefs>
          <TargetRef Id="" /> 
        </TargetRefs>
    
        <Settings Path="CellCore/PerIMSI/$(__IMSI)/General/Critical">  
          <Setting Name="MultivariantProvisionedSPN" Value="" />    
       </Settings>  
    
      </Variant>
    
    </ImageCustomizations>
    
  2. Specify an Owner.

  3. Set the MultivariantProvisionedSPN value to the name of the SPN or mobile operator.

    The following table shows the scenarios supported by this customization:

    Note
    In the Default SIM name column:

    • The " " in MultivariantProvisionedSPN" "1234 means that there is a space between the mobile operator name or SPN and the last 4 digits of the MSISDN.

    • MultivariantProvisionedSPN means the value that you set for the MultivariantProvisionedSPN setting.

    • SIM 1 or SIM 2 is the default friendly name for the SIM in slot 1 or slot 2.

<table>
<colgroup>
<col width="25%" />
<col width="25%" />
<col width="25%" />
<col width="25%" />
</colgroup>
<thead>
<tr class="header">
<th>Multivariant setting set?</th>
<th>SPN provisioned?</th>
<th>MSISDN (last 4 digitis: 1234, for example) provisioned?</th>
<th>Default SIM name</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p>Yes</p></td>
<td><p>Yes</p></td>
<td><p>Yes</p></td>
<td><p><em>MultivariantProvisionedSPN</em>1234 or <em>MultivariantProvisionedSPN</em>&quot; &quot;1234</p></td>
</tr>
<tr class="even">
<td><p>Yes</p></td>
<td><p>No</p></td>
<td><p>No</p></td>
<td><p><em>MultivariantProvisionedSPN</em> (up to 16 characters)</p></td>
</tr>
<tr class="odd">
<td><p>Yes</p></td>
<td><p>Yes</p></td>
<td><p>No</p></td>
<td><p><em>MultivariantProvisionedSPN</em> (up to 16 characters)</p></td>
</tr>
<tr class="even">
<td><p>Yes</p></td>
<td><p>No</p></td>
<td><p>Yes</p></td>
<td><p><em>MultivariantProvisionedSPN</em>1234 or <em>MultivariantProvisionedSPN</em>&quot; &quot;1234</p></td>
</tr>
<tr class="odd">
<td><p>No</p></td>
<td><p>Yes</p></td>
<td><p>Yes</p></td>
<td><p>If SPN string &gt;= 12: <em>SPN</em>1234</p>
<p>If SPN string &lt; 12: <em>SPN</em>&quot; &quot;1234</p></td>
</tr>
<tr class="even">
<td><p>No</p></td>
<td><p>No</p></td>
<td><p>No</p></td>
<td><p><em>SIM 1</em> or <em>SIM 2</em></p></td>
</tr>
<tr class="odd">
<td><p>No</p></td>
<td><p>Yes</p></td>
<td><p>No</p></td>
<td><p>SPN (up to 16 characters)</p></td>
</tr>
<tr class="even">
<td><p>No</p></td>
<td><p>No</p></td>
<td><p>Yes</p></td>
<td><p><em>SIM 1</em> or <em>SIM 2</em></p></td>
</tr>
</tbody>
</table>

Testing steps:

  1. Flash a build containing this customization to a phone that supports either a single or dual SIM.

  2. Boot the phone and verify that the displayed friendly name for the SIM matches the SPN name or the value set for MultivariantProvisionedSPN.

    If there are two SIMs, verify that the displayed friendly names appear as expected.

Send comments about this topic to Microsoft

© 2017 Microsoft