Permanent automatic mode
OEMs can enable permanent automatic mode for mobile networks that require the cellular settings to revert to automatic network selection after the user has manually selected another network when roaming or out of range of the home network.
Create a customization answer file using the contents shown in the following code sample.
``` syntax <?xml version="1.0" encoding="utf-8" ?>
<!-- Use for the per-IMSI case <!-- 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"> <Setting Name="AvoidStayingInManualSelection" Value="" /> </Settings> </Variant> --> <!-- Use for the per-device case <Static> <Settings Path="CellCore/PerDevice/General"> <Setting Name="AvoidStayingInManualSelection" Value="" /> </Settings> </Static> --> </ImageCustomizations> ```
Determine if you need to use the per-IMSI or per-device setting.
For the per-IMSI case:
Define Targets or conditions for when a variant can be applied, such as keying off a SIM's MCC, MNC, and SPN.
Define settings for a Variant, which are applied if the associated target's conditions are met.
AvoidStayingInManualSelection``Valueto either of the following:
Enable permanent automatic mode.
Disable permanent automatic mode. The cellular settings for network selection remain in manual mode.
To fully test this customization, work with your mobile operator partner. The device needs to be out of range of the home network so that the user can select manual mode under Network selection in the Settings > Cellular & SIM screen.
When the device is no longer roaming or is in range of the home network, verify that the Network selection mode changed to automatic without requiring user action.