Change to update SPN based on spn-conf.xml.
Amit Mahajan [Tue, 30 Sep 2014 22:29:58 +0000 (15:29 -0700)]
If there is an SPN override for this carrier, we should update
gsm.sim.operator.alpha with this value.

Bug: 17701706
Change-Id: I12aa3950f3e3636d573d2d1ff1bc1bab6f3a6abd

src/java/com/android/internal/telephony/uicc/SIMRecords.java

index 65e89d9..f3cf197 100644 (file)
@@ -1487,6 +1487,7 @@ public class SIMRecords extends IccRecords {
     private void setSpnFromConfig(String carrier) {
         if (mSpnOverride.containsCarrier(carrier)) {
             setServiceProviderName(mSpnOverride.getSpn(carrier));
+            SystemProperties.set(PROPERTY_ICC_OPERATOR_ALPHA, getServiceProviderName());
         }
     }