|
|
|
@ -2,6 +2,7 @@ package com.xypower.mpmaster.sms;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.Manifest;
|
|
|
|
|
import android.annotation.SuppressLint;
|
|
|
|
|
import android.app.Activity;
|
|
|
|
|
import android.app.PendingIntent;
|
|
|
|
|
import android.content.ContentResolver;
|
|
|
|
@ -38,10 +39,8 @@ import org.json.JSONException;
|
|
|
|
|
import org.json.JSONObject;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.lang.reflect.Field;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -704,18 +703,9 @@ public class SimUtil {
|
|
|
|
|
result.append("," + getNetworkName(networkType));
|
|
|
|
|
result.append("," + getSimStateName(simState));
|
|
|
|
|
|
|
|
|
|
String ss = MpMasterService.getSystemProperty("vendor.ril.nw.signalstrength.lte." + Integer.toString(slotIdx + 1));
|
|
|
|
|
if (!TextUtils.isEmpty(ss)) {
|
|
|
|
|
int pos = ss.indexOf(',');
|
|
|
|
|
if (pos != -1) {
|
|
|
|
|
ss = ss.substring(0, pos);
|
|
|
|
|
|
|
|
|
|
result.append(",SL=" + ss);
|
|
|
|
|
int ssVal = Integer.parseInt(ss);
|
|
|
|
|
result.append("/" + Integer.toString(MpMasterService.getSignalLevel(ssVal, 5)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
int ss = MpMasterService.getSignalStrength(slotIdx + 1);
|
|
|
|
|
result.append(",SL=" + Integer.toString(ss));
|
|
|
|
|
result.append("/" + Integer.toString(MpMasterService.getSignalLevel(ss, slotIdx + 1)));
|
|
|
|
|
|
|
|
|
|
result.append(isActiveSlot ? ",默认" : "");
|
|
|
|
|
|
|
|
|
|