summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyanogen <shade@chemlab.org>2010-11-24 10:56:31 -0500
committercyanogen <shade@chemlab.org>2010-11-24 10:56:31 -0500
commitdccd67a9416b26a206e8226894732467dcccb617 (patch)
tree97bb26051fb993054fa812fdda7105563d6473c9
parentbf68c70453c19022f2ce2883a0fcadc475016f61 (diff)
downloadframeworks_base-dccd67a9416b26a206e8226894732467dcccb617.zip
frameworks_base-dccd67a9416b26a206e8226894732467dcccb617.tar.gz
frameworks_base-dccd67a9416b26a206e8226894732467dcccb617.tar.bz2
Revert "Changing string for apn from empty to when no string is provided by SIM Card. This fixes the roaming problem with some virtual network providers, since some of them have an empty string (check with getprop gsm.sim.operator.alpha). For sure no provider will write empty in their SIM cards. Data roaming can be disabled after that. Roaming in foreign countrys will still work since it checks the MCC (Mobile Country Code). Thanks to my friend Sewi for helping me finding this. :)"
This reverts commit bc097e94dfd15ecaac4d057d30c68d9c77a54744.
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
index 529aa2c..50b8eba 100644
--- a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
@@ -1286,7 +1286,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
* @return true for roaming state set
*/
private boolean isRoamingBetweenOperators(boolean gsmRoaming, ServiceState s) {
- String spn = SystemProperties.get(TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA, "");
+ String spn = SystemProperties.get(TelephonyProperties.PROPERTY_ICC_OPERATOR_ALPHA, "empty");
String onsl = s.getOperatorAlphaLong();
String onss = s.getOperatorAlphaShort();