现象:能ping通百度ip,不能ping通 wwww.baidu.com(电话模块3G网络)
android DNS设置和标准文件系统有所不一样,需要在init.rc(androidx86-froyo/device/intel/us15/init.rc)中进行设置,
在setprop
net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
后加上
setprop
net.dns1
192.168.2.1
setprop net.dns2 xxx.xxx.xxx.xxx来设置DNS

看起来是设置环境变量,而linux的可以设置在resolve文件里

更多相关文章

  1. android:EditText属性
  2. ListView分隔线
  3. EditText的光标选择(android.text.Selection)&输入指定字符
  4. [Android1.6]继承BaseAdapter为GridView设置数据时设置setLayout
  5. android:windowSoftInputMode属性使用
  6. 设置TextView文字居中
  7. 使用android studio 来开发hello world app的时候,遇到的一些坑。
  8. 一个不错的启动菜单显示屏动画效果
  9. Android(安卓)ImageView图片自适应

随机推荐

  1. [Android 动画]简要分析一下Animator 与
  2. Android应用的自动升级、更新模块的实现
  3. Android 以webview的方式集成Dcloud h5+S
  4. Android开机启动shell脚本(Android 8.0测
  5. Google 发布 Android 版 Chrome 浏览器,只
  6. 一个简单的demo学习Android远程Service(AI
  7. Android USB通信-实现lsusb
  8. Android03_事件处理
  9. Android 性能测试实践(一)
  10. Android 通知栏Notification的整合 全面