1. In b/206869351, WiFi framework already relaxed the permission checking for WifiManager.getCountryCode() API from requesting NETWORK_SETTING permission to COARSE location. So we can change our code to get country code from WifiManager from Android T.

2. Remove @SuppressWarnings("nullness") in Utils class.

PiperOrigin-RevId: 420221014
This commit is contained in:
hai007
2022-01-06 23:24:18 -08:00
committed by Copybara-Service
parent fa2b583245
commit c90f1d023e
+4 -3
View File
@@ -412,9 +412,10 @@ message ConnectionsLog {
optional string network_operator = 4
;
// The upper-case ISO 3166-1 alpha-2 country code of the current registered
// operator's MCC (Mobile Country Code), or the country code of the default
// Locale if not available.
// The upper-case ISO 3166-1 alpha-2 country code of:
// 1. the current connected WiFi network
// 2. or the current registered operator's MCC (Mobile Country Code)
// 3. or empty string.
optional string country_code = 5 ;
// The TDLS status used by the wifi lan medium,