安全中心 v4.9.2版本的 MD5 值为:d64c0ec7920c532fa6e6d9bb001cf9bf
以下内容为反编译后的 r.java 源代码,内容仅作参考
package meri.service.aresengine;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.Telephony;
import android.text.TextUtils;
import tcs.auv;
import tcs.ub;
class r {
private static final String[] bSd = {"type", auv.c.MMSC, auv.c.MMSPROXY, auv.c.MMSPORT};
private int bJa;
private String bSb;
private String bSc;
public r(Context context, String str) {
String str2;
Cursor cursor;
this.bJa = -1;
if (str != null) {
try {
str2 = "apn='" + str.trim() + "'";
} catch (Exception e) {
e = e;
cursor = null;
e.printStackTrace();
if (cursor != null) {
}
if (TextUtils.isEmpty(this.bSb)) {
}
if (this.bSb == null) {
}
} catch (Throwable th) {
th = th;
cursor = null;
if (cursor != null) {
}
throw th;
}
} else {
str2 = null;
}
cursor = tmsdk.common.l.iU().query(Uri.withAppendedPath(Telephony.Carriers.CONTENT_URI, auv.c.CURRENT), bSd, str2, null, null);
if (cursor != null) {
try {
try {
if (cursor.moveToFirst()) {
while (!cursor.isAfterLast() && TextUtils.isEmpty(this.bSb)) {
if (i(cursor.getString(0), "mms")) {
this.bSb = cursor.getString(1);
this.bSc = cursor.getString(2);
if (xy()) {
try {
this.bJa = Integer.parseInt(cursor.getString(3));
} catch (NumberFormatException e2) {
e2.printStackTrace();
}
}
}
cursor.moveToNext();
}
}
} catch (Exception e3) {
e = e3;
e.printStackTrace();
if (cursor != null) {
cursor.close();
}
if (TextUtils.isEmpty(this.bSb)) {
}
if (this.bSb == null) {
}
}
} catch (Throwable th2) {
th = th2;
if (cursor != null) {
cursor.close();
}
throw th;
}
}
if (cursor != null) {
cursor.close();
}
if (TextUtils.isEmpty(this.bSb)) {
this.bSb = h.eE(str);
this.bSc = h.eF(str);
this.bJa = h.fg(str);
}
if (this.bSb == null) {
switch (ub.Z(context)) {
case 0:
this.bSb = "http://mmsc.monternet.com";
this.bSc = "10.0.0.172";
break;
case 1:
this.bSb = "http://mmsc.myuni.com.cn";
this.bSc = "10.0.0.172";
break;
case 2:
this.bSb = "http://mmsc.vnet.mobi";
this.bSc = "10.0.0.200";
break;
default:
this.bSb = "http://mmsc.monternet.com";
this.bSc = "10.0.0.172";
break;
}
this.bJa = 80;
}
}
public String xx() {
return this.bSb;
}
public String getProxyAddress() {
return this.bSc;
}
public int Eg() {
return this.bJa;
}
public boolean xy() {
return (this.bSc == null || this.bSc.trim().length() == 0) ? false : true;
}
private static boolean i(String str, String str2) {
if (TextUtils.isEmpty(str)) {
return true;
}
for (String str3 : str.split(",")) {
if (str3.equals(str2) || str3.equals("*")) {
return true;
}
}
return false;
}
}