Skip to content

Instantly share code, notes, and snippets.

@escape0707
Forked from tonyseek/android-captive.sh
Last active March 18, 2022 21:24
Show Gist options
  • Save escape0707/96aa02978fa9451324cf532934391437 to your computer and use it in GitHub Desktop.
Save escape0707/96aa02978fa9451324cf532934391437 to your computer and use it in GitHub Desktop.
Overrides the captive portal settings of Android in the People's Republic China Mainland
adb shell settings put global captive_portal_http_url http://www.qualcomm.cn/generate_204
adb shell settings put global captive_portal_https_url https://www.qualcomm.cn/generate_204
# adb shell settings put global captive_portal_fallback_url http://www.google.cn/generate_204
# adb shell settings put global captive_portal_other_fallback_urls http://g.cn/generate_204
# For Android 7.0
adb shell settings put global captive_portal_server www.qualcomm.cn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment