微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > 当mPreferredUpStreamBmobileApn为 dun时,tethering无法使用

当mPreferredUpStreamBmobileApn为 dun时,tethering无法使用

时间:10-02 整理:3721RD 点击:

[android Version]

6575/6577 Android V4.0
[DESCRIPTION]
若是没有打开mtk_DEDICATEDAPN_SUPPORT这个option的版本,如果当前type为dun的pdp没有激活时
,tethering framwork这边是不会去自动打开的。

[SOLUTION]

将php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks\base\services目录下面Tethering.java文件的chooseUpStreamType方法的如下地方

if (upType == ConnectivityManager.TYPE_NONE) {
/** M: change policy don't enable data connection if no data connection is
exist */
/*boolean tryAgainLater = true;
if ((tryCell == TRY_TO_SETUP_MOBILE_CONNECTION) &&
(turnOnUpstreamMobileConnection(mPreferredUpstreamMobileApn) == true)) {
// we think mobile should be coming up - don't set a retry
tryAgainLater = false;
}
if (tryAgainLater) {
sendMessageDelayed(CMD_RETRY_UPSTREAM, UPSTREAM_SETTLE_TIME_MS);
}*/
}
改成如下:
if (upType == ConnectivityManager.TYPE_NONE) {
/** M: change policy don't enable data connection if no data connection is
exist */
boolean tryAgainLater = true;
if ((tryCell == TRY_TO_SETUP_MOBILE_CONNECTION) &&
(turnOnUpstreamMobileConnection(mPreferredUpstreamMobileApn) == true)) {
we think mobile should be coming up - don't set a retry
tryAgainLater = false;
}
if (tryAgainLater) {
sendMessageDelayed(CMD_RETRY_UPSTREAM, UPSTREAM_SETTLE_TIME_MS);
}
}

mark

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top