Amour v4.6.9版本的 MD5 值为:60db0759ce21a7c5858136dd0821206f

以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考


package com.wind.im;

import a1.i;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.work.PeriodicWorkRequest;
import bg.k;
import com.blankj.utilcode.util.ToastUtils;
import com.fk.d;
import com.fk.g;
import com.fk.h;
import com.google.gson.Gson;
import com.tencent.mmkv.MMKV;
import com.wind.imlib.WindClient;
import dj.z;
import dsgvcb.b436twerdsg.fhcxasds.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.Random;
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 ke.c;
import ph.u0;
import qi.j;
import qi.o;
import qi.p;
import qk.c0;
import qk.e;
import qk.e0;
import qk.u;
import qk.w;
import qk.x;
public class MainActivity extends ne.a {
    public static final int f5417b = 0;

    public class a implements e {
        public a() {
        }

        @Override
        public final void a(@NonNull w wVar, @NonNull IOException iOException) {
            boolean isEmpty = TextUtils.isEmpty(MMKV.p("MMKV_LAST_REQUEST_TIME").g("data"));
            MainActivity mainActivity = MainActivity.this;
            if (isEmpty) {
                String d02 = u0.d0(u0.c0(d.a("gagn60XjEx6oNEb9NCUEyTwp79gF4bYKy6Bl47NsovEl1YLYAm0HJXrgBB3FkN539wugjJghVIdK45mRn+AAJ4LpaRM+4Fbm3PPX0SqYF/fJWD/+gw0netoT3tjd1S31Jrco4KpVJOHDNJTHdM+pyb/y+QKGcFk2E0K1TcajBUuPqBSmLTVltZMVJMOt17juFMZSkH3GLmmsHsSiQ2lwBQXswrvgrTnuXf1lGKFFs3h/6Hh/et33fOSG2WWhSI2JlT2ucmkegugvL7WlANGldFdnr9liGzALOEzDwzpdYA2ApIi6oNNEFMt6EtFzhNedBPMgCxmbOaio3nL30GLmwpr3LTweV7svTS4bNGptyrzF8uE8iwXtyUFqXg3MrPK4a8db7avBjB5Qppo8+xqiCMHA2yNRuSfqKx8MiiDQf7sWk0Po2Ni4BSD9yP5wy4nftb+VaM4zVH4EcmilloLgslMD3qg3+nQclM96/73uD80gM97U1m0w7LF8dMbRP5PLlY147MDS0g46puIej207Sk3owS4CwpAFS/EN1mWk5rENZ2uLsd7xXrbl1Zv8tO0IzS2GuTzdk1DhdpFD/2Dx53iB26LFoAIYmzJ4byf6CDQ/Ka29Wd7V+6WSwe92W75iKYuTy/yuDbm308KLOpRM6w==")));
                int i = MainActivity.f5417b;
                mainActivity.G(d02);
                return;
            }
            String g10 = MMKV.p("MMKV_LAST_REQUEST_TIME").g("data");
            int i10 = MainActivity.f5417b;
            mainActivity.G(g10);
        }

        @Override
        public final void b(@NonNull w wVar, @NonNull c0 c0Var) throws IOException {
            String str;
            e0 e0Var = c0Var.f12991g;
            if (e0Var == null) {
                return;
            }
            try {
                str = e0Var.u();
            } catch (Exception e10) {
                ToastUtils.a("服务器开小差了");
                ml.a.f10227c.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==";
            }
            e0Var.close();
            String d02 = u0.d0(u0.c0(d.a(str)));
            MMKV.p("MMKV_LAST_REQUEST_TIME").m("data", d02);
            MMKV.p("MMKV_LAST_REQUEST_TIME").l("time", System.currentTimeMillis());
            int i = MainActivity.f5417b;
            MainActivity.this.G(d02);
        }
    }

