导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - d.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 d.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mbridge.msdk.foundation.same.net.f;

import android.text.TextUtils;
import com.mbridge.msdk.click.h;
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.q;
import com.mbridge.msdk.foundation.tools.v;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.regex.Pattern;

public final class d {
    public String A;
    public String B;
    public int C;
    public int D;
    public boolean E;
    public ArrayList<String> F;
    public ArrayList<String> G;
    private final String H;
    private boolean I;
    private int J;
    private String K;
    private String L;
    private String M;
    private String N;
    private String O;
    private String P;
    private String Q;
    private String R;
    private String S;
    private String T;
    private String U;
    private String V;
    public String a;
    public String b;
    public String c;
    public String d;
    public String e;
    public int f;
    public int g;
    public boolean h;
    public int i;
    public String j;
    public String k;
    public String l;
    public String m;
    public String n;
    public String o;
    public String p;
    public String q;
    public String r;
    public String s;
    public String t;
    public String u;
    public String v;
    public String w;

    public String f420x;

    public String f421y;

    public String f422z;

    public static class a {
        private static final d a = new d();
    }

    public static d a() {
        return a.a;
    }

    public final int b() {
        return this.J;
    }

    public final void c() {
        HashMap aA;
        com.mbridge.msdk.c.a f = h.f(com.mbridge.msdk.c.b.a());
        if (f != null) {
            this.h = f.aF() == 2;
            this.i = f.aF();
            this.I = !f.i(2);
            if (f.aA() != null && f.aA().size() > 0 && (aA = f.aA()) != null && aA.size() > 0) {
                if (aA.containsKey("v") && !TextUtils.isEmpty((CharSequence) aA.get("v")) && a((String) aA.get("v"))) {
                    this.b = (String) aA.get("v");
                    this.l = this.b + this.N;
                    this.m = this.b + this.O;
                    this.n = this.b + this.P;
                    this.o = this.b + this.Q;
                }
                if (aA.containsKey(CampaignEx.JSON_KEY_HB) && !TextUtils.isEmpty((CharSequence) aA.get(CampaignEx.JSON_KEY_HB)) && a((String) aA.get(CampaignEx.JSON_KEY_HB))) {
                    this.K = (String) aA.get(CampaignEx.JSON_KEY_HB);
                    this.j = this.K + this.L;
                    this.k = this.K + this.M;
                }
                if (aA.containsKey("lg") && !TextUtils.isEmpty((CharSequence) aA.get("lg"))) {
                    String str = (String) aA.get("lg");
                    if (a(str)) {
                        this.a = str;
                    } else {
                        this.e = str;
                    }
                }
                if (aA.containsKey(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE) && !TextUtils.isEmpty((CharSequence) aA.get(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE)) && a((String) aA.get(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE))) {
                    this.A = (String) aA.get(DownloadCommon.DOWNLOAD_REPORT_DOWNLOAD_RATE);
                }
                if (aA.containsKey("df") && !TextUtils.isEmpty((CharSequence) aA.get("df")) && a((String) aA.get("df"))) {
                    this.f422z = (String) aA.get("df");
                }
            }
            String z10 = f.z();
            if (!TextUtils.isEmpty(z10)) {
                this.c = z10;
                e();
                this.F.add(0, z10);
            }
            String A = f.A();
            if (TextUtils.isEmpty(A)) {
                return;
            }
            this.d = A;
            f();
            this.G.add(0, A);
        }
    }

    public final boolean d() {
        try {
            if (this.h) {
                ArrayList<String> arrayList = this.G;
                if (arrayList != null && this.D <= arrayList.size() - 1) {
                    if (!a(this.G.get(this.D))) {
                        this.d = this.G.get(this.D);
                        f();
                    }
                    return true;
                }
            } else {
                ArrayList<String> arrayList2 = this.F;
                if (arrayList2 != null && this.C <= arrayList2.size() - 1) {
                    this.c = this.F.get(this.C);
                    e();
                    return true;
                }
            }
            if (this.E) {
                this.C = 0;
                this.D = 0;
            }
            return false;
        } catch (Throwable th) {
            v.a("RequestUrlUtil", th.getMessage());
            return false;
        }
    }

