From de568f7289648b43c7e9c4d51bf102b2c6b9ba65 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Thu, 11 Apr 2019 15:36:06 +0900 Subject: [PATCH] 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 --- packages/NetworkStack/res/values-mcc460/config.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/NetworkStack/res/values-mcc460/config.xml diff --git a/packages/NetworkStack/res/values-mcc460/config.xml b/packages/NetworkStack/res/values-mcc460/config.xml new file mode 100644 index 0000000000000..fd4a8481ab225 --- /dev/null +++ b/packages/NetworkStack/res/values-mcc460/config.xml @@ -0,0 +1,12 @@ + + + + https://connectivitycheck.gstatic.com/generate_204 + + http://www.googleapis.cn/generate_204 + +