CarrierConfig KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED
MAC randomization will be disabled for WifiNetworkSuggestions with SSID in this list. This is meant to be used only on a few widely known networks that do not supoort MAC randmozation Bug: 171928471 Test: atest com.android.server.wifi Change-Id: I5d7ae9329d67e188f87cf6d99dcd058ebc58ab88
This commit is contained in:
@@ -10359,6 +10359,7 @@ package android.telephony {
|
||||
public static final class CarrierConfigManager.Wifi {
|
||||
field public static final String KEY_HOTSPOT_MAX_CLIENT_COUNT = "wifi.hotspot_maximum_client_count";
|
||||
field public static final String KEY_PREFIX = "wifi.";
|
||||
field public static final String KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED = "wifi.suggestion_ssid_list_with_mac_randomization_disabled";
|
||||
}
|
||||
|
||||
public final class CarrierRestrictionRules implements android.os.Parcelable {
|
||||
|
||||
@@ -5152,9 +5152,25 @@ public class CarrierConfigManager {
|
||||
public static final String KEY_HOTSPOT_MAX_CLIENT_COUNT =
|
||||
KEY_PREFIX + "hotspot_maximum_client_count";
|
||||
|
||||
/**
|
||||
* This configuration is intended to be a narrow exception for provisioning
|
||||
* {@link android.net.wifi.WifiNetworkSuggestion} of widely-known carrier networks that do
|
||||
* not support using randomized MAC address.
|
||||
* Carrier provisioned {@link android.net.wifi.WifiNetworkSuggestion} with SSIDs included
|
||||
* in this list will have MAC randomization disabled.
|
||||
*
|
||||
* Note: the SSIDs in the list are expected to be interpreted as is - do not add double
|
||||
* quotes to the SSIDs.
|
||||
*/
|
||||
public static final String KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED =
|
||||
KEY_PREFIX + "suggestion_ssid_list_with_mac_randomization_disabled";
|
||||
|
||||
private static PersistableBundle getDefaults() {
|
||||
PersistableBundle defaults = new PersistableBundle();
|
||||
defaults.putInt(KEY_HOTSPOT_MAX_CLIENT_COUNT, 0);
|
||||
defaults.putStringArray(KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED,
|
||||
new String[0]);
|
||||
|
||||
return defaults;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user