#### 本章主要内容: * 介绍Android Framework中的WifiService及相关知识; * 介绍Android Framework中的WifiWatchdogStateMachine; * 介绍Android Framework中和Captive Port Check相关知识 #### 本章所涉及的源代码文件名及位置 * IWifiManager.aidl   ~~~ frameworks/base/wifi/java/android/net/wifi/IWifiManager.aidl ~~~ * SystemServer.java   ~~~ frameworks/base/services/java/com/android/server/SystemServer.java ~~~ * WifiService.java   ~~~ frameworks/base/services/java/com/android/server/WifiService.java ~~~ * StateMachine.java   ~~~ frameworks/base/core/java/com/android/internal/util/StateMachine.java ~~~ * AsyncChannel.java   ~~~ frameworks/base/core/java/com/android/internal/util/AsyncChannel.java ~~~ * ·WifiManager.java   ~~~ frameworks/base/wifi/java/android/net/wifi/WifiManager.java ~~~ * ·WifiStateMachine.java  ~~~ frameworks/base/wifi/java/android/net/wifi/WifiStateMachine.java ~~~ * ·WifiNative.java  ~~~ frameworks/base/wifi/java/android/net/wifi/WifiNative.java ~~~ * ·android_net_wifi_Wifi.cpp   ~~~ frameworks/base/core/jni/android_net_wifi_Wifi.cpp ~~~ * ·wifi.c   ~~~ hardware/libhardware_legacy/wifi/wifi.c ~~~ * ·WifiMonitor.java  ~~~ frameworks/base/wifi/java/android/net/wifi/WifiMonitor.java ~~~ * ·SupplicantStateTracker.java   ~~~ frameworks/base/wifi/java/android/net/wifi/SupplicantStateTracker.java ~~~ * ·WifiWatchdogStateMachine.java   ~~~ frameworks/base/wifi/java/android/net/wifi/WifiWatchdogStateMachine.java ~~~ * ·NewtorkInfo.java  ~~~ frameworks/base/core/java/android/net/NetworkInfo.java ~~~ * CaptivePortalTracker.java  ~~~ frameworks/base/core/java/android/net/CaptivePortalTracker.java ~~~