上报数据增加网络信号强度

hdrplus
Matthew 1 year ago
parent 65b1c9bb94
commit 745b6b18fe

@ -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<String, String>("firmware", MpMasterService.getSystemProperty("ro.custom.ota.version")));
postParams.add(new Pair<String, String>("signalLevel1", Integer.toString(MpMasterService.getSignalLevel(1))));
postParams.add(new Pair<String, String>("signalLevel2", Integer.toString(MpMasterService.getSignalLevel(2))));
// SysApi.
postParams.add(new Pair<String, String>("simcard1", mService.getIccid(1)));
// if (mService.isSeparateNetwork()) {

Loading…
Cancel
Save