1.wifi Adapter
hardware/libhardware_legacy/wifi/wifi_ralink3070.c
2.
wifi的JNI放在
./frameworks/base/core/jni/android_net_wifi_Wifi.cpp:103:
中定义,java的接口在
frameworks/base/wifi/java/android/net/wifi/WifiNative.loadDriver
3.真正的龙骨
./frameworks/base/services/java/com/android/server/WifiService.java
完成了IWifiManager.aidl的接口定义
4./base/services/java/com/android/server/ConnectivityService.java
5.c&c++中的属性设置和读取用property_set/property_get,
java的属性设置和读取用SystemProperties.set/SystemProperties.get
6.frameworks/base/services/java/com/android/server/ConnectivityService.java
设置了net.dns1
7.Eth setting
res在packages/apps/Settings/res/values/strings.xml
定义了很多字符串
8.
netcfg 调用了do_dhcp(),
./system/core/libnetutils/dhcpclient.c:549:int do_dhcp(char *iname)
9.dhcpcd
设置的属性是在external/dhcpcd/dhcpcd-hooks/95-configured
10.此文件定义了很多网络操作的native 本地接口,如runDhcp
./frameworks/base/core/java/android/net/NetworkUtils.java
响应的JNI放在
./frameworks/base/core/jni/android_net_NetUtils.cpp
11.dhcp通过NetworkUtils.runDhcp
---->android_net_utils_runDhcp() [./frameworks/base/core/jni/android_net_NetUtils.cpp]
------->dhcp_do_request() [system/core/libnetutils/dhcp_utils.c]
阅读(1618) | 评论(0) | 转发(0) |