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

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


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

字节卷动

你的鼓励将是我创作的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值