mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user