V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
orzfly
V2EX  ›  Android

Android 7.1.2 Captive 检测逻辑的变动 & 关于要用 HTTPS 来检测呢?

  •  
  •   orzfly · Apr 24, 2017 · 13446 views
    This topic created in 3295 days ago, the information mentioned may be changed or developed.

    Android 7.1.2 中使用 captive_portal_mode 代替了 captive_portal_detection_enabled ,取值为 0 、 1 或者 2 。

    • 0: 不检测登陆页。
    • 1: 检测到登陆页时,提醒用户登陆。
    • 2: 检测到登陆页时,立刻断开网络,并且以后也不重连。

    更多信息: https://wiki.orzfly.com/topics/android-captive-portal

    关于为什么要用 HTTPS 来检测呢? https://mist.so/@orzfly/3091

    morethansean
        1
    morethansean  
       Apr 24, 2017
    还没仔细重读代码……但平着我的记忆……好像你的理解问题啊?
    orzfly
        2
    orzfly  
    OP
       Apr 24, 2017 via Android
    lishunli
        3
    lishunli  
       Apr 24, 2017
    感谢
    之前用 www.google.cn 偶尔还是有问题的,换用 developers.google.cn 看看
    orzfly
        4
    orzfly  
    OP
       Apr 26, 2017
    @morethansean 所以我到底哪儿说错了呢?还请您多多指教……
    kmahyyg
        5
    kmahyyg  
       Apr 27, 2017 via Android
    感谢

    目前用着 captivemgr ,酷安,挺好用的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2572 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 06:09 · PVG 14:09 · LAX 23:09 · JFK 02:09
    ♥ Do have faith in what you're doing.