Created
April 18, 2020 06:18
-
-
Save perqin/59b1e437876c402752ed48045de666cf to your computer and use it in GitHub Desktop.
Overrides the captive portal settings of Android devices (All version).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aggregated from the internet. | |
# adb is required. | |
# You can replace the url with any valid one. This gist use miui.com's. | |
# You may need to reconnect the network to apply the change. | |
# Android 7.1.1-10.0 | |
# Source: https://www.noisyfox.io/android-captive-portal.html | |
# Source: https://hky.moe/archives/162/ | |
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 | |
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 | |
# Android 5.0-7.1.0 | |
# Source: https://www.noisyfox.io/android-captive-portal.html | |
# Start from 7.0, the server must support HTTPS | |
adb shell settings put global captive_portal_server connect.rom.miui.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment