1<?xml version="1.0" encoding="utf-8"?> 2<resources> 3 <!-- 4 OEMs that wish to change the below settings must do so via a runtime resource overlay package 5 and *NOT* by changing this file. This file is part of the NetworkStack mainline module. 6 The overlays must apply to the config_* values, not the default_* values. The default_* 7 values are meant to be the default when no other configuration is specified. 8 --> 9 <!-- HTTP URL for network validation, to use for detecting captive portals. --> 10 <!-- default_captive_portal_http_url is not configured as overlayable so 11 OEMs that wish to change captive_portal_http_url configuration must 12 do so via configuring runtime resource overlay to 13 config_captive_portal_http_url and *NOT* by changing or overlaying 14 this resource. It will break if the enforcement of overlayable starts. 15 --> 16 <string name="default_captive_portal_http_url" translatable="false">http://connectivitycheck.gstatic.com/generate_204</string> 17 <!-- HTTPS URL for network validation, to use for confirming internet connectivity. --> 18 <!-- default_captive_portal_https_url is not configured as overlayable so 19 OEMs that wish to change captive_portal_https_url configuration must 20 do so via configuring runtime resource overlay to 21 config_captive_portal_https_url and *NOT* by changing or overlaying 22 this resource. It will break if the enforcement of overlayable starts. 23 --> 24 <string name="default_captive_portal_https_url" translatable="false">https://www.google.com/generate_204</string> 25 26 <!-- List of fallback URLs to use for detecting captive portals. --> 27 <!-- default_captive_portal_fallback_urls is not configured as overlayable 28 so OEMs that wish to change captive_portal_fallback_urls configuration 29 must do so via configuring runtime resource overlay to 30 config_captive_portal_fallback_urls and *NOT* by changing or overlaying 31 this resource. It will break if the enforcement of overlayable starts. 32 --> 33 <string-array name="default_captive_portal_fallback_urls" translatable="false"> 34 <item>http://www.google.com/gen_204</item> 35 <item>http://play.googleapis.com/generate_204</item> 36 </string-array> 37 <!-- Configuration hooks for the above settings. 38 Empty by default but may be overridden by RROs. --> 39 <integer name="config_captive_portal_dns_probe_timeout"></integer> 40 <!--suppress CheckTagEmptyBody: overlayable resource to use as configuration hook --> 41 <string name="config_captive_portal_http_url" translatable="false"></string> 42 <!--suppress CheckTagEmptyBody: overlayable resource to use as configuration hook --> 43 <string name="config_captive_portal_https_url" translatable="false"></string> 44 <!-- Literal commas are not allowed in the url configuration because they 45 are used as a separator internally. --> 46 <string-array name="config_captive_portal_fallback_urls" translatable="false"> 47 </string-array> 48 <string-array name="config_captive_portal_fallback_probe_specs" translatable="false"> 49 </string-array> 50 <string-array name="config_captive_portal_http_urls" translatable="false"> 51 </string-array> 52 <string-array name="config_captive_portal_https_urls" translatable="false"> 53 </string-array> 54 55 <!-- Customized default DNS Servers address. --> 56 <string-array name="config_default_dns_servers" translatable="false"> 57 </string-array> 58 <!-- Set to true if NetworkMonitor needs to load the resource by neighbor mcc when device 59 doesn't have a SIM card inserted. --> 60 <bool name="config_no_sim_card_uses_neighbor_mcc">false</bool> 61 62 <!-- Configuration for including DHCP client hostname option --> 63 <bool name="config_dhcp_client_hostname">false</bool> 64 <!-- Customized preferred properties for filling DHCP client hostname option, 65 replacing the default device name (Dependent on config_dhcp_client_hostname is true).--> 66 <string-array name="config_dhcp_client_hostname_preferred_props" translatable="false"> 67 </string-array> 68 69 <!-- Customized neighbor unreachable probe parameters. --> 70 <integer name="config_nud_steadystate_solicit_num">10</integer> 71 <integer name="config_nud_steadystate_solicit_interval">750</integer> 72 <integer name="config_nud_postroaming_solicit_num">5</integer> 73 <integer name="config_nud_postroaming_solicit_interval">750</integer> 74 75 <!-- Whether to force considering DNS probes returning private IP addresses as failed 76 when attempting to detect captive portals. 77 The impact of this feature will be evaluated separately through experiments. 78 Force-enabling the feature regardless of the experiment results is not advised, as it 79 could result in valid captive portals being incorrectly classified as having no 80 connectivity.--> 81 <bool name="config_force_dns_probe_private_ip_no_internet">false</bool> 82 83 <!-- Define the min and max range of the content-length that should be in the HTTP response 84 header of probe responses for the validation success/failed regexp to be used. The RegExp 85 will be used to match the probe response content when the content-length is inside this 86 interval(Strictly greater than the config_min_matches_http_content_length and strictly 87 smaller than the config_max_matches_http_content_length). When the content-length is out of 88 this interval, the RegExp will not be used. --> 89 <integer name="config_min_matches_http_content_length">0</integer> 90 <integer name="config_max_matches_http_content_length">0</integer> 91 <!-- A regular expression to match the content of a network validation probe. 92 Treat the network validation as failed when the content matches the 93 config_network_validation_failed_content_regexp and treat the network validation as success 94 when the content matches the config_network_validation_success_content_regexp. If the 95 content matches both of the config_network_validation_failed_content_regexp and 96 the config_network_validation_success_content_regexp, the result will be considered as 97 failed. --> 98 <string name="config_network_validation_failed_content_regexp" translatable="false"></string> 99 <string name="config_network_validation_success_content_regexp" translatable="false"></string> 100 101 <!-- URL for evaluating bandwidth. If the download cannot be finished before the timeout, then 102 it means the bandwidth check is failed. If the download can be finished before the timeout, 103 then it means the bandwidth check is passed. So the OEMs should set this URL appropriately. 104 --> 105 <string name="config_evaluating_bandwidth_url" translatable="false"></string> 106 <!-- A timeout for evaluating bandwidth. --> 107 <integer name="config_evaluating_bandwidth_timeout_ms"></integer> 108 <!-- The retry timer will start from config_min_retry_timer, and the timer will be exponential 109 increased until reaching the config_max_retry_timer. --> 110 <integer name="config_evaluating_bandwidth_min_retry_timer_ms"></integer> 111 <integer name="config_evaluating_bandwidth_max_retry_timer_ms"></integer> 112 113 <!-- Whether the APF Filter in the device should filter out IEEE 802.3 Frames 114 Those frames are identified by the field Eth-type having values 115 less than 0x600. 116 This configuration has been deprecated and is not functional in Android V+. --> 117 <bool name="config_apfDrop802_3Frames">true</bool> 118 119 <!-- An array of Denylisted EtherType, packets with EtherTypes within this array 120 will be dropped. 121 TODO: are these proper values? 122 This configuration has been deprecated and is not functional in Android V+. --> 123 <integer-array name="config_apfEthTypeDenyList"> 124 <item>0x88A2</item> 125 <item>0x88A4</item> 126 <item>0x88B8</item> 127 <item>0x88CD</item> 128 <item>0x88E1</item> 129 <item>0x88E3</item> 130 </integer-array> 131 132 <!-- Whether to validate DUN networks. This is unused and always true on U+. --> 133 <bool name="config_validate_dun_networks">false</bool> 134 135 <!-- Configuration for including DHCP domain search list option --> 136 <bool name="config_dhcp_client_domain_search_list">false</bool> 137</resources> 138