    public final void e() {
        this.p = this.c + this.S;
        this.q = this.c + this.T;
        this.r = this.c + this.U;
        this.s = this.c + this.R;
        this.t = this.c + this.V;
    }

    public final void f() {
        this.u = this.d + this.S;
        this.v = this.d + this.T;
        this.w = this.d + this.U;
        this.f420x = this.d + this.R;
        this.f421y = this.d + this.V;
    }

    private d() {
        this.H = "RequestUrlUtil";
        this.I = true;
        this.J = 0;
        this.K = "https://{}hb.rayjump.com";
        this.a = "https://analytics.rayjump.com";
        this.b = "https://net.rayjump.com";
        this.c = "https://configure.rayjump.com";
        this.d = "configure-tcp.rayjump.com";
        this.e = q.b("DkPtYdQTLkfAW+xUhoPwLkPTHkJBDkM/Yr5T");
        this.f = 9377;
        this.g = 9377;
        this.h = false;
        this.i = 1;
        this.L = "/bid";
        this.M = "/load";
        this.N = "/openapi/ad/v3";
        this.O = "/openapi/ad/v4";
        this.P = "/openapi/ad/v5";
        this.Q = "/image";
        this.R = "/mapping";
        this.S = "/setting";
        this.T = "/sdk/customid";
        this.U = "/rewardsetting";
        this.V = "/appwall/setting";
        this.j = this.K + this.L;
        this.k = this.K + this.M;
        this.l = this.b + this.N;
        this.m = this.b + this.O;
        this.n = this.b + this.P;
        this.o = this.b + this.Q;
        this.p = this.c + this.S;
        this.q = this.c + this.T;
        this.r = this.c + this.U;
        this.s = this.c + this.R;
        this.t = this.c + this.V;
        this.u = this.d + this.S;
        this.v = this.d + this.T;
        this.w = this.d + this.U;
        this.f420x = this.d + this.R;
        this.f421y = this.d + this.V;
        this.f422z = "https://detect.rayjump.com/mapi/find";
        this.A = "https://detect.rayjump.com/mapi/result";
        this.B = "https://d1tru86qrby720.cloudfront.net/hostsetting";
        this.C = 0;
        this.D = 0;
        this.E = false;
        this.F = new ArrayList<>(Arrays.asList("https://configure.rayjump.com", "https://policy.rayjump.com", "https://lazy.rayjump.com", "https://check.rayjump.com"));
        this.G = new ArrayList<>(Arrays.asList("configure-tcp.rayjump.com", "policy-tcp.rayjump.com", "lazy-tcp.rayjump.com", "check-tcp.rayjump.com"));
    }

    public final void a(int i) {
        this.J = i;
    }

    public final String a(String str, int i) {
        try {
            if (!TextUtils.isEmpty(str)) {
                String[] split = str.split("_");
                if (split.length > 1) {
                    return a(true, split[1]);
                }
                return a(true, "");
            }
        } catch (Exception e) {
            v.d("RequestUrlUtil", e.getMessage());
        }
        return i % 2 == 0 ? this.n : this.l;
    }

    public final String a(boolean z10, String str) {
        if (z10) {
            if (this.k.contains("{}") && !TextUtils.isEmpty(str)) {
                return this.k.replace("{}", str + "-");
            }
            return this.k.replace("{}", "");
        }
        return this.j.replace("{}", "");
    }

    private boolean a(String str) {
        if (TextUtils.isEmpty(str)) {
            return false;
        }
        return Pattern.compile("(https|http)://[-A-Za-z0-9{}+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]").matcher(str.trim()).matches();
    }
}