apn 配置

 

Android 7.0 插卡后APN信息的加载流程、UI界面编辑APN的流程及Android中APN配置相关的漏洞

 

http://blog.csdn.net/gaugamela/article/details/53199141

 

Android 增加预置的APN信息

 

http://blog.csdn.net/zhoumushui/article/details/50786031

 

 

xxx@ubuntu-server:~$ grep -rsn "device-vendor" ./android/device/
./android/device/common/populate-new-device.sh:119:\$(call inherit-product-if-exists, vendor/$1/$2/device-vendor.mk)
./android/device/common/populate-new-device.sh:151:cat > vendor/$1/$2/device-vendor.mk << EOF
./android/device/xxx/common/common64.mk:5:# device-vendor.mk first to make sure QC specific files gets installed.
./android/device/xxx/common/common64.mk:6:$(call inherit-product-if-exists, $(QCPATH)/common/config/device-vendor.mk)
./android/device/xxx/common/common.mk:5:# device-vendor.mk first to make sure QC specific files gets installed.
./android/device/xxx/common/common.mk:6:$(call inherit-product-if-exists, $(QCPATH)/common/config/device-vendor.mk)

 

 

xxx@ubuntu-server:~$ grep -rsn "system/etc/apns-conf.xml" ./android/
./android/vendor/xxx/proprietary/common/config/device-vendor.mk:91:    PRODUCT_COPY_FILES := $(XML_CONF_PATH)/apns-conf.xml:system/etc/apns-conf.xml $(PRODUCT_COPY_FILES)

 

  XML_CONF_PATH := vendor/xxx/proprietary/telephony-apps/etc

 

vendor/xxx/proprietary/telephony-apps/etc/apns-conf.xml      --->           system/etc/apns-conf.xml

 

 

 

APN(default、mms、supl、dun、hipri接入点部类的区别)

APN(default、mms、supl、dun、hipri接入点类型的区别)

 

设置APN上网时,大家可能经常遇到这个问题:
为什么有时要填写default有时要填写supl,而彩信又偏偏要mms?
这个问题留到最后,让我们看看每个接入点类型的含义:
英文原文来自于Google Android Developers
原文连接:http://developer.android.com/reference/android/net/ConnectivityManager.html
我尽量用通俗易懂的语言来解释每个类型的含义,若您是开发者,请尽量阅读英文原文。

1、default
‍默认网络连接,当激活时所有数据传输都使用该连接,不能与其他网络连接同时使用

?View Code JAVA

1
2
3
4
5
6
[java] view plaincopyprint?

 

  1. <span style="color: rgb(8, 0, 0); font-style: italic; font-weight: bold;">/**
  2.   * The Default Mobile data connection. When active, all data traffic
  3.   * will use this connection by default. Should not coexist with other
  4.   * default connections.
  5.   */</span> 
  6.   <span style="color: rgb(0, 0, 0); font-weight: bold;">public</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">static</span> <span style="color: rgb(0, 0, 0); font-weight: bold;">final</span> <span style="color: rgb(0, 102, 0); font-weight: bold;">int</span> TYPE_MOBILE <span style="color: rgb(51, 153, 51);">=</span> <span style="color: rgb(204, 102, 204);">0</span><span style="color: rgb(51, 153, 51);">;</span> 
[java] view plaincopyprint?

 

  1. <span style="color:#880000;font-style: italic; font-weight: bold;">/** 
  2.   * The Default Mobile data connection. When active, all data traffic 
  3.   * will use this connection by default. Should not coexist with other 
  4.   * default connections. 
  5.   */</span>  
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值