首先,你要確定自己在快捷欄打開了流量開關
下面的所有代碼,分行輸入,不可以一次輸入兩行。
Android 11
adb shell settings put global captive_portal_mode 0
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
Android 10 - Android7.1.1
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
Android 7.1 & Android 7.0
adb shell settings delete global captive_portal_server
adb shell settings put global captive_portal_detection_enabled 0