模块:RM500x
现象:5G模块已经调通(这里指的是可以ping 通 8.8.8.8),系统起来后,usb0/wwan0是有的但过一会儿没了。
原因:5G模块在Android 12中拨号成功后会测一会儿速,测完后没问题会自动关闭并释放网络资源。若想开机自启5G模块则不能让系统释放网络资源。
解决方法:去掉以下释放网络资源的补丁。
diff --git a/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java b/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java
index 279da92b6..653ae228c 100644
--- a/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java
+++ b/opt/telephony/src/java/com/android/internal/telephony/dataconnection/TelephonyNetworkFactory.java
@@ -344,10 +344,10 @@ public class TelephonyNetworkFactory extends NetworkFactory {
// to remove network requests from both DcTrackers.
// Note that this part will be refactored in T, where we won't even have DcTracker at
// all.
- releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
- AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
- releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
- AccessNetworkConstants.TRANSPORT_TYPE_WLAN);
+// releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
+// AccessNetworkConstants.TRANSPORT_TYPE_WWAN);
+// releaseNetworkInternal(networkRequest, DcTracker.RELEASE_TYPE_NORMAL,
+// AccessNetworkConstants.TRANSPORT_TYPE_WLAN);
}
}
|