调研通 v3.0.3版本的 MD5 值为:fe075d21227d488bdb9f6aa09d3b3f35
以下内容为反编译后的 s0.java 源代码,内容仅作参考
package ct;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.iflytek.cloud.ErrorCode;
import com.xiaomi.mipush.sdk.Constants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public final class s0 {
public static final int[] f12349c = {80, 8080, ErrorCode.MSP_ERROR_LUA_BASE};
private Map f12350a;
public long f12351b;
public s0() {
}
public s0(an anVar) {
try {
this.f12351b = anVar.f12078b;
this.f12350a = new HashMap();
for (Integer num : anVar.f12077a.keySet()) {
if (x.c(num)) {
ArrayList arrayList = (ArrayList) anVar.f12077a.get(num);
ArrayList arrayList2 = new ArrayList();
Iterator it = arrayList.iterator();
while (it.hasNext()) {
String str = (String) it.next();
r2 r2Var = new r2();
if (r2Var.c(str)) {
arrayList2.add(r2Var);
}
}
this.f12350a.put(num, arrayList2);
}
}
} catch (Exception unused) {
}
}
private static String a(int i) {
return i == 1 ? "access_cm" : i == 2 ? "access_uni" : i == 3 ? "access_ct" : "";
}
public final void b() {
String str;
try {
SharedPreferences sharedPreferences = o2.f12287b.getSharedPreferences("Access_Preferences", 0);
this.f12351b = sharedPreferences.getLong("timeStamp", 0L);
this.f12350a = new HashMap();
for (int i = 1; i <= 3; i++) {
String string = sharedPreferences.getString(a(i), "");
if (TextUtils.isEmpty(string)) {
if (i == 1) {
str = "183.61.38.168:14000,117.135.171.182:14000";
} else if (i == 2) {
str = "112.90.140.213:14000,112.90.140.216:14000";
} else if (i == 3) {
str = "14.17.41.159:14000,140.206.160.242:14000";
} else {
string = "";
String str2 = "getDefaultIpListByOpType:" + string;
y.b();
}
string = str;
String str22 = "getDefaultIpListByOpType:" + string;
y.b();
}
String[] split = string.split(Constants.ACCEPT_TIME_SEPARATOR_SP);
if (split.length > 0) {
ArrayList arrayList = new ArrayList();
for (String str3 : split) {
r2 r2Var = new r2();
if (r2Var.c(str3)) {
arrayList.add(r2Var);
}
}
this.f12350a.put(Integer.valueOf(i), arrayList);
}
}
} catch (Exception unused) {
}
}
public final void c() {
try {
SharedPreferences sharedPreferences = o2.f12287b.getSharedPreferences("Access_Preferences", 0);
Map map = this.f12350a;
if (map == null || map.size() <= 0) {
return;
}
for (Integer num : this.f12350a.keySet()) {
if (x.c(num)) {
String a2 = a(num.intValue());
ArrayList arrayList = (ArrayList) this.f12350a.get(num);
if (arrayList != null && arrayList.size() > 0) {
StringBuilder sb = new StringBuilder();
Iterator it = ((ArrayList) this.f12350a.get(num)).iterator();
while (it.hasNext()) {
sb.append(((r2) it.next()).a());
sb.append(Constants.ACCEPT_TIME_SEPARATOR_SP);
}
sb.deleteCharAt(sb.length() - 1);
sharedPreferences.edit().putString(a2, sb.toString()).commit();
}
}
}
sharedPreferences.edit().putLong("timesStamp", this.f12351b).commit();
} catch (Exception unused) {
}
}
public final synchronized ArrayList d() {
ArrayList arrayList;
arrayList = new ArrayList();
try {
int f2 = x.f();
if (x.c(Integer.valueOf(f2))) {
for (Integer num : this.f12350a.keySet()) {
ArrayList arrayList2 = (ArrayList) this.f12350a.get(num);
if (f2 == num.intValue()) {
arrayList.addAll(0, arrayList2);
} else {
arrayList.addAll(arrayList2);
}
}
} else {
Iterator it = this.f12350a.keySet().iterator();
int i = 0;
while (it.hasNext()) {
i = Math.max(i, ((ArrayList) this.f12350a.get((Integer) it.next())).size());
}
for (int i2 = 0; i2 < i; i2++) {
Iterator it2 = this.f12350a.keySet().iterator();
while (it2.hasNext()) {
ArrayList arrayList3 = (ArrayList) this.f12350a.get((Integer) it2.next());
if (i2 < arrayList3.size()) {
arrayList.add(arrayList3.get(i2));
}
}
}
}
} catch (Exception unused) {
}
return arrayList;
}
}