android 8.1 wifi prompt "connected but can not access the Internet" solution

The main problem is the GFW

 

adb shell command to solve

settings put global captive_portal_detection_enabled 1
settings put global captive_portal_mode 1
settings put global captive_portal_use_https 0
settings put global captive_portal_server connect.rom.miui.com
settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204

Note, need to switch flight mode is in effect

Guess you like

Origin www.cnblogs.com/ziyouchutuwenwu/p/11429284.html