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
Merged-In: Ib7f41f470ef1a9c7712f2477ebfab44e915cf1b9
(cherry picked from commit 990ea84d2d)
This commit is contained in:
committed by
Lorenzo Colitti
parent
b5fa3532db
commit
7035b7949c
12
packages/NetworkStack/res/values-mcc460/config.xml
Normal file
12
packages/NetworkStack/res/values-mcc460/config.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user