diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2019-04-11 15:36:06 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2019-04-11 17:23:35 +0900 |
commit | 482bf6a90bdcfd162556303a3e751c9264e499e1 (patch) | |
tree | 3f31e864f66c78a36008f4fc6ab3bc4ad772c24a | |
parent | 816dd2a60f7b55ac3253953f74ed238189e60db5 (diff) |
Change the validation URL for Chinese SIMs
The default HTTPS and fallback validation URLs are not accessible from
China, so users in China never get a validated network on WiFi with the
default AOSP settings. OEMs selling devices targeting China typically
change the check URLs for that reason.
When the device uses a Chinese SIM card, change the default validation
URLs to URLs accessible accessible from China as of now.
Test: inserted China SIM, WiFi off/on, dumpsys network_stack shows new
URL used
Bug: 111819230
Change-Id: Ib7f41f470ef1a9c7712f2477ebfab44e915cf1b9
-rw-r--r-- | res/values-mcc460/config.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/res/values-mcc460/config.xml b/res/values-mcc460/config.xml new file mode 100644 index 0000000..fd4a848 --- /dev/null +++ b/res/values-mcc460/config.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <!-- Network validation URL configuration for devices using a Chinese SIM (MCC 460). + The below URLs are often whitelisted by captive portals, so they should not be used in the + general case as this could degrade the user experience (portals not detected properly). + However in China the default URLs are not accessible in general. The below alternatives + should allow users to connect to local networks normally. --> + <string name="default_captive_portal_https_url" translatable="false">https://connectivitycheck.gstatic.com/generate_204</string> + <string-array name="default_captive_portal_fallback_urls" translatable="false"> + <item>http://www.googleapis.cn/generate_204</item> + </string-array> +</resources> |