diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java index 98d0d6b9..ce2957cc 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java @@ -111,10 +111,6 @@ public class AppMaster { return (System.currentTimeMillis() - SystemClock.elapsedRealtimeNanos() / 1000000) / 1000; } - private void selectSimCard(int number) { - TelephonyManager telephonyManager = (TelephonyManager)mService.getSystemService(Context.TELEPHONY_SERVICE); - } - public void start() { new Thread(new Runnable() { @@ -125,6 +121,7 @@ public class AppMaster { if (separateNetwork) { try { + mService.logger.info("Switch to Simcard 2"); SysApi.selectSimCard4Data(mService.getApplicationContext(), 2); Thread.sleep(100); @@ -158,6 +155,7 @@ public class AppMaster { } finally { try { if (!mService.isMntnMode()) { + mService.logger.info("Switch to Simcard 1"); SysApi.selectSimCard4Data(mService.getApplicationContext(), 1); } } catch (Exception ex) { @@ -225,6 +223,9 @@ public class AppMaster { postParams.add(new Pair("firmware", MpMasterService.getSystemProperty("ro.custom.ota.version"))); + postParams.add(new Pair("signalLevel1", Integer.toString(MpMasterService.getSignalLevel(1)))); + postParams.add(new Pair("signalLevel2", Integer.toString(MpMasterService.getSignalLevel(2)))); + // SysApi. postParams.add(new Pair("simcard1", mService.getIccid(1))); // if (mService.isSeparateNetwork()) {