public:modify_the_url_which_android_uses_for_checking_internet_connectivity
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:modify_the_url_which_android_uses_for_checking_internet_connectivity [2016/02/06 10:29] – created fangfufu | public:modify_the_url_which_android_uses_for_checking_internet_connectivity [2018/03/31 00:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Modify the URL which Android uses for checking Internet connectivity ====== | ||
+ | https:// | ||
+ | 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. | ||
+ | |||
+ | In order to solve that problem, you need to have control over a server which has Apache. | ||
+ | |||
+ | - Add this to your website' | ||
+ | < | ||
+ | < | ||
+ | RewriteEngine On | ||
+ | RewriteCond %{REQUEST_URI} / | ||
+ | RewriteRule $ / [R=204] | ||
+ | </ | ||
+ | </ | ||
+ | - Enable the '' | ||
+ | - Enable the USB debugging on your Android phone, run the following in the shell on your computer: | ||
+ | < | ||
+ | adb shell " | ||
+ | adb shell " | ||
+ | adb shell " | ||
+ | </ | ||