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

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


  • 相关阅读:
    sublime text 4 vim 插件配置
    ssh-keygen 的使用
    distribution transaction solution
    bilibili 大数据 视频下载 you-get
    Deepin 20.2.1 安装 MS SQL 2019 容器版本
    【转】使用Linux下Docker部署MSSQL并加载主机目录下的数据库
    【转】You Can Now Use OneDrive in Linux Natively Thanks to Insync
    dotnet 诊断工具安装命令
    Linux 使用 xrandr 设置屏幕分辨率
    【转】CentOS 7.9 2009 ISO 官方原版镜像下载
  • 原文地址:https://www.cnblogs.com/james1207/p/3279670.html
Copyright © 2011-2022 走看看