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

User agent string for MMS messages

Last Updated: 12/12/2016

Partners can replace the entire user agent string for MMS.

By default, this string has the format WindowsPhoneMMS/MicrosoftMMSVersionNumber WindowsPhoneOS/OSVersion-buildNumberOEM-deviceName, in which the italicized text is replaced with the appropriate values for the phone.

Constraints: None
This customization supports: per-SIM 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="MMSUAString"  
                         Description="Use to replace the entire user agent string for MMS messages."  
                         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="Messaging/PerSimSettings/$(__ICCID)">  
          <Setting Name="UserAgentString" Value="" />     
        </Settings>  
    
      </Variant>
    
    </ImageCustomizations>
    
  2. Specify an Owner.

  3. Define Targets or conditions for when a variant can be applied, such as keying off a SIM's MCC, MNC, and SPN.

  4. Define settings for a Variant, which are applied if the associated target's conditions are met.

  5. Set the UserAgentString``Value to the new user agent string for MMS in its entirely.

    By default, this string has the format WindowsPhoneMMS/MicrosoftMMSVersionNumber WindowsPhoneOS/OSVersion-buildNumberOEM-deviceName, in which the italicized text is replaced with the appropriate values for the device.

Testing:
Work with your mobile operator to test this customization on their network.

Send comments about this topic to Microsoft

© 2017 Microsoft