Cyber Surfer v5.2.5版本的 MD5 值为:db13c5fce988de393e52d2679f934b22
以下内容为反编译后的 a.java 源代码,内容仅作参考
package sg.bigo.ads;
import android.text.TextUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import sg.bigo.ads.common.utils.o;
import sg.bigo.ads.common.utils.r;
import sg.bigo.ads.controller.a.c;
import sg.bigo.ads.controller.b.b;
public class a {
private static final String f15576a = "a";
private static String f15577b = "api.imotech.tech";
public static String a() {
r.a();
return f15577b;
}
public static boolean a(b bVar, String str) {
JSONArray jSONArray;
if (bVar == null) {
return false;
}
String str2 = null;
try {
jSONArray = new JSONArray(bVar.a("api_hosts").toString());
} catch (JSONException e) {
e.printStackTrace();
jSONArray = null;
}
if (jSONArray != null) {
sg.bigo.ads.common.k.a.a(0, 3, f15576a, "[api host] try to update host directly. current country code is ".concat(String.valueOf(str)));
for (int i = 0; i < jSONArray.length(); i++) {
JSONObject optJSONObject = jSONArray.optJSONObject(i);
if (optJSONObject != null) {
String optString = optJSONObject.optString("country", "");
if ("".equals(optString)) {
str2 = optJSONObject.optString("host");
sg.bigo.ads.common.k.a.a(0, 3, f15576a, "[api host] match general host: ".concat(String.valueOf(str2)));
} else if (str != null && str.equalsIgnoreCase(optString)) {
str2 = optJSONObject.optString("host");
sg.bigo.ads.common.k.a.a(0, 3, f15576a, "[api host] match specific country host: ".concat(String.valueOf(str2)));
if (!TextUtils.isEmpty(str2)) {
break;
}
}
}
}
if (!TextUtils.isEmpty(str2) && c.a(str2) && !str2.equalsIgnoreCase(f15577b)) {
f15577b = str2;
return true;
}
}
return false;
}
public static String b() {
r.a();
return o.a("https://%1$s/Ad/GetUniConfig", f15577b);
}
public static String c() {
r.a();
return o.a("https://%1$s/Ad/GetUniAd", f15577b);
}
public static String d() {
r.a();
return o.a("https://%1$s/Ad/ReportUniBaina", f15577b);
}
public static String e() {
r.a();
return o.a("https://%1$s/Ad/UniCallback", f15577b);
}
public static String f() {
r.a();
return o.a("https://%1$s/Ad/GetUniApplist", f15577b);
}
public static String g() {
r.a();
return o.a("https://%1$s/Ad/ReportUniChkApp", f15577b);
}
}