— a/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java
+++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java
@@ -81,6 +81,10 @@ import java.util.regex.Pattern;
import mediatek.telephony.MtkCarrierConfigManager;
+//soda water.20230912 Intelligent switching data card
+//import com.freeme.provider.FreemeSettings;
+import android.provider.Settings;
+
public class MobileSignalController extends SignalController<
MobileSignalController.MobileState, MobileSignalController.MobileIconGroup> {
@@ -129,6 +133,11 @@ public class MobileSignalController extends SignalController<
/// M: Add for roaming icon handling for optr. @ {
private CarrierConfigManager mCarrierConfigManager;
/// @ }
+
+
- //soda water.20230912 Intelligent switching data card
- private SubscriptionManager mSubscriptionManager = null;
// TODO: Reduce number of vars passed in, if we have the NetworkController, probably don't
@@ -996,10 +1005,78 @@ public class MobileSignalController extends SignalController<
Log.d(mTag, “onSignalStrengthsChanged signalStrength=” + signalStrength +
((signalStrength == null) ? “” : (" level=" + signalStrength.getLevel())));
}
+
-
//soda water.20230912 Intelligent switching data card
-
if(mSubscriptionInfo.getSimSlotIndex()==0){
-
NetworkControllerImpl.subID1 = mSubscriptionInfo.getSubscriptionId();
-
if(signalStrength.getDbm() <= 0 && signalStrength.getDbm() >= -120){
-
NetworkControllerImpl.subIDDbm