Mcc should not set country code with persistent request
A false persistent parameter ensures that wifi country code
will fall back to phone default country code upon SIM card removing.
Bug:31640617
Change-Id: Ie55fea196f314d0f8d7af8d9c68c04e14dd28987
Test: compile
diff --git a/src/java/com/android/internal/telephony/MccTable.java b/src/java/com/android/internal/telephony/MccTable.java
index 1797e65..0ee153c 100644
--- a/src/java/com/android/internal/telephony/MccTable.java
+++ b/src/java/com/android/internal/telephony/MccTable.java
@@ -387,8 +387,7 @@
String country = MccTable.countryCodeForMcc(mcc);
Slog.d(LOG_TAG, "WIFI_COUNTRY_CODE set to " + country);
WifiManager wM = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
- //persist
- wM.setCountryCode(country, true);
+ wM.setCountryCode(country, false);
}
static {