手机管家 v6.0.0版本的 MD5 值为:bf0bca2cb03f766137fe9ecf7383a634
以下内容为反编译后的 nm.java 源代码,内容仅作参考
package tcs;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.Telephony;
import android.text.TextUtils;
import tcs.auv;
class nm {
private static final String[] bJb = {"type", auv.c.MMSC, auv.c.MMSPROXY, auv.c.MMSPORT};
private String bIY;
private String bIZ;
private int bJa;
public nm(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.bIY)) {
}
if (this.bIY == 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), bJb, str2, null, null);
if (cursor != null) {
try {
try {
if (cursor.moveToFirst()) {
while (!cursor.isAfterLast() && TextUtils.isEmpty(this.bIY)) {
if (v(cursor.getString(0), "mms")) {
this.bIY = cursor.getString(1);
this.bIZ = cursor.getString(2);
if (Eh()) {
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.bIY)) {
}
if (this.bIY == null) {
}
}
} catch (Throwable th2) {
th = th2;
if (cursor != null) {
cursor.close();
}
throw th;
}
}
if (cursor != null) {
cursor.close();
}
if (TextUtils.isEmpty(this.bIY)) {
this.bIY = adt.mJ(str);
this.bIZ = adt.mK(str);
this.bJa = adt.mL(str);
}
if (this.bIY == null) {
switch (ub.Z(context)) {
case 0:
this.bIY = "http://mmsc.monternet.com";
this.bIZ = "10.0.0.172";
break;
case 1:
this.bIY = "http://mmsc.myuni.com.cn";
this.bIZ = "10.0.0.172";
break;
case 2:
this.bIY = "http://mmsc.vnet.mobi";
this.bIZ = "10.0.0.200";
break;
default:
this.bIY = "http://mmsc.monternet.com";
this.bIZ = "10.0.0.172";
break;
}
this.bJa = 80;
}
}
public String Ee() {
return this.bIY;
}
public String getProxyAddress() {
return this.bIZ;
}
public int Eg() {
return this.bJa;
}
public boolean Eh() {
return (this.bIZ == null || this.bIZ.trim().length() == 0) ? false : true;
}
private static boolean v(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;
}
}