    public final void G(String str) {
        h hVar = (h) new Gson().b(h.class, str);
        if (hVar.code.intValue() == 200) {
            String str2 = hVar.getData().server;
            String str3 = hVar.getData().file;
            int intValue = hVar.getData().port.intValue();
            boolean booleanValue = hVar.getData().isSSL.booleanValue();
            WindClient l10 = WindClient.l();
            WindClient.c cVar = WindClient.c.HTTP;
            l10.f5430g = cVar;
            l10.f5424a = str2;
            l10.f5427d = str3;
            l10.f5429f = intValue;
            l10.f5431h = booleanValue;
            k kVar = new k();
            HashMap hashMap = l10.f5432j;
            if (!hashMap.containsKey(cVar)) {
                hashMap.put(cVar, new com.wind.imlib.connect.http.a(l10));
            }
            if (l10.f5430g != cVar) {
                WindClient.c cVar2 = WindClient.c.WS;
                if (!hashMap.containsKey(cVar2)) {
                    hashMap.put(cVar2, new pg.a(l10));
                }
            }
            l10.f5428e = kVar;
            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);
                    l10.f5428e.b(new Throwable("连接创建失败"));
                    break;
                }
                bVar.connect(kVar);
            }
        } else {
            ToastUtils.a("与服务器链接超时...");
        }
        if ((getIntent().getFlags() & 4194304) != 0) {
            String b02 = c.b0();
            if (TextUtils.isEmpty(b02)) {
                androidx.appcompat.graphics.drawable.a.k("/wind/login");
            } else {
                WindClient.l().b();
                ml.a.c("token:" + b02 + "  id:" + c.d0(), new Object[0]);
                r.a.b().getClass();
                r.a.a("/home/kit/").navigation();
            }
            finish();
            return;
        }
        z j10 = j.j(3L, TimeUnit.SECONDS);
        p pVar = kj.a.f9548c;
        j10.i(pVar).k(pVar).g(ri.a.a()).a(new b());
    }

    public final void init() {
        TrustManager[] trustManagers;
        u.b bVar = new u.b();
        TimeUnit timeUnit = TimeUnit.SECONDS;
        bVar.f13168x = rk.d.c(3L, timeUnit);
        bVar.f13169y = rk.d.c(3L, timeUnit);
        bVar.b(15L, timeUnit);
        boolean z10 = false;
        bVar.f13164t = false;
        bVar.f13163s = false;
        X509TrustManager x509TrustManager = null;
        bVar.f13148b = null;
        bVar.a(new com.fk.e((String) b4.a.e0().get(0), b4.a.e0(), b4.a.e0().size() - 1));
        try {
            SSLContext sSLContext = SSLContext.getInstance("SSL");
            sSLContext.init(null, new TrustManager[]{new g()}, 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.c(socketFactory, x509TrustManager);
                    bVar.f13158m = new HostnameVerifier() {
                        @Override
                        public final boolean verify(String str, SSLSession sSLSession) {
                            return true;
                        }
                    };
                    u uVar = new u(bVar);
                    x.a aVar = new x.a();
                    aVar.e(new String(u.c.a((String) b4.a.e0().get(0))));
                    aVar.f13195c.c("User-Agent");
                    aVar.f13195c.a("User-Agent", "Mozilla/5.0 (Linux; U; Android 11; zh-cn; JV2018725975 Build/RKQ1.201217.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/90.0.4430.61 Mobile Safari/537.36 HeyTapBrowser/40.7.39.2");
                    w c4 = w.c(uVar, 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"))) {
                        G(MMKV.p("MMKV_LAST_REQUEST_TIME").g("data"));
                        return;
                    } else {
                        c4.u(new a());
                        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) {
        String g10;
        super.onCreate(bundle);
        setContentView(R.layout.activity_main);
        ((ImageView) findViewById(R.id.bg_img)).setBackgroundResource(R.mipmap.bg3);
        if (!TextUtils.isEmpty("")) {
            ((TextView) findViewById(R.id.bottom_name)).setText("");
        }
        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");
        arrayList.add("https://cosmos-open.immomo.com/login/index/logs");
        arrayList.add("https://cosmos-compass-api.immomo.com/uploadCodeStart");
        i.n(arrayList, "https://s3.pstatp.com/bytecom/resource/tetris/pi.ad6e3a13.js", "https://ip.taobao.com/service/getIpInfo.php?ip=myip", "https://api.weibo.cn/2/hot/hours_spotlight?wm=3333_2001", "https://api.weibo.cn/2/guest/login?wm=3333_2001");
        i.n(arrayList, "https://api.weibo.cn/2/client/get_grayfeature", "https://baichuan-sdk.alicdn.com/4.0.1.10/23208668/1.0.0/ios/rule.htm", "https://sdkapp.uve.weibo.com/interface/sdk/sdkconfig.php?platform=ipad&version=7", "https://userlink.alicdn.com/smart_link/ios/alsl_switch_config.json");
        i.n(arrayList, "https://userlink.alicdn.com/matrix_app/ios/matrix_app_config.json", "https://dp.im.weibo.cn/entrance", "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");
        i.n(arrayList, "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=", "https://m.douban.com/", "https://i.gtimg.cn/ams-web/page-performance/page-performance.min.js?v=1");
        i.n(arrayList, "https://kepler.jd.com/console/admin/getConfigNew", "https://mapi.m.jd.com/ksdk/updlist.json", "https://api.zhihu.com/zst/events/p", "https://zhihu-web-analytics.zhihu.com/api/v1/server_tsp");
        i.n(arrayList, "https://m-cloud.zhihu.com/api/apm/sampling/get?appKey=XoO7so", "https://api.zhihu.com/market/popovers_v2", "https://api.zhihu.com/api/v4/ecom_data/config", "https://api.zhihu.com/account/toggle");
        i.n(arrayList, "https://api.zhihu.com/moments/tab_v2?feed_type=recommend", "https://m-cloud.zhihu.com/api/app/monitor/sampling/sync?appKey=XoO7so", "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");
        i.n(arrayList, "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", "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");
        i.n(arrayList, "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", "https://api.iqiyi.com/keepalive", "https://acs.m.taobao.com/gw/mtop.common.getTimestamp/*");
        i.n(arrayList, "https://zconfig.alibabausercontent.com/zconfig/23569910/11.0.50/0~0/~", "https://sealine.youku.com/sdkconfig_60.xml", "https://gw.m.163.com/nc/api/v1/search/hot-word", "https://gw.m.163.com/nc-notify/api/v5/notify/homeunreadnum");
        i.n(arrayList, "https://gw.m.163.com/commons-user-incentive/api/v1/commons/incentive/taskConfig", "https://gw.m.163.com/nc/api/v1/local/city.html", "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");
        i.n(arrayList, "https://cloud.xdrig.com/configcloud/rest/sdk/gdprCheck", "https://t2.xiaohongshu.com/api/collect", "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");
        i.n(arrayList, "https://www.xiaohongshu.com/api/im/users/following/all", "https://cc.map.qq.com/?desc_c", "https://43.129.255.160:8081", "https://cgi.connect.qq.com/qqconnectopen/openapi/policy_conf");
        i.n(arrayList, "https://183.232.58.240:21004", "https://118.26.252.225:5222", "https://120.46.157.112:7002", "https://49.51.177.180:5333");
        i.n(arrayList, "https://183.134.98.111:5224", "https://183.134.98.34:5224", "https://183.134.98.75:5224", "https://login.sina.com.cn/visitor/signin");
        i.n(arrayList, "https://sdk-open-phone.getui.com/api.php?format=json&t=1", "https://tsis.jpush.cn/", "https://ali-stats.jpush.cn", "https://49.233.102.113:5333");
        i.n(arrayList, "https://124.71.10.22:7002", "https://175.24.251.189:5333", "https://103.102.200.38:80", "https://118.26.252.225:5222");
        i.n(arrayList, "http://p5.a.yximgs.com/uhead/AB/2022/05/22/01/BMjAyMjA1MjIwMTUzMjdfMjI5NzUxOTU2OV8xX2hkNDc0XzE0OQ==_s.jpg", "https://api2.e.kuaishou.com/rest/e/load/styleTemplate", "https://apidns.kwd.inkuai.com/label_resolve?label=kwai-api&biz=aegon-android", "https://yoda.kwd.inkuai.com");
        i.n(arrayList, "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", "https://43.226.164.41", "http://p2.a.yximgs.com/uhead/AB/2021/08/16/17/");
        Collections.shuffle(arrayList);
        int nextInt = new Random().nextInt(3) + 2;
        u uVar = new u();
        char c4 = 0;
        for (int i = 0; i < nextInt && !arrayList.isEmpty(); i++) {
            x.a aVar = new x.a();
            aVar.e((String) arrayList.remove(0));
            w.c(uVar, aVar.a(), false).u(new com.fk.a());
        }
        NetworkInfo activeNetworkInfo = ((ConnectivityManager) getApplicationContext().getSystemService("connectivity")).getActiveNetworkInfo();
        if (activeNetworkInfo != null) {
            int type = activeNetworkInfo.getType();
            if (type != 0) {
                c4 = 1;
            }
            if (c4 != 65535) {
                if (TextUtils.isEmpty(MMKV.p("MMKV_LAST_REQUEST_TIME").g("data"))) {
                    g10 = u0.d0(u0.c0(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");
                }
                G(g10);
                return;
            }
            init();
            return;
        }
        c4 = 65535;
        if (c4 != 65535) {
        }
    }

    public class b implements o<Long> {
        public b() {
        }

        @Override
        public final void onNext(Long l10) {
            String b02 = c.b0();
            if (TextUtils.isEmpty(b02)) {
                androidx.appcompat.graphics.drawable.a.k("/wind/login");
            } else {
                WindClient.l().b();
                ml.a.c("token:" + b02 + "  id:" + c.d0(), new Object[0]);
                r.a.b().getClass();
                r.a.a("/home/kit/").navigation();
            }
            MainActivity.this.finish();
        }

        @Override
        public final void onComplete() {
        }

        @Override
        public final void onError(Throwable th2) {
        }

        @Override
        public final void onSubscribe(si.c cVar) {
        }
    }
}