1

I live in mainland China and uses a Google Pixel bought from Hong Kong. Current system version is 7.1.2. As you might know, Google servers are not accessible in China without the use of VPNs and such. So whenever I connect to a wifi network, my phone tries to connect to Google connection test server, but does not do that via ShadowSocksR (my VPN app) so the test always fails and the phone tells me the wifi has no internet connection, which isn't the case and isn't very helpful either.

So I am wondering, is it possible to designate an alternative connection test site that is accessible within mainland China? I know the one Windows 10 uses (http://www.msftconnecttest.com/redirect) is usable so is there any way I can let my Pixel use it by default?

1 Answer 1

3

Yes. Since Android 7.1 the method is a little different (not gonna mention the old method here) - fire up adb shell then use the command settings put global captive_portal_https_url **site domain here**.

In the past g.cn (Google's remaining Chinese domain) worked alright, but since Nougat for better reliability I'm using one hosted by V2EX: captive.v2ex.co/generate_204, so the full command becomes settings put global captive_portal_https_url https://captive.v2ex.co/generate_204.

4
  • Looks great! One extra question: is this url reliable accessing from UK? I study abroad in UK during term time and only come back to China during long holidays. It would be nice if I don't have to change this setting every time I fly.
    – cyqsimon
    Commented Sep 8, 2017 at 3:25
  • I haven't been abroad so I can't really tell. The default is https://clients3.google.com/generate_204 in case you want to switch back. P.S. You Chinese?
    – Andy Yan
    Commented Sep 8, 2017 at 4:04
  • Yeah. Only using English because of other potential viewers.
    – cyqsimon
    Commented Sep 8, 2017 at 5:29
  • Same here (I did use "haven't been abroad") :)
    – Andy Yan
    Commented Sep 8, 2017 at 6:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .