最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

Android WiFi 连接 (Connect,no Internet,带叉)

业界 admin 4浏览 0评论

Android 7.1.2 平台

连接WiFi后,显示connect,no Internet,同时伴有notifaction的通知。

产生现象原因:

frameworks/base/services/core/java/com/android/server/connectivity/NetworkMonitor.java

frameworks/base/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java

先看NetworkMonitor.java

// Default configuration values for captive portal detection probes.
    // TODO: append a random length parameter to the default HTTPS url.
    // TODO: randomize browser version ids in the default User-Agent String.
    private static final String DEFAULT_HTTPS_URL     = "https://www.google/generate_204";   
    //private static final String DEFAULT_HTTP_URL      =
            //"http://connectivitycheck.gstatic/generate_204"; 
    private static final String DEFAULT_HTTP_URL =
            " http://www.noisyfox/generate_204"
    private stat

Android 7.1.2 平台

连接WiFi后,显示connect,no Internet,同时伴有notifaction的通知。

产生现象原因:

frameworks/base/services/core/java/com/android/server/connectivity/NetworkMonitor.java

frameworks/base/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java

先看NetworkMonitor.java

// Default configuration values for captive portal detection probes.
    // TODO: append a random length parameter to the default HTTPS url.
    // TODO: randomize browser version ids in the default User-Agent String.
    private static final String DEFAULT_HTTPS_URL     = "https://www.google/generate_204";   
    //private static final String DEFAULT_HTTP_URL      =
            //"http://connectivitycheck.gstatic/generate_204"; 
    private static final String DEFAULT_HTTP_URL =
            " http://www.noisyfox/generate_204"
    private stat
发布评论

评论列表 (0)

  1. 暂无评论