zoukankan      html  css  js  c++  java
  • [置顶] Android系统移植与调试之------->如何修改Android设备添加3G上网功能

    1、首先先来看一下修改前后的效果对比图

    step1、插上3G设备前


    step2、插上3G设备后,获取信号中。。。。


    step3、插上3G设备后,获取到信号


    step4、使用3G信号浏览网页



    2、下面讲解一下具体的修改步骤

    step1、进入到device/other/TBDG1073/overlay/frameworks/base/core/res/res/values目录下

    step2、修改config.xml 文件

        <!-- List of regexpressions describing the interface (if any) that represent tetherable
             Wifi interfaces.  If the device doesn't want to support tethering over Wifi this
             should be empty.  An example would be "softap.*" -->
        <string-array translatable="false" name="config_tether_wifi_regexs">
    	<!--remove 3g ,edited by ouyang-->
            <!--<item>"wlap0"</item>
            <item>"wl0.1"</item>-->
    
            <!--open 3g you can remove the notes, edited by ouyang-->
            <item>"wlap0"</item>
            <item>"wl0.1"</item>
            <item>"wlan0"</item>
        </string-array>
          
        <!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering -->
        <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
        <!== [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH -->
        <integer-array translatable="false" name="config_tether_upstream_types">
            <item>0</item>
            <item>9</item>
        </integer-array>



    step2、修改device/other/TBDG1073/system.prop文件,修改属性hw.nophone=false 

    hw.nophone=false     
    

    step3、修改 device/other/TBDG1073/TBDG1073.mk文件, 注释掉 REMOVE_PHONE_APKS := true 




    ==================================================================================================

      作者:欧阳鹏  欢迎转载,与人分享是进步的源泉!

      转载请保留原文地址http://blog.csdn.net/ouyang_peng

    ==================================================================================================


  • 相关阅读:
    什么是 go vendor
    Golang包管理工具之govendor的使用
    国内的go get问题的解决
    集群、限流、缓存 BAT 大厂无非也就是这么做
    Gin框架中文文档
    GO——beego简单开发实例(二)
    C++11 并发指南四(<future> 详解一 std::promise 介绍)(转)
    C++11 并发指南三(std::mutex 详解)(转)
    C++11 并发指南二(std::thread 详解)(转)
    用C++设计一个不能被继承的类(转)
  • 原文地址:https://www.cnblogs.com/james1207/p/3279670.html
Copyright © 2011-2022 走看看