MT Manager v2.15.3版本的 MD5 值为:34ea5286e529d87838c6cae0a2220d93

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


package l;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import com.alipay.sdk.m.p0.c;
import com.umeng.analytics.pro.am;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Executor;

public final class C10150 {

    public static C10150 f29397;

    public boolean f29406;

    public String f29399 = "";

    public String f29402 = "";

    public String f29398 = "";

    public String f29403 = "";

    public String f29408 = "";

    public String f29400 = "";

    public String f29407 = "";

    public List f29405 = Collections.synchronizedList(new ArrayList());

    public List f29401 = Collections.synchronizedList(new ArrayList());

    public Executor f29404 = C1028.m3070();

    public static void m22575(C10150 c10150) {
        c10150.getClass();
        C5471.m13573("AttaReporter", "attaReportAtSubThread");
        boolean z = c10150.f29406;
        List list = c10150.f29405;
        if (!z) {
            List synchronizedList = Collections.synchronizedList(new ArrayList());
            c10150.f29406 = synchronizedList.isEmpty();
            list.addAll(synchronizedList);
            Iterator it = synchronizedList.iterator();
            while (it.hasNext()) {
                C5471.m13573("AttaReporter", "attaReportAtSubThread from db = " + ((Serializable) it.next()));
            }
        }
        ArrayList arrayList = new ArrayList();
        while (true) {
            int i = 1;
            int i2 = 0;
            if (list.isEmpty()) {
                break;
            }
            C5940 c5940 = (C5940) list.remove(0);
            while (true) {
                i2 += i;
                try {
                    C5471.m13573("AttaReporter", "doAttaReportItem post " + c5940);
                    if (C3414.m9492().m9494("https://h.trace.qq.com/kv", c5940.f16109).d() == 200) {
                    }
                } catch (Exception e) {
                    C5471.m13579(e);
                    if (i2 >= 2) {
                        break;
                    }
                }
            }
        }
        if (!arrayList.isEmpty()) {
            C5471.m13573("AttaReporter", "attaReportAtSubThread fail size=" + arrayList.size());
            Iterator it2 = arrayList.iterator();
            while (it2.hasNext()) {
                C5471.m13573("AttaReporter", "attaReportAtSubThread fail cache to db, " + ((C5940) ((Serializable) it2.next())));
            }
            c10150.f29406 = false;
            return;
        }
        if (c10150.f29406) {
            return;
        }
        C5471.m13573("AttaReporter", "attaReportAtSubThread clear db");
        c10150.f29406 = true;
    }

    public static synchronized C10150 m22573() {
        C10150 c10150;
        synchronized (C10150.class) {
            if (f29397 == null) {
                f29397 = new C10150();
            }
            c10150 = f29397;
        }
        return c10150;
    }

    public final void m22576(Context context) {
        C5471.m13573("AttaReporter", "init");
        this.f29399 = "101492915";
        this.f29402 = C2712.m7809(context);
        this.f29403 = C8325.m19348(context, C11132.m23997());
        this.f29408 = C11132.m23997();
        this.f29400 = C2712.m7815(context) ? "1" : "0";
        this.f29407 = C8325.m19360(context);
        while (true) {
            List list = this.f29401;
            if (list.isEmpty()) {
                break;
            }
            C5940 c5940 = (C5940) list.remove(0);
            c5940.f16109.put(c.d, this.f29399);
            HashMap hashMap = c5940.f16109;
            hashMap.put("app_name", this.f29402);
            hashMap.put("app_ver", this.f29403);
            hashMap.put("pkg_name", this.f29408);
            hashMap.put("qq_install", this.f29400);
            hashMap.put("qq_ver", this.f29407);
            hashMap.put("openid", this.f29398);
            hashMap.put("time_appid_openid", ((String) hashMap.get("time")) + "_" + this.f29399 + "_" + this.f29398);
            StringBuilder sb = new StringBuilder("fixDirtyData--------------------------");
            sb.append(c5940);
            C5471.m13573("AttaReporter", sb.toString());
            this.f29405.add(c5940);
        }
        Context m23995 = C11132.m23995();
        if (m23995 == null) {
            return;
        }
        m23995.deleteDatabase("sdk_report.db");
    }

    public final void m22577(String str) {
        C5471.m13573("AttaReporter", "updateOpenId");
        if (str == null) {
            str = "";
        }
        this.f29398 = str;
    }

    public final void m22578(String str, String str2, Object obj) {
        long currentTimeMillis = System.currentTimeMillis();
        HashMap hashMap = new HashMap();
        hashMap.put("attaid", "09400051119");
        hashMap.put("token", "9389887874");
        hashMap.put("time_appid_openid", currentTimeMillis + "_" + this.f29399 + "_" + this.f29398);
        hashMap.put("time", String.valueOf(currentTimeMillis));
        hashMap.put("openid", this.f29398);
        hashMap.put(c.d, this.f29399);
        hashMap.put("app_name", this.f29402);
        hashMap.put("app_ver", this.f29403);
        hashMap.put("pkg_name", this.f29408);
        hashMap.put(am.x, "AND");
        hashMap.put("os_ver", Build.VERSION.RELEASE);
        hashMap.put("sdk_ver", "3.5.14.lite");
        hashMap.put("model_name", C9448.m21448().m21449());
        hashMap.put("interface_name", str);
        hashMap.put("interface_data", str2);
        hashMap.put("interface_result", obj == null ? "" : obj.toString());
        hashMap.put("qq_install", this.f29400);
        hashMap.put("qq_ver", this.f29407);
        C5940 c5940 = new C5940(hashMap);
        if (TextUtils.isEmpty(this.f29399) || TextUtils.isEmpty(this.f29402) || C11132.m23995() == null) {
            C5471.m13573("AttaReporter", "attaReport cancel appid=" + this.f29399 + ", mAppName=" + this.f29402 + ", context=" + C11132.m23995() + ", " + c5940);
            this.f29401.add(c5940);
            return;
        }
        this.f29404.execute(new RunnableC11834(this, c5940));
    }

    public static String m22574() {
        return m22573().f29399;
    }
}