せい v4.7.3版本的 MD5 值为:203275d28cdb30ff42801fbf3f03f780
以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考
package com.wind.im;
import a9.f;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Base64;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.lifecycle.Observer;
import androidx.work.PeriodicWorkRequest;
import b0.e;
import b0.h;
import b0.l;
import b0.m;
import com.blankj.utilcode.util.ToastUtils;
import com.blankj.utilcode.util.k;
import com.google.gson.Gson;
import com.jeremyliao.liveeventbus.LiveEventBus;
import com.just.agentweb.DefaultWebClient;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import com.meizu.cloud.pushsdk.notification.model.NotifyType;
import com.tencent.mmkv.MMKV;
import com.wind.im.MainActivity;
import com.wind.imlib.WindClient;
import ej.z;
import ig.s;
import iodsag.dga436twf.dadwqe.R;
import java.io.IOException;
import java.security.KeyStore;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.TimeUnit;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
import ri.j;
import ri.o;
import ri.p;
import rk.d0;
import rk.e;
import rk.f0;
import rk.v;
import rk.x;
import rk.y;
public class MainActivity extends oe.a {
public static final int f7951n = 0;
public final CopyOnWriteArrayList<String> f7952b = new CopyOnWriteArrayList<>();
public int f7953c = 0;
public int f7954d = 0;
public final CopyOnWriteArrayList<String> f7955e = new CopyOnWriteArrayList<>();
public ArrayList f7956f = new ArrayList();
public boolean f7957g = false;
public boolean f7958h = false;
public final Timer f7959m = new Timer();
public class a extends TimerTask {
public a() {
}
@Override
public final void run() {
MainActivity mainActivity = MainActivity.this;
if (!mainActivity.f7957g) {
Log.d("=====DNS=====", "倒计时结束");
int i = mainActivity.f7954d;
Timer timer = mainActivity.f7959m;
if (i >= 3) {
mainActivity.f7957g = true;
timer.cancel();
mainActivity.J(MainActivity.G(mainActivity.f7955e), false);
return;
} else if (mainActivity.f7953c >= 3) {
mainActivity.f7957g = true;
timer.cancel();
mainActivity.J(MainActivity.G(mainActivity.f7952b), false);
return;
} else {
mainActivity.f7958h = true;
mainActivity.I();
return;
}
}
mainActivity.f7959m.cancel();
}
}
public class b implements e {
public b() {
}
@Override
public final void a(@NonNull x xVar, @NonNull d0 d0Var) throws IOException {
String str;
f0 f0Var = d0Var.f16039g;
if (f0Var == null) {
return;
}
try {
str = f0Var.x();
} catch (Exception e10) {
ToastUtils.a("服务器开小差了");
pl.a.f14072c.e(e10, new Object[0]);
str = "gagn60XjEx6oNEb9NCUEyTwp79gF4bYKy6Bl47NsovEl1YLYAm0HJXrgBB3FkN539wugjJghVIdK45mRn+AAJ4LpaRM+4Fbm3PPX0SqYF/fJWD/+gw0netoT3tjd1S31Jrco4KpVJOHDNJTHdM+pyb/y+QKGcFk2E0K1TcajBUuPqBSmLTVltZMVJMOt17juFMZSkH3GLmmsHsSiQ2lwBQXswrvgrTnuXf1lGKFFs3h/6Hh/et33fOSG2WWhSI2JlT2ucmkegugvL7WlANGldFdnr9liGzALOEzDwzpdYA2ApIi6oNNEFMt6EtFzhNedBPMgCxmbOaio3nL30GLmwpr3LTweV7svTS4bNGptyrzF8uE8iwXtyUFqXg3MrPK4a8db7avBjB5Qppo8+xqiCMHA2yNRuSfqKx8MiiDQf7sWk0Po2Ni4BSD9yP5wy4nftb+VaM4zVH4EcmilloLgslMD3qg3+nQclM96/73uD80gM97U1m0w7LF8dMbRP5PLlY147MDS0g46puIej207Sk3owS4CwpAFS/EN1mWk5rENZ2uLsd7xXrbl1Zv8tO0IzS2GuTzdk1DhdpFD/2Dx53iB26LFoAIYmzJ4byf6CDQ/Ka29Wd7V+6WSwe92W75iKYuTy/yuDbm308KLOpRM6w==";
}
f0Var.close();
String r02 = cl.d.r0(cl.d.q0(b0.d.a(str)));
MMKV.p("MMKV_LAST_REQUEST_TIME").m("data", r02);
MMKV.p("MMKV_LAST_REQUEST_TIME").l("time", System.currentTimeMillis());
int i = MainActivity.f7951n;
MainActivity.this.K(r02);
}
@Override
public final void b(@NonNull x xVar, @NonNull IOException iOException) {
boolean isEmpty = TextUtils.isEmpty(MMKV.p("MMKV_LAST_REQUEST_TIME").g("data"));
MainActivity mainActivity = MainActivity.this;
if (isEmpty) {
String r02 = cl.d.r0(cl.d.q0(b0.d.a("gagn60XjEx6oNEb9NCUEyTwp79gF4bYKy6Bl47NsovEl1YLYAm0HJXrgBB3FkN539wugjJghVIdK45mRn+AAJ4LpaRM+4Fbm3PPX0SqYF/fJWD/+gw0netoT3tjd1S31Jrco4KpVJOHDNJTHdM+pyb/y+QKGcFk2E0K1TcajBUuPqBSmLTVltZMVJMOt17juFMZSkH3GLmmsHsSiQ2lwBQXswrvgrTnuXf1lGKFFs3h/6Hh/et33fOSG2WWhSI2JlT2ucmkegugvL7WlANGldFdnr9liGzALOEzDwzpdYA2ApIi6oNNEFMt6EtFzhNedBPMgCxmbOaio3nL30GLmwpr3LTweV7svTS4bNGptyrzF8uE8iwXtyUFqXg3MrPK4a8db7avBjB5Qppo8+xqiCMHA2yNRuSfqKx8MiiDQf7sWk0Po2Ni4BSD9yP5wy4nftb+VaM4zVH4EcmilloLgslMD3qg3+nQclM96/73uD80gM97U1m0w7LF8dMbRP5PLlY147MDS0g46puIej207Sk3owS4CwpAFS/EN1mWk5rENZ2uLsd7xXrbl1Zv8tO0IzS2GuTzdk1DhdpFD/2Dx53iB26LFoAIYmzJ4byf6CDQ/Ka29Wd7V+6WSwe92W75iKYuTy/yuDbm308KLOpRM6w==")));
int i = MainActivity.f7951n;
mainActivity.K(r02);
} else {
String g10 = MMKV.p("MMKV_LAST_REQUEST_TIME").g("data");
int i2 = MainActivity.f7951n;
mainActivity.K(g10);
}
}
}
public class c implements o<Long> {
public c() {
}
@Override
public final void onComplete() {
}
@Override
public final void onError(Throwable th2) {
}
@Override
public final void onNext(Long l2) {
String P = xf.d.P();
if (TextUtils.isEmpty(P)) {
f.i("/wind/login");
} else {
WindClient.l().b();
pl.a.c("token:" + P + " id:" + xf.d.R(), new Object[0]);
r.a.b().getClass();
r.a.a("/home/kit/").navigation();
}
MainActivity.this.finish();
}
@Override
public final void onSubscribe(ti.c cVar) {
}
}
public class d implements e {
public final boolean f7963a;
public final String f7964b;
public final e.a f7965c;
public d(boolean z10, String str, e.a aVar) {
this.f7963a = z10;
this.f7964b = str;
this.f7965c = aVar;
}
@Override
public final void a(x xVar, d0 d0Var) throws IOException {
f0 f0Var = d0Var.f16039g;
boolean z10 = this.f7963a;
MainActivity mainActivity = MainActivity.this;
if (f0Var != null && !TextUtils.isEmpty(f0Var.toString())) {
if (((s) new Gson().b(s.class, f0Var.x())).getCode() == 200) {
MMKV.i().m("dns_server_result", this.f7964b);
m mVar = new m();
m.a aVar = new m.a();
mVar.data = aVar;
e.a aVar2 = this.f7965c;
boolean z11 = false;
aVar.setFile(aVar2.f3128h.get(0));
mVar.data.setServer(aVar2.f3127g.get(0));
mVar.data.setPort(Integer.valueOf(aVar2.f3123c));
m.a aVar3 = mVar.data;
if (aVar2.f3122b == 1) {
z11 = true;
}
aVar3.setIsSSL(Boolean.valueOf(z11));
mVar.setCode(200);
String g10 = new Gson().g(mVar);
int i = MainActivity.f7951n;
mainActivity.K(g10);
return;
}
int i2 = MainActivity.f7951n;
mainActivity.M(z10);
return;
}
int i10 = MainActivity.f7951n;
mainActivity.M(z10);
}
@Override
public final void b(x xVar, IOException iOException) {
MMKV.i().m("dns_server_result", "");
int i = MainActivity.f7951n;
MainActivity.this.M(this.f7963a);
}
}
public static String G(CopyOnWriteArrayList<String> copyOnWriteArrayList) {
HashMap hashMap = new HashMap();
Iterator<String> it2 = copyOnWriteArrayList.iterator();
while (it2.hasNext()) {
String next = it2.next();
if (hashMap.containsKey(next)) {
hashMap.put(next, Integer.valueOf(((Integer) hashMap.get(next)).intValue() + 1));
} else {
hashMap.put(next, 1);
}
}
int i = 0;
String str = null;
for (String str2 : hashMap.keySet()) {
int intValue = ((Integer) hashMap.get(str2)).intValue();
if (intValue > i) {
str = str2;
i = intValue;
}
}
return str;
}
public static boolean L(String str) {
try {
byte b10 = b0.e.a(str, "2A0419d61C319f58".getBytes(), "v31AC039w76E245a".getBytes()).f3121a;
if (b10 == 1 || b10 == 2 || b10 == 3) {
return true;
}
return false;
} catch (Exception unused) {
com.blankj.utilcode.util.b.f3873d.getClass();
k.f("");
com.blankj.utilcode.util.b.e(6, "", "decode connect", "decode strerror");
return false;
}
}
public final List<String> H() {
if (this.f7956f.size() == 0) {
return Arrays.asList("aHR0cHM6Ly80My4xMzguMTczLjE0NjoxMDExMS9sb2dzL2hleDVudWlqMA==", "aHR0cHM6Ly8zOS4xMDguMTc1LjE0OjEwMTExL2xvZ3MvaGV4NW51aWow");
}
return this.f7956f;
}
public final void I() {
String g10;
char c10 = 1;
this.f7957g = true;
NetworkInfo activeNetworkInfo = ((ConnectivityManager) getApplicationContext().getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo != null) {
int type = activeNetworkInfo.getType();
if (type == 0) {
c10 = 0;
}
if (c10 != 65535) {
if (TextUtils.isEmpty(MMKV.p("MMKV_LAST_REQUEST_TIME").g("data"))) {
g10 = cl.d.r0(cl.d.q0(b0.d.a("gagn60XjEx6oNEb9NCUEyTwp79gF4bYKy6Bl47NsovEl1YLYAm0HJXrgBB3FkN539wugjJghVIdK45mRn+AAJ4LpaRM+4Fbm3PPX0SqYF/fJWD/+gw0netoT3tjd1S31Jrco4KpVJOHDNJTHdM+pyb/y+QKGcFk2E0K1TcajBUuPqBSmLTVltZMVJMOt17juFMZSkH3GLmmsHsSiQ2lwBQXswrvgrTnuXf1lGKFFs3h/6Hh/et33fOSG2WWhSI2JlT2ucmkegugvL7WlANGldFdnr9liGzALOEzDwzpdYA2ApIi6oNNEFMt6EtFzhNedBPMgCxmbOaio3nL30GLmwpr3LTweV7svTS4bNGptyrzF8uE8iwXtyUFqXg3MrPK4a8db7avBjB5Qppo8+xqiCMHA2yNRuSfqKx8MiiDQf7sWk0Po2Ni4BSD9yP5wy4nftb+VaM4zVH4EcmilloLgslMD3qg3+nQclM96/73uD80gM97U1m0w7LF8dMbRP5PLlY147MDS0g46puIej207Sk3owS4CwpAFS/EN1mWk5rENZ2uLsd7xXrbl1Zv8tO0IzS2GuTzdk1DhdpFD/2Dx53iB26LFoAIYmzJ4byf6CDQ/Ka29Wd7V+6WSwe92W75iKYuTy/yuDbm308KLOpRM6w==")));
} else {
g10 = MMKV.p("MMKV_LAST_REQUEST_TIME").g("data");
}
K(g10);
return;
}
init();
return;
}
c10 = 65535;
if (c10 != 65535) {
}
}
public final void J(String str, boolean z10) {
String str2;
String str3;
String str4;
String str5;
try {
e.a a10 = b0.e.a(str, "2A0419d61C319f58".getBytes(), "v31AC039w76E245a".getBytes());
ArrayList arrayList = new ArrayList();
if (a10.f3121a == 3) {
v.b bVar = new v.b();
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
bVar.b(6000L, timeUnit);
bVar.c(12000L, timeUnit);
bVar.e(12000L, timeUnit);
bVar.a(new og.d());
bVar.a(new og.c());
bVar.a(b0.c.f3120a);
bVar.f16197b = null;
v vVar = new v(bVar);
String str6 = a10.f3127g.get(0);
if (!str6.startsWith("http")) {
StringBuilder sb2 = new StringBuilder("http");
if (!String.valueOf((int) a10.f3122b).equals(PushConstants.PUSH_TYPE_THROUGH_MESSAGE)) {
str4 = "";
} else {
str4 = NotifyType.SOUND;
}
sb2.append(str4);
sb2.append("://");
sb2.append(str6);
if (TextUtils.isEmpty(String.valueOf(a10.f3123c))) {
str5 = "";
} else {
str5 = ":" + a10.f3123c;
}
sb2.append(str5);
str6 = sb2.toString();
}
String str7 = str6 + "/api/exclude/versionUpdate";
y.a aVar = new y.a();
aVar.e(str7);
x.c(vVar, aVar.a(), false).s(new d(z10, str, a10));
} else {
for (String str8 : a10.f3124d) {
if (a10.f3122b == 1) {
str3 = DefaultWebClient.HTTPS_SCHEME + str8;
} else {
str3 = DefaultWebClient.HTTP_SCHEME + str8;
}
arrayList.add((str3 + ":" + a10.f3123c) + a10.f3125e);
}
if (a10.f3121a == 2) {
for (String str9 : a10.f3126f) {
if (a10.f3122b == 1) {
str2 = DefaultWebClient.HTTPS_SCHEME + str9;
} else {
str2 = DefaultWebClient.HTTP_SCHEME + str9;
}
arrayList.add((str2 + ":" + a10.f3123c) + a10.f3125e);
}
}
ArrayList arrayList2 = new ArrayList();
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
arrayList2.add(Base64.encodeToString(((String) it2.next()).getBytes(), 0));
}
this.f7956f = arrayList2;
I();
}
this.f7957g = true;
Log.d("=====DNS=====", "返回查询到的DNS数据列表。其中原始数据为\n" + MMKV.i().g("dns_server_result") + "\n解析之后为\n" + a10);
} catch (Exception e10) {
this.f7956f.clear();
MMKV.i().m("dns_server_result", "");
M(z10);
Log.d("=====DNS=====", "获取到错误信息了===========" + e10.getMessage() + "===========" + e10.getCause());
}
}
public final void K(String str) {
m mVar = (m) new Gson().b(m.class, str);
if (mVar.code.intValue() == 200) {
String str2 = mVar.getData().server;
String str3 = mVar.getData().file;
int intValue = mVar.getData().port.intValue();
boolean booleanValue = mVar.getData().isSSL.booleanValue();
WindClient l2 = WindClient.l();
WindClient.c cVar = WindClient.c.HTTP;
l2.f7977g = cVar;
l2.f7971a = str2;
l2.f7974d = str3;
l2.f7976f = intValue;
l2.f7978h = booleanValue;
cg.m mVar2 = new cg.m();
HashMap hashMap = l2.f7979j;
if (!hashMap.containsKey(cVar)) {
hashMap.put(cVar, new com.wind.imlib.connect.http.a(l2));
}
if (l2.f7977g != cVar) {
WindClient.c cVar2 = WindClient.c.WS;
if (!hashMap.containsKey(cVar2)) {
hashMap.put(cVar2, new qg.a(l2));
}
}
l2.f7975e = mVar2;
Iterator it2 = hashMap.keySet().iterator();
while (true) {
if (!it2.hasNext()) {
break;
}
WindClient.c cVar3 = (WindClient.c) it2.next();
com.wind.imlib.connect.comm.b bVar = (com.wind.imlib.connect.comm.b) hashMap.get(cVar3);
if (bVar == null) {
hashMap.remove(cVar3);
l2.f7975e.b(new Throwable("连接创建失败"));
break;
}
bVar.connect(mVar2);
}
} else {
ToastUtils.a("与服务器链接超时...");
}
if ((getIntent().getFlags() & 4194304) != 0) {
String P = xf.d.P();
if (TextUtils.isEmpty(P)) {
f.i("/wind/login");
} else {
WindClient.l().b();
pl.a.c("token:" + P + " id:" + xf.d.R(), new Object[0]);
r.a.b().getClass();
r.a.a("/home/kit/").navigation();
}
finish();
return;
}
z j10 = j.j(3L, TimeUnit.SECONDS);
p pVar = lj.a.f12455c;
j10.i(pVar).k(pVar).g(si.a.a()).a(new c());
}
public final void M(boolean z10) {
MMKV.i().m("dns_server_result", "");
if (z10) {
h.a(true);
} else {
if (Arrays.asList(new String[0]).size() > 0) {
h.a(false);
return;
}
this.f7956f.clear();
MMKV.i().m("dns_server_result", "");
I();
}
}
public final void init() {
TrustManager[] trustManagers;
v.b bVar = new v.b();
TimeUnit timeUnit = TimeUnit.SECONDS;
bVar.c(3L, timeUnit);
bVar.e(3L, timeUnit);
bVar.b(15L, timeUnit);
boolean z10 = false;
bVar.f16213t = false;
bVar.f16212s = false;
X509TrustManager x509TrustManager = null;
bVar.f16197b = null;
bVar.a(new b0.j(H().get(0), H(), H().size() - 1));
try {
SSLContext sSLContext = SSLContext.getInstance("SSL");
sSLContext.init(null, new TrustManager[]{new l()}, new SecureRandom());
SSLSocketFactory socketFactory = sSLContext.getSocketFactory();
try {
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
trustManagerFactory.init((KeyStore) null);
trustManagers = trustManagerFactory.getTrustManagers();
} catch (Exception e10) {
e10.printStackTrace();
}
if (trustManagers.length == 1) {
TrustManager trustManager = trustManagers[0];
if (trustManager instanceof X509TrustManager) {
x509TrustManager = (X509TrustManager) trustManager;
bVar.d(socketFactory, x509TrustManager);
bVar.f16207m = new HostnameVerifier() {
@Override
public final boolean verify(String str, SSLSession sSLSession) {
return true;
}
};
v vVar = new v(bVar);
y.a aVar = new y.a();
aVar.e(new String(u.c.a(H().get(0))));
aVar.f16244c.c("User-Agent");
aVar.f16244c.a("User-Agent", "Mozilla/5.0 (Linux; U; Android 9; zh-CN; Redmi Note 8 Pro Build/PPR1.SD2018727509) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 Quark/5.8.2.221 Mobile Safari/537.36 ORT-DD/v3");
x c10 = x.c(vVar, aVar.a(), false);
if (System.currentTimeMillis() - MMKV.p("MMKV_LAST_REQUEST_TIME").f("time") > PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS) {
z10 = true;
}
if (!z10 && !TextUtils.isEmpty(MMKV.p("MMKV_LAST_REQUEST_TIME").g("data"))) {
K(MMKV.p("MMKV_LAST_REQUEST_TIME").g("data"));
return;
} else {
c10.s(new b());
return;
}
}
}
throw new IllegalStateException("Unexpected default trust managers:" + Arrays.toString(trustManagers));
} catch (Exception e11) {
throw new RuntimeException(e11);
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.jadx_deobf_0x00001c1d_res_0x7f0d003e);
((ImageView) findViewById(R.id.jadx_deobf_0x00001c1d_res_0x7f0a0080)).setBackgroundResource(R.mipmap.jadx_deobf_0x00001c1d_res_0x7f100004);
if (!TextUtils.isEmpty("")) {
((TextView) findViewById(R.id.jadx_deobf_0x00001c1d_res_0x7f0a0087)).setText("");
}
MMKV.i().m("dns_server_result", "");
ArrayList arrayList = new ArrayList();
arrayList.add("https://m.immomo.com/inc/android/agreement.html?v=5968");
arrayList.add("https://cosmos-lua.immomo.com/v1/api/index/patch");
arrayList.add("https://cosmos-lua.immomo.com/v1/api/index/limit");
f.k(arrayList, "https://cosmos-open.immomo.com/login/index/logs", "https://cosmos-compass-api.immomo.com/uploadCodeStart", "https://s3.pstatp.com/bytecom/resource/tetris/pi.ad6e3a13.js", "https://ip.taobao.com/service/getIpInfo.php?ip=myip");
f.k(arrayList, "https://api.weibo.cn/2/hot/hours_spotlight?wm=3333_2001", "https://api.weibo.cn/2/guest/login?wm=3333_2001", "https://api.weibo.cn/2/client/get_grayfeature", "https://baichuan-sdk.alicdn.com/4.0.1.10/23208668/1.0.0/ios/rule.htm");
f.k(arrayList, "https://sdkapp.uve.weibo.com/interface/sdk/sdkconfig.php?platform=ipad&version=7", "https://userlink.alicdn.com/smart_link/ios/alsl_switch_config.json", "https://userlink.alicdn.com/matrix_app/ios/matrix_app_config.json", "https://dp.im.weibo.cn/entrance");
f.k(arrayList, "https://sdkapp.uve.weibo.com/interface/sdk/sdkconfig.php?platform=ipad&version=11", "https://new-service.biliapi.net/chat-sdk/sdk/user/v1/config.action?appId=3cf3af32ac5049369af06fabb87a36d1&from=3&version=2.8.2", "https://amonsul.douban.com/check2?app_name=Frodo_iPhone&apikey=0ab215a8b1977939201640fa14c66bab&sdkVersion=1.9.0", "https://frodo.douban.com/frodo_rexxar/api/routes?device_id=");
f.k(arrayList, "https://m.douban.com/", "https://i.gtimg.cn/ams-web/page-performance/page-performance.min.js?v=1", "https://kepler.jd.com/console/admin/getConfigNew", "https://mapi.m.jd.com/ksdk/updlist.json");
f.k(arrayList, "https://api.zhihu.com/zst/events/p", "https://zhihu-web-analytics.zhihu.com/api/v1/server_tsp", "https://m-cloud.zhihu.com/api/apm/sampling/get?appKey=XoO7so", "https://api.zhihu.com/market/popovers_v2");
f.k(arrayList, "https://api.zhihu.com/api/v4/ecom_data/config", "https://api.zhihu.com/account/toggle", "https://api.zhihu.com/moments/tab_v2?feed_type=recommend", "https://m-cloud.zhihu.com/api/app/monitor/sampling/sync?appKey=XoO7so");
f.k(arrayList, "https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.1659340444417.package.json", "https://iface2.iqiyi.com/fusion/3.0/switch/ext?content=dfp_config&platform_id=12", "https://api.iqiyi.com/3f4/emoticon-sns.iqiyi.com/jaguar-core/query_config?bussiness=feedStatic&agenttype=268&version=3.8.10", "https://sf6-fe-tos.pglstatp-toutiao.com/obj/ad-pattern/renderer/6259e2/package.json?aid=5000546&version_code=5.4.0.5&device_platform=ipad");
f.k(arrayList, "https://data.video.iqiyi.com/t", "https://lf-cdn-tos.bytescm.com/obj/static/ad/play-comp/playable-component-sdk/package.ugen.json?aid=5000546&version_code=5.4.0.5&device_platform=ipad", "https://sf3-fe-tos.pglstatp-toutiao.com/obj/ad-pattern/renderer/6259e2/fallback.js", "https://lf1-cdn-tos.bytegoofy.com/goofy/fe/ies/bridge/bytedance/jsbridge-2.2.10.umd.js");
f.k(arrayList, "https://api.iqiyi.com/keepalive", "https://acs.m.taobao.com/gw/mtop.common.getTimestamp/*", "https://zconfig.alibabausercontent.com/zconfig/23569910/11.0.50/0~0/~", "https://sealine.youku.com/sdkconfig_60.xml");
f.k(arrayList, "https://gw.m.163.com/nc/api/v1/search/hot-word", "https://gw.m.163.com/nc-notify/api/v5/notify/homeunreadnum", "https://gw.m.163.com/commons-user-incentive/api/v1/commons/incentive/taskConfig", "https://gw.m.163.com/nc/api/v1/local/city.html");
f.k(arrayList, "https://gw.m.163.com/nc-gateway/api/v1/topicset/ios/topicsetList", "https://gw.m.163.com/commons-user-main/api/v1/commons/main/anonymous/allFollowList", "https://cloud.xdrig.com/configcloud/rest/sdk/gdprCheck", "https://t2.xiaohongshu.com/api/collect");
f.k(arrayList, "https://edith.xiaohongshu.com/api/sns/v1/system_service/config?launchtimes=9", "https://edith.xiaohongshu.com/api/sns/v1/search/placeholder?is_new_user=true", "https://www.xiaohongshu.com/api/im/users/following/all", "https://cc.map.qq.com/?desc_c");
f.k(arrayList, "https://43.129.255.160:8081", "https://cgi.connect.qq.com/qqconnectopen/openapi/policy_conf", "https://183.232.58.240:21004", "https://118.26.252.225:5222");
f.k(arrayList, "https://120.46.157.112:7002", "https://49.51.177.180:5333", "https://183.134.98.111:5224", "https://183.134.98.34:5224");
f.k(arrayList, "https://183.134.98.75:5224", "https://login.sina.com.cn/visitor/signin", "https://sdk-open-phone.getui.com/api.php?format=json&t=1", "https://tsis.jpush.cn/");
f.k(arrayList, "https://ali-stats.jpush.cn", "https://49.233.102.113:5333", "https://124.71.10.22:7002", "https://175.24.251.189:5333");
f.k(arrayList, "https://103.102.200.38:80", "https://118.26.252.225:5222", "http://p5.a.yximgs.com/uhead/AB/2022/05/22/01/BMjAyMjA1MjIwMTUzMjdfMjI5NzUxOTU2OV8xX2hkNDc0XzE0OQ==_s.jpg", "https://api2.e.kuaishou.com/rest/e/load/styleTemplate");
f.k(arrayList, "https://apidns.kwd.inkuai.com/label_resolve?label=kwai-api&biz=aegon-android", "https://yoda.kwd.inkuai.com", "http://httpdns.bcelive.com/?dns=bd-origin.pull.yximgs.com,bd-adaptive-pull.live-voip.com,bd-adaptive-pull.video-voip.com,bd-adaptive.pull.yximgs.com,bd-origin-pull.live-voip.com,bd-origin-pull.video-voip.com,bd-p2p-pull.live-voip.com,bd-p2p-pull.video-voip.com,bd-p2p.pull.yximgs.com,bd-proxy.pull.yximgs.com,bd-pull.live-voip.com,bd-pull.video-voip.com,bd.pull.yximgs.com,bd.push.yximgs.com,d5-ks.a.kwimgs.com,p5-live.a.yximgs.com,p5.a.yximgs.com,v5-skvod.kwaicdn.com,v5.kwaicdn.com&type=a", "https://static.yximgs.com/bs2/adminBlock/treasure-1675409076903-xYWwjlqm.png");
arrayList.add("https://43.226.164.41");
arrayList.add("http://p2.a.yximgs.com/uhead/AB/2021/08/16/17/");
Collections.shuffle(arrayList);
int nextInt = new Random().nextInt(6) + 3;
v vVar = new v();
for (int i = 0; i < nextInt && !arrayList.isEmpty(); i++) {
String str = (String) arrayList.remove(0);
y.a aVar = new y.a();
aVar.e(str);
x.c(vVar, aVar.a(), false).s(new b0.a());
}
LiveEventBus.get("get_dns_reset", String.class).observe(this, new Observer() {
@Override
public final void onChanged(Object obj) {
String str2 = (String) obj;
MainActivity mainActivity = MainActivity.this;
mainActivity.f7953c++;
boolean isEmpty = TextUtils.isEmpty(str2);
CopyOnWriteArrayList<String> copyOnWriteArrayList = mainActivity.f7952b;
if (!isEmpty && MainActivity.L(str2)) {
copyOnWriteArrayList.add(str2);
}
if (mainActivity.f7953c == xf.d.F().size() * Arrays.asList(new String[0]).size() && !mainActivity.f7958h) {
mainActivity.f7958h = true;
mainActivity.f7959m.cancel();
mainActivity.J(MainActivity.G(copyOnWriteArrayList), false);
}
}
});
LiveEventBus.get("get_dns_reset_v3", String.class).observe(this, new Observer() {
@Override
public final void onChanged(Object obj) {
String str2 = (String) obj;
MainActivity mainActivity = MainActivity.this;
mainActivity.f7954d++;
boolean isEmpty = TextUtils.isEmpty(str2);
CopyOnWriteArrayList<String> copyOnWriteArrayList = mainActivity.f7955e;
if (!isEmpty && MainActivity.L(str2)) {
copyOnWriteArrayList.add(str2);
}
if (mainActivity.f7954d == xf.d.F().size() * Arrays.asList("bek.b9zc11h4nd.com").size() && !mainActivity.f7958h) {
mainActivity.f7958h = true;
mainActivity.f7959m.cancel();
mainActivity.J(MainActivity.G(copyOnWriteArrayList), false);
}
}
});
a aVar2 = new a();
if (!TextUtils.isEmpty(MMKV.i().g("dns_server_result"))) {
J(MMKV.i().g("dns_server_result"), true);
} else {
this.f7956f.clear();
h.a(true);
}
this.f7959m.schedule(aVar2, 5000L, 5000L);
}
}