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 65 <!-- Customized neighbor unreachable probe parameters. --> 66 <integer name="config_nud_steadystate_solicit_num">10</integer> 67 <integer name="config_nud_steadystate_solicit_interval">750</integer> 68 <integer name="config_nud_postroaming_solicit_num">5</integer> 69 <integer name="config_nud_postroaming_solicit_interval">750</integer> 70 71 <!-- Whether to force considering DNS probes returning private IP addresses as failed 72 when attempting to detect captive portals. 73 The impact of this feature will be evaluated separately through experiments. 74 Force-enabling the feature regardless of the experiment results is not advised, as it 75 could result in valid captive portals being incorrectly classified as having no 76 connectivity.--> 77 <bool name="config_force_dns_probe_private_ip_no_internet">false</bool> 78 79 <!-- Define the min and max range of the content-length that should be in the HTTP response 80 header of probe responses for the validation success/failed regexp to be used. The RegExp 81 will be used to match the probe response content when the content-length is inside this 82 interval(Strictly greater than the config_min_matches_http_content_length and strictly 83 smaller than the config_max_matches_http_content_length). When the content-length is out of 84 this interval, the RegExp will not be used. --> 85 <integer name="config_min_matches_http_content_length">0</integer> 86 <integer name="config_max_matches_http_content_length">0</integer> 87 <!-- A regular expression to match the content of a network validation probe. 88 Treat the network validation as failed when the content matches the 89 config_network_validation_failed_content_regexp and treat the network validation as success 90 when the content matches the config_network_validation_success_content_regexp. If the 91 content matches both of the config_network_validation_failed_content_regexp and 92 the config_network_validation_success_content_regexp, the result will be considered as 93 failed. --> 94 <string name="config_network_validation_failed_content_regexp" translatable="false"></string> 95 <string name="config_network_validation_success_content_regexp" translatable="false"></string> 96 97 <!-- URL for evaluating bandwidth. If the download cannot be finished before the timeout, then 98 it means the bandwidth check is failed. If the download can be finished before the timeout, 99 then it means the bandwidth check is passed. So the OEMs should set this URL appropriately. 100 --> 101 <string name="config_evaluating_bandwidth_url" translatable="false"></string> 102 <!-- A timeout for evaluating bandwidth. --> 103 <integer name="config_evaluating_bandwidth_timeout_ms"></integer> 104 <!-- The retry timer will start from config_min_retry_timer, and the timer will be exponential 105 increased until reaching the config_max_retry_timer. --> 106 <integer name="config_evaluating_bandwidth_min_retry_timer_ms"></integer> 107 <integer name="config_evaluating_bandwidth_max_retry_timer_ms"></integer> 108</resources> 109