android6.0 netd设置dns

# adb logcat -s ConnectivityService | grep Dns

03-08 13:56:03.480  1265  1437 D ConnectivityService: Setting Dns servers for network 101 to [/192.168.2.1]

frameworks/base/services/core/java/com/android/server/ConnectivityService.java
private void updateDnses(){
   mNetd.setDnsServersForNetwork();
}

 
 

你可能感兴趣的:(路由学习,Android,WIFI)