Buggy code:
private static final int EVENT_GET_PNN_DONE = 15 ; protected static final int EVENT_GET_SST_DONE = 17 ; private static final int EVENT_GET_ALL_SMS_DONE = 18 ; private static final int EVENT_MARK_SMS_READ_DONE = 19 ; private static final int EVENT_SET_MBDN_DONE = 20 ; private static final int EVENT_GET_SMS_DONE = 22 ; private static final int EVENT_GET_CFF_DONE = 24 ; private static final int EVENT_SET_CPHS_MAILBOX_DONE = 25 ; private static final int EVENT_GET_INFO_CPHS_DONE = 26 ; private static final int EVENT_GET_CFIS_DONE = 32 ; private static final int EVENT_GET_CSP_CPHS_DONE = 33 ; private static final int EVENT_GET_GID1_DONE = 34 ; private static final int EVENT_APP_LOCKED = 35 ; private static final String [ ] MCCMNC_CODES_HAVING_3DIGITS_MNC = new String [ ] { "302370" , "302720" , "310260" , "405025" , "405026" , "405027" , "405028" , "405029" , "405030" , "405031" , "405032" , "405033" , "405034" , "405035" , "405036" , "405037" , "405038" , "405039" , "405040" , "405041" , "405042" , "405043" , "405044" , "405045" , "405046" , "405047" , "405750" , "405751" , "405752" , "405753" , "405754" , "405755" , "405756" , "405799" , "405800" , "405801" , "405802" , "405803" , "405804" , "405805" , "405806" , "405807" , "405808" , "405809" , "405810" , "405811" , "405812" , "405813" , "405814" , "405815" , "405816" , "405817" , "405818" , "405819" , "405820" , "405821" , "405822" , "405823" , "405824" , "405825" , "405826" , "405827" , "405828" , "405829" , "405830" , "405831" , "405832" , "405833" , "405834" , "405835" , "405836" , "405837" , "405838" , "405839" , "405840" , "405841" , "405842" , "405843" , "405844" , "405845" , "405846" , "405847" , "405848" , "405849" , "405850" , "405851" , "405852" , "405853" , "405875" , "405876" , "405877" , "405878" , "405879" , "405880" , "405881" , "405882" , "405883" , "405884" , "405885" , "405886" , "405908" , "405909" , "405910" , "405911" , "405912" , "405913" , "405914" , "405915" , "405916" , "405917" , "405918" , "405919" , "405920" , "405921" , "405922" , "405923" , "405924" , "405925" , "405926" , "405927" , "405928" , "405929" , "405930" , "405931" , "405932" , "502142" , "502143" , "502145" , "502146" , "502147" , "502148" } ; public SIMRecords ( UiccCardApplication app , Context c , CommandsInterface ci ) { } @ Override public void dispose ( ) { } @ Override protected void finalize ( ) { } protected void resetRecords ( ) { } @ Override public String getIMSI ( ) { } @ Override public String getMsisdnNumber ( ) { } @ Override public String getGid1 ( ) { } @ Override public UsimServiceTable getUsimServiceTable ( ) { } private int getExtFromEf ( int ef ) { } @ Override public void setMsisdnNumber ( String alphaTag , String number , Message onComplete ) { } @ Override public String getMsisdnAlphaTag ( ) { } @ Override public String getVoiceMailNumber ( ) { } @ Override public void setVoiceMailNumber ( String alphaTag , String voiceNumber , Message onComplete ) { } @ Override public String getVoiceMailAlphaTag ( ) { } @ Override public void setVoiceMessageWaiting ( int line , int countWaiting ) { } private boolean validEfCfis ( byte [ ] data ) { } public int getVoiceMessageCount ( ) { } @ Override public boolean isCallForwardStatusStored ( ) { } @ Override public boolean getVoiceCallForwardingFlag ( ) { } @ Override public void setVoiceCallForwardingFlag ( int line , boolean enable , String dialNumber ) { } @ Override public void onRefresh ( boolean fileChanged , int [ ] fileList ) { } @ Override public String getOperatorNumeric ( ) { } @ Override public void handleMessage ( Message msg ) { } private class EfPlLoaded implements IccRecordLoaded { public String getEfName ( ) { } public void onRecordLoaded ( AsyncResult ar ) { } } private class EfUsimLiLoaded implements IccRecordLoaded { public String getEfName ( ) { } public void onRecordLoaded ( AsyncResult ar ) { } } @ Override protected void handleFileUpdate ( int efid ) { } private int dispatchGsmMessage ( SmsMessage message ) { } public void handleSmsOnIcc ( AsyncResult ar ) { } private void handleSms ( byte [ ] ba ) { } private void handleSmses ( ArrayList < byte [ ] > messages ) { } private String findBestLanguage ( byte [ ] languages ) { } private void setLocaleFromUsim ( ) { } @ Override protected void onRecordLoaded ( ) { } @ Override protected void onAllRecordsLoaded ( ) { } private void setSpnFromConfig ( String carrier ) { if ( mSpnOverride . containsCarrier ( carrier ) ) { setServiceProviderName ( mSpnOverride . getSpn ( carrier ) ) ; <START_BUG> SystemProperties . set ( TelephonyProperties . PROPERTY_ICC_OPERATOR_ALPHA , getServiceProviderName ( ) ) ; <END_BUG> } } private void setVoiceMailByCountry ( String spn ) { } @ Override public void onReady ( ) { } private void onLocked ( ) { } private void loadEfLiAndEfPl ( ) { } protected void fetchSimRecords ( ) { } @ Override public int getDisplayRule ( String plmn ) { } private boolean isOnMatchingPlmn ( String plmn ) { } private enum GetSpnFsmState { IDLE , INIT , READ_SPN_3GPP , READ_SPN_CPHS , READ_SPN_SHORT_CPHS ; } private void getSpnFsm ( boolean start , AsyncResult ar ) { } private void parseEfSpdi ( byte [ ] data ) { } private boolean isCphsMailboxEnabled ( ) { } @ Override protected void log ( String s ) { } @ Override protected void loge ( String s ) { } protected void logw ( String s , Throwable tr ) { } protected void logv ( String s ) { } @ Override public boolean isCspPlmnEnabled ( ) { } private void handleEfCspData ( byte [ ] data ) { } @ Override public void dump ( FileDescriptor fd , PrintWriter pw , String [ ] args ) { } }

Fix:
setSystemProperty ( TelephonyProperties . PROPERTY_ICC_OPERATOR_ALPHA , getServiceProviderName ( ) ) ;