Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Overrides the captive portal settings of Android in the People's Republic China Mainland
#!/usr/bin/env sh
adb shell settings put global captive_portal_fallback_url http://g.cn/generate_204
adb shell settings put global captive_portal_http_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
adb shell settings put global captive_portal_other_fallback_urls http://www.qualcomm.cn/generate_204
@escape0707
Copy link

escape0707 commented Oct 30, 2021

@jacoblyw That seems to be a quite scammy website. I highly suggest you to flash your whole system, including recovery and boot loader if you could.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment