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 <bool name="config_probe_multi_http_https_url_serial">false</bool> 55 <integer name="config_serial_url_probe_gap_time">1000</integer> 56 57 <!-- Customized default DNS Servers address. --> 58 <string-array name="config_default_dns_servers" translatable="false"> 59 </string-array> 60 <!-- Set to true if NetworkMonitor needs to load the resource by neighbor mcc when device 61 doesn't have a SIM card inserted. --> 62 <bool name="config_no_sim_card_uses_neighbor_mcc">false</bool> 63 64 <!-- Configuration for including DHCP client hostname option --> 65 <bool name="config_dhcp_client_hostname">false</bool> 66 <!-- Customized preferred properties for filling DHCP client hostname option, 67 replacing the default device name (Dependent on config_dhcp_client_hostname is true).--> 68 <string-array name="config_dhcp_client_hostname_preferred_props" translatable="false"> 69 </string-array> 70 71 <!-- Customized neighbor unreachable probe parameters. --> 72 <integer name="config_nud_steadystate_solicit_num">10</integer> 73 <integer name="config_nud_steadystate_solicit_interval">750</integer> 74 <integer name="config_nud_postroaming_solicit_num">5</integer> 75 <integer name="config_nud_postroaming_solicit_interval">750</integer> 76 77 <!-- Whether to force considering DNS probes returning private IP addresses as failed 78 when attempting to detect captive portals. 79 The impact of this feature will be evaluated separately through experiments. 80 Force-enabling the feature regardless of the experiment results is not advised, as it 81 could result in valid captive portals being incorrectly classified as having no 82 connectivity.--> 83 <bool name="config_force_dns_probe_private_ip_no_internet">false</bool> 84 85 <!-- Define the min and max range of the content-length that should be in the HTTP response 86 header of probe responses for the validation success/failed regexp to be used. The RegExp 87 will be used to match the probe response content when the content-length is inside this 88 interval(Strictly greater than the config_min_matches_http_content_length and strictly 89 smaller than the config_max_matches_http_content_length). When the content-length is out of 90 this interval, the RegExp will not be used. --> 91 <integer name="config_min_matches_http_content_length">0</integer> 92 <integer name="config_max_matches_http_content_length">0</integer> 93 <!-- A regular expression to match the content of a network validation probe. 94 Treat the network validation as failed when the content matches the 95 config_network_validation_failed_content_regexp and treat the network validation as success 96 when the content matches the config_network_validation_success_content_regexp. If the 97 content matches both of the config_network_validation_failed_content_regexp and 98 the config_network_validation_success_content_regexp, the result will be considered as 99 failed. --> 100 <string name="config_network_validation_failed_content_regexp" translatable="false"></string> 101 <string name="config_network_validation_success_content_regexp" translatable="false"></string> 102 103 <!-- URL for evaluating bandwidth. If the download cannot be finished before the timeout, then 104 it means the bandwidth check is failed. If the download can be finished before the timeout, 105 then it means the bandwidth check is passed. So the OEMs should set this URL appropriately. 106 --> 107 <string name="config_evaluating_bandwidth_url" translatable="false"></string> 108 <!-- A timeout for evaluating bandwidth. --> 109 <integer name="config_evaluating_bandwidth_timeout_ms"></integer> 110 <!-- The retry timer will start from config_min_retry_timer, and the timer will be exponential 111 increased until reaching the config_max_retry_timer. --> 112 <integer name="config_evaluating_bandwidth_min_retry_timer_ms"></integer> 113 <integer name="config_evaluating_bandwidth_max_retry_timer_ms"></integer> 114 115 <!-- Whether the APF Filter in the device should filter out IEEE 802.3 Frames 116 Those frames are identified by the field Eth-type having values 117 less than 0x600. 118 This configuration has been deprecated and is not functional in Android V+. --> 119 <bool name="config_apfDrop802_3Frames">true</bool> 120 121 <!-- An array of Denylisted EtherType, packets with EtherTypes within this array 122 will be dropped. 123 TODO: are these proper values? 124 This configuration has been deprecated and is not functional in Android V+. --> 125 <integer-array name="config_apfEthTypeDenyList"> 126 <item>0x88A2</item> 127 <item>0x88A4</item> 128 <item>0x88B8</item> 129 <item>0x88CD</item> 130 <item>0x88E1</item> 131 <item>0x88E3</item> 132 </integer-array> 133 134 <!-- Whether to validate DUN networks. This is unused and always true on U+. --> 135 <bool name="config_validate_dun_networks">false</bool> 136 137 <!-- Configuration for including DHCP domain search list option --> 138 <bool name="config_dhcp_client_domain_search_list">false</bool> 139</resources> 140