User Tools

Site Tools


public:modify_the_url_which_android_uses_for_checking_internet_connectivity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
public:modify_the_url_which_android_uses_for_checking_internet_connectivity [2016/02/11 05:50] fangfufupublic:modify_the_url_which_android_uses_for_checking_internet_connectivity [2017/10/13 00:31] fangfufu
Line 1: Line 1:
 ====== Modify the URL which Android uses for checking Internet connectivity ====== ====== Modify the URL which Android uses for checking Internet connectivity ======
 +https://www.v2ex.com/t/303889
 I am currently in a hostile environment which blocks my connection to Google. From Lollipop onward [(Citation needed)], Android checks the Internet connectivity of your current Wifi connection by making a HTTP request. Due to the fact that I cannot connect to Google, my Nexus 5 keeps thinking that my Wifi connection is not working, and it keeps trying to use the EDGE network. This costs me money. I am currently in a hostile environment which blocks my connection to Google. From Lollipop onward [(Citation needed)], Android checks the Internet connectivity of your current Wifi connection by making a HTTP request. Due to the fact that I cannot connect to Google, my Nexus 5 keeps thinking that my Wifi connection is not working, and it keeps trying to use the EDGE network. This costs me money.
  
Line 15: Line 16:
   - Enable the USB debugging on your Android phone, run the following in the shell on your computer:   - Enable the USB debugging on your Android phone, run the following in the shell on your computer:
 <code> <code>
-adb shell "settings put global captive_portal_server $YOUR_HOST_NAME"+adb shell "settings put global captive_portal_server murica.fangfufu.co.uk" 
 +adb shell "settings put global captive_portal_https_url https://murica.fangfufu.co.uk/generate_204"; 
 +adb shell "settings put global captive_portal_http_url http://murica.fangfufu.co.uk/generate_204";
 </code> </code>
  
public/modify_the_url_which_android_uses_for_checking_internet_connectivity.txt · Last modified: 2018/03/31 00:38 by 127.0.0.1