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