首先,あなたはクイック設定パネルでデータ通信のスイッチがオンになっていることを確認する必要があります
以下のすべてのコードは、改行して入力し、2 行を同時に入力することはできません。
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