Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
topics:android-captive-portal [2017/03/25 16:07] orzfly created |
topics:android-captive-portal [2017/04/23 20:26] (current) orzfly 7.1.2 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Android Captive Portal URLs & Commands ====== | ====== Android Captive Portal URLs & Commands ====== | ||
+ | |||
+ | ===== Commands ===== | ||
+ | |||
+ | <code bash captive-disable.sh> | ||
+ | settings put global captive_portal_detection_enabled 0 | ||
+ | settings put global captive_portal_mode 0 | ||
+ | </ | ||
<code bash captive-v2ex-co.sh> | <code bash captive-v2ex-co.sh> | ||
settings put global captive_portal_detection_enabled 1 | settings put global captive_portal_detection_enabled 1 | ||
+ | settings put global captive_portal_mode 1 | ||
settings put global captive_portal_use_https 0 | settings put global captive_portal_use_https 0 | ||
settings put global captive_portal_server captive.v2ex.co | settings put global captive_portal_server captive.v2ex.co | ||
Line 11: | Line 19: | ||
<code bash connect-rom-miui-com.sh> | <code bash connect-rom-miui-com.sh> | ||
settings put global captive_portal_detection_enabled 1 | settings put global captive_portal_detection_enabled 1 | ||
+ | settings put global captive_portal_mode 1 | ||
settings put global captive_portal_use_https 0 | settings put global captive_portal_use_https 0 | ||
settings put global captive_portal_server connect.rom.miui.com | settings put global captive_portal_server connect.rom.miui.com | ||
Line 19: | Line 28: | ||
<code bash developers-google-cn.sh> | <code bash developers-google-cn.sh> | ||
settings put global captive_portal_detection_enabled 1 | settings put global captive_portal_detection_enabled 1 | ||
+ | settings put global captive_portal_mode 1 | ||
settings put global captive_portal_use_https 0 | settings put global captive_portal_use_https 0 | ||
settings put global captive_portal_server developers.google.cn | settings put global captive_portal_server developers.google.cn | ||
Line 27: | Line 37: | ||
<code bash www-qualcomm-cn.sh> | <code bash www-qualcomm-cn.sh> | ||
settings put global captive_portal_detection_enabled 1 | settings put global captive_portal_detection_enabled 1 | ||
+ | settings put global captive_portal_mode 1 | ||
settings put global captive_portal_use_https 0 | settings put global captive_portal_use_https 0 | ||
settings put global captive_portal_server www.qualcomm.cn | settings put global captive_portal_server www.qualcomm.cn | ||
Line 33: | Line 44: | ||
</ | </ | ||
- | ===== References | + | ===== Settings |
- | * https://www.noisyfox.cn/android-captive-portal.html | + | * '' |
+ | * Setting to turn off captive | ||
+ | * '' | ||
+ | * 0: '' | ||
+ | * 1: '' | ||
+ | * 2: '' | ||
+ | * '' | ||
+ | * Whether to use HTTPS for network validation. This is enabled by default and the setting needs to be set to 0 to disable it. This setting is a misnomer because captive portals don't actually use HTTPS, but it's consistent with the other settings. | ||
+ | * '' | ||
+ | * The server used for captive portal detection upon a new conection. A 204 response code from the server is used for validation. | ||
+ | * '' | ||
+ | * The URL used for HTTP captive portal detection upon a new connection. A 204 response code from the server is used for validation. | ||
+ | * '' | ||
+ | * The URL used for HTTPS captive portal detection upon a new connection. A 204 response code from the server is used for validation. | ||
+ | * '' | ||
+ | * The URL used for fallback HTTP captive portal detection when previous HTTP and HTTPS captive portal detection attemps did not return a conclusive answer. | ||
+ | * '' | ||
+ | * Which User-Agent string to use in the header of the captive | ||
+ | ===== See Alsos ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | {{tag> |