1.在 apns-conf.xml 中配置 IPV4 无效?
packages/apps/Settings/res/values/arrays.xml
<!-- Authentication Types used in APN editor -->
<string-array name="apn_protocol_entries">
<item>IPv4</item>
<item>IPv6</item>
<item>IPv4/IPv6</item>
</string-array>
<string-array translatable="false" name="apn_protocol_values">
<!-- Do not translate. -->
<item>IP</item>
<!-- Do not translate. -->
<item>IPV6</item>
<!-- Do not translate. -->
<item>IPV4V6</item>
</string-array>
apns-conf.xml 中配置的protocal只能是 IP/IPV6/IPV4VP 这三个值
2.在 apns-conf.xml 中配置 authenticationtype=“PAP” 无效?
packages/providers/TelephonyProvider/src/com/android/providers/telephony/TelephonyProvider.java
private ContentValues getRow(XmlPullParser parser) {
......
addIntAttribute(parser, "authtype", map, AUTH_TYPE);
......
}
只能配置 authtype 而不能配置 authenticationtype
authtype 0: None, 1: PAP, 2: CHAP, 3: PAP or CHAP.