How to remove the network exclamation mark in Android

Source: Internet
Author: User

the article and everyone to share is different version of the Android development, remove the network exclamation method, I hope that this article to help you.
it seems that since the start of Android 5.0 Lollipop, Google has added a connectivity test for the portal Server portals to the effect that when connecting to public Wi-Fi that needs to be verified, can automatically pop up the Wi-Fi landing prompt page According to the connection test situation, but the default address is [non-existent in the country] gstatic.com, in view of the domestic wonderful environment, regardless of Wi-Fi is not good, will be considered the network is not through the display an exclamation point hint (Android 7.0 Nougat changed to a small fork) ...
Note: The methods mentioned in this article do not require root, but ADB tools are required and developer options are turned on.
Solutions for Android 5.0 Lollipop & Android 6.0 Marshmallow
in Android 5.0 Lollipop & Android 6.0 Marshmallow, according to the analysis of the small fox, can be solved with the following two methods
• Method One: Directly disable connectivity testing for Portal Server
With the developer option turned on, connect the computer, install the latest version of the ADB tool, and then execute the following command:
Adbshell "Settings put global captive_portal_detection_enabled 0"
then the flight mode, there is no, but there is a drawback, is that if you connect to public WiFi need to verify, you will not automatically pop up the verification page, you need to open your browser to access any page.
• Method Two: Change the default Portal Server address
There are some enthusiastic people on the internet to provide a normal connection in the domestic portal server, including small foxes, V2ex, g.cn, and so on, I personally prefer g.cn, also under the ADB input the following command can be achieved to modify the purpose of the Portal server:
Adbshell "Settings put global captive_portal_server g.cn"
or
Adbshell "Settings put global captive_portal_server captive.v2ex.co"
method Two I always use, but until the Android 7 nougat This method is invalid ... If you use the method one, should not look down, the following are based on method two adjustment.
Solutions for Android 7.0 Nougat
this time, the previous method failed, so the search on the internet, later someone found that the verification method to HTTPS, and before the HTTP, so enthusiastic people's servers have failed, so V2ex also upgraded the services previously provided, opened a sub-domain dedicated to do the portal Server and provides two ways to connect both HTTP and HTTPS. The same available enthusiasts server has CN-... If you used to be v2ex, then after the V2 upgrade, you will be restored to the detection, no need to modify the settings.
The Android 7 nougat can still be solved by disabling the detection method, but I prefer the non-destructive solution, so, the above method two of the server exchange on the line:
Adbshell "Settings put global captive_portal_server www.google.cn"
Solutions for Android 7.1.1 nougat
to this version, do not know why HTTPS server also took a break, it is ill-fated, my Nexus 5X do not want to unlock and root, so continue to find ways, until someone found this time no matter how to change, will be connected to gstatic.com this meter above, So someone started by changing the hosts method to solve, but I do not want to root ...
so just found a way, this time need to directly modify the URL of the portal Server ... Because it doesn't automatically add/generate_204 at the end ...
Please execute the following command
Adbshell "Settings put global captive_portal_https_url https://www.google.cn/generate_204"
or
Adbshell "Settings put global captive_portal_https_url https://captive.v2ex.co/generate_204"
at the moment, I just upgraded to 7.1.1 Nexus 5x to solve this problem, do not know what will happen next version upgrade ...
P.S: Personal highly recommended a variety of scientific internet needs of children's shoes, can buy a Google Project fi sim card to be used in Japan, natural science online, with the national mobile phone number, barrier-free smooth activation of Google Now/location and other services, And so on, write and write the use of fi experience.

Source: Mr.

How to remove the network exclamation mark in Